Ok, I send the diffs necessary to fix these two packages for ppc. Both
have been tested twice for correctness. I also sent them to the package
maintainers. Should I also send to the bug list? I mean they are no longer
bugs right?

Konstantinos Margaritis
[EMAIL PROTECTED]
diff -ru xfractint-3.04.orig/Makefile xfractint-3.04/Makefile
--- xfractint-3.04.orig/Makefile        Wed Jan 13 13:29:47 1999
+++ xfractint-3.04/Makefile     Wed Jan 13 13:33:40 1999
@@ -41,7 +41,7 @@
 # AIX may need -D_ALL_SOURCE -D_NONSTD_TYPES to compile help.c
 # For Dec Alpha, add -DFTIME -DNOBSTRING -DDIRENT
 # For SGI, you may have to add -DSYSVSGI
-DEFINES = -DXFRACT $(NOBSTRING) $(HAVESTRI) $(DEBUG)
+DEFINES = -DXFRACT $(NOBSTRING) $(HAVESTRI) $(DEBUG) $(USE_LONG_DOUBLE)
 
 #Maybe -D_CONST will fix problems with constant type in include files?
 #For HPUX, use CFLAGS = -I. $(DEFINES) -I/usr/include/X11R4 +O3 +Obb1000
diff -ru xfractint-3.04.orig/debian/rules xfractint-3.04/debian/rules
--- xfractint-3.04.orig/debian/rules    Wed Jan 13 13:29:47 1999
+++ xfractint-3.04/debian/rules Wed Jan 13 13:33:53 1999
@@ -3,10 +3,16 @@
 # based on the sample debian/rules file for GNU hello by Ian Jackson.
 
 package=xfractint
+ARCH=$(shell dpkg --print-gnu-build-architecture)
+
+USE_LONG_DOUBLE=""
+
+ifeq ($(ARCH),powerpc)
+       USE_LONG_DOUBLE="-DDO_NOT_USE_LONG_DOUBLE"
+endif
 
 build:
-       $(checkdir)
-       $(MAKE) LONG_FNAMES="-DLONG_FNAMES"
+       $(MAKE) USE_LONG_DOUBLE=$(USE_LONG_DOUBLE) LONG_FNAMES="-DLONG_FNAMES"
        touch build
 
 clean:
diff -ur mpg123-0.59o.orig/Makefile mpg123-0.59o/Makefile
--- mpg123-0.59o.orig/Makefile  Tue Jan 12 00:14:20 1999
+++ mpg123-0.59o/Makefile       Tue Jan 12 00:08:47 1999
@@ -91,7 +91,7 @@
        $(MAKE) CC=gcc  LDFLAGS= \
                OBJECTS='decode.o dct64.o audio_oss.o' \
                CFLAGS='-DREAL_IS_FLOAT -DLINUX -Wall -O2 -mcpu=ppc \
-                       -DOSS -DPPC_ENDIAN \
+                       -DOSS \
                        -fomit-frame-pointer -funroll-all-loops \
                        -finline-functions -ffast-math' \
                mpg123-make
Only in mpg123-0.59o: Makefile.orig
diff -ur mpg123-0.59o.orig/debian/rules mpg123-0.59o/debian/rules
--- mpg123-0.59o.orig/debian/rules      Tue Jan 12 00:14:20 1999
+++ mpg123-0.59o/debian/rules   Tue Jan 12 00:09:21 1999
@@ -11,7 +11,7 @@
        $(MAKE) linux-alpha
 endif
 ifeq ($(ARCH),powerpc)
-       $(MAKE) linuxppc
+       $(MAKE) linux-ppc
 endif
 ifeq ($(ARCH),m68k)
        $(MAKE) linux-m68k
Only in mpg123-0.59o/debian: rules.orig

Reply via email to