diff options
author | Michael Januszewski <spock@gentoo.org> | 2006-01-29 22:37:37 +0000 |
---|---|---|
committer | Michael Januszewski <spock@gentoo.org> | 2006-01-29 22:37:37 +0000 |
commit | 13c1931caee7f13c46eda39fb2d2f381d0a52dc7 (patch) | |
tree | 22e901713fafeb1862c71485a87dc7d8a07d9e4e /x11-misc | |
parent | Fix broken DEPEND from the move, bug 120870. (diff) | |
download | gentoo-2-13c1931caee7f13c46eda39fb2d2f381d0a52dc7.tar.gz gentoo-2-13c1931caee7f13c46eda39fb2d2f381d0a52dc7.tar.bz2 gentoo-2-13c1931caee7f13c46eda39fb2d2f381d0a52dc7.zip |
Fixed compilation issues on amd64.
(Portage version: 2.1_pre4-r1)
Diffstat (limited to 'x11-misc')
-rw-r--r-- | x11-misc/xfractint/ChangeLog | 7 | ||||
-rw-r--r-- | x11-misc/xfractint/files/xfractint-20.4.03-makefile.patch | 85 | ||||
-rw-r--r-- | x11-misc/xfractint/xfractint-20.4.03.ebuild | 24 |
3 files changed, 100 insertions, 16 deletions
diff --git a/x11-misc/xfractint/ChangeLog b/x11-misc/xfractint/ChangeLog index 2fa06a6bc13a..fe66194ae4eb 100644 --- a/x11-misc/xfractint/ChangeLog +++ b/x11-misc/xfractint/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for x11-misc/xfractint # Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/x11-misc/xfractint/ChangeLog,v 1.35 2006/01/22 15:49:52 spock Exp $ +# $Header: /var/cvsroot/gentoo-x86/x11-misc/xfractint/ChangeLog,v 1.36 2006/01/29 22:37:37 spock Exp $ + + 29 Jan 2006; Michał Januszewski <spock@gentoo.org> + +files/xfractint-20.4.03-makefile.patch, xfractint-20.4.03.ebuild: + Fixed compilation issues on amd64. Thanks to Chris White for the patch (bug + #119997). 22 Jan 2006; Michał Januszewski <spock@gentoo.org> xfractint-20.3.01.ebuild, xfractint-20.3.02.ebuild, diff --git a/x11-misc/xfractint/files/xfractint-20.4.03-makefile.patch b/x11-misc/xfractint/files/xfractint-20.4.03-makefile.patch new file mode 100644 index 000000000000..54f61ff04772 --- /dev/null +++ b/x11-misc/xfractint/files/xfractint-20.4.03-makefile.patch @@ -0,0 +1,85 @@ +diff -Naurp xfractint-20.04p03-orig/Makefile xfractint-20.04p03/Makefile +--- xfractint-20.04p03-orig/Makefile 2006-01-29 23:08:39.000000000 +0100 ++++ xfractint-20.04p03/Makefile 2006-01-29 23:28:09.000000000 +0100 +@@ -2,11 +2,11 @@ SHELL=/bin/sh + + # SRCDIR should be a path to the directory that will hold fractint.hlp + # SRCDIR should also hold the .par, .frm, etc. files +-SRCDIR = /usr/share/xfractint ++SRCDIR = $(DESTDIR)/usr/share/xfractint + # BINDIR is where you put your X11 binaries +-BINDIR = /usr/X11R6/bin ++BINDIR = $(DESTDIR)/usr/X11R6/bin + # MANDIR is where you put your chapter 1 man pages +-MANDIR = /usr/X11R6/man/man1 ++MANDIR = $(DESTDIR)/usr/X11R6/man/man1 + + HFD = ./headers + UDIR = ./unix +@@ -85,14 +85,14 @@ AFLAGS = -f elf -w+orphan-labels + ifeq ($(AS),/usr/bin/nasm) + + #CFLAGS = -I. -D_CONST $(DEFINES) +-CFLAGS = -I$(HFD) $(DEFINES) -g -DBIG_ANSI_C -DLINUX -Os \ +- -mcpu=pentium -DNASM -fno-builtin ++CFLAGS += -I$(HFD) $(DEFINES) -g -DBIG_ANSI_C -DLINUX -DNASM -fno-builtin ++HCFLAGS += -I$(HFD) $(DEFINES) -g -DBIG_ANSI_C -DLINUX -DNASM -fno-builtin + #CFLAGS = -I. $(DEFINES) -g -DBIG_ANSI_C -DLINUX -Os -DNASM -fno-builtin + + else + +-CFLAGS = -I$(HFD) $(DEFINES) -g -DBIG_ANSI_C -DLINUX -Os \ +- -mcpu=pentium -fno-builtin ++CFLAGS += -I$(HFD) $(DEFINES) -g -DBIG_ANSI_C -DLINUX -fno-builtin ++HCFLAGS += -I$(HFD) $(DEFINES) -g -DBIG_ANSI_C -DLINUX -DNASM -fno-builtin + #CFLAGS = -I. $(DEFINES) -g -DBIG_ANSI_C -DLINUX -Os -fno-builtin + + endif +@@ -257,18 +257,20 @@ clean: + install: xfractint fractint.hlp + strip xfractint + # only next 4 lines might need su ++ if [ ! -d $(BINDIR) ]; then mkdir -p $(BINDIR) ; fi + cp xfractint $(BINDIR)/xfractint; + chmod a+x $(BINDIR)/xfractint; ++ if [ ! -d $(MANDIR) ]; then mkdir -p $(MANDIR) ; fi + cp $(UDIR)/xfractint.man $(MANDIR)/xfractint.1; + chmod a+r $(MANDIR)/xfractint.1 + # create directories if they don't exist +- if [ ! -d $(SRCDIR) ] ; then mkdir $(SRCDIR) ; fi +- if [ ! -d $(SRCDIR)/$(PDIR) ] ; then mkdir $(SRCDIR)/$(PDIR) ; fi +- if [ ! -d $(SRCDIR)/$(FDIR) ] ; then mkdir $(SRCDIR)/$(FDIR) ; fi +- if [ ! -d $(SRCDIR)/$(IDIR) ] ; then mkdir $(SRCDIR)/$(IDIR) ; fi +- if [ ! -d $(SRCDIR)/$(LDIR) ] ; then mkdir $(SRCDIR)/$(LDIR) ; fi +- if [ ! -d $(SRCDIR)/$(MDIR) ] ; then mkdir $(SRCDIR)/$(MDIR) ; fi +- if [ ! -d $(SRCDIR)/$(XDIR) ] ; then mkdir $(SRCDIR)/$(XDIR) ; fi ++ if [ ! -d $(SRCDIR) ] ; then mkdir -p $(SRCDIR) ; fi ++ if [ ! -d $(SRCDIR)/$(PDIR) ] ; then mkdir -p $(SRCDIR)/$(PDIR) ; fi ++ if [ ! -d $(SRCDIR)/$(FDIR) ] ; then mkdir -p $(SRCDIR)/$(FDIR) ; fi ++ if [ ! -d $(SRCDIR)/$(IDIR) ] ; then mkdir -p $(SRCDIR)/$(IDIR) ; fi ++ if [ ! -d $(SRCDIR)/$(LDIR) ] ; then mkdir -p $(SRCDIR)/$(LDIR) ; fi ++ if [ ! -d $(SRCDIR)/$(MDIR) ] ; then mkdir -p $(SRCDIR)/$(MDIR) ; fi ++ if [ ! -d $(SRCDIR)/$(XDIR) ] ; then mkdir -p $(SRCDIR)/$(XDIR) ; fi + # copy all the files to the appropriate directories + cp fractint.hlp sstools.ini $(DOCS) $(SRCDIR) + cd ./$(PDIR); cp $(PARFILES) $(SRCDIR)/$(PDIR) +@@ -312,10 +314,10 @@ doc: hc $(HELP) + ./hc /p + + hc: $(HOBJS) +- $(CC) -o hc $(CFLAGS) $(HOBJS) ++ $(CC) -o hc $(HCFLAGS) $(HOBJS) + + unix.o: $(UDIR)/unix.c +- $(CC) $(CFLAGS) -DSRCDIR=\"$(SRCDIR)\" -c $(UDIR)/unix.c ++ $(CC) $(HCFLAGS) -DSRCDIR=\"$(SRCDIR)\" -c $(UDIR)/unix.c + + copy: $(FILES) + mv $(FILES) backup +@@ -324,3 +326,6 @@ copy: $(FILES) + + hc.o: $(COMDIR)/hc.c $(HFD)/helpcom.h $(HFD)/port.h + ++$(COMDIR)/hc.o: $(COMDIR)/hc.c ++ $(CC) $(HCFLAGS) $(COMDIR)/hc.c -c -o $(COMDIR)/hc.o ++ diff --git a/x11-misc/xfractint/xfractint-20.4.03.ebuild b/x11-misc/xfractint/xfractint-20.4.03.ebuild index 55d2dfbae744..665ae7cd2d68 100644 --- a/x11-misc/xfractint/xfractint-20.4.03.ebuild +++ b/x11-misc/xfractint/xfractint-20.4.03.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/x11-misc/xfractint/xfractint-20.4.03.ebuild,v 1.1 2006/01/22 15:46:55 spock Exp $ +# $Header: /var/cvsroot/gentoo-x86/x11-misc/xfractint/xfractint-20.4.03.ebuild,v 1.2 2006/01/29 22:37:37 spock Exp $ inherit eutils flag-o-matic @@ -22,25 +22,19 @@ RDEPEND="virtual/libc DEPEND="${RDEPEND} || ( x11-proto/xproto virtual/x11 )" -src_compile() { +src_unpack() { + unpack ${A} cd ${S} - cp Makefile Makefile.orig - replace-flags "-funroll-all-loops" "-funroll-loops" - sed -e "s:CFLAGS = :CFLAGS = $CFLAGS :" Makefile.orig >Makefile + epatch "${FILESDIR}"/${P}-makefile.patch +} - emake -j1 +src_compile() { + replace-flags "-funroll-all-loops" "-funroll-loops" + emake -j1 || die "make failed" } src_install() { - dodir /usr/bin - dodir /usr/share/xfractint - dodir /usr/man/man1 - - make \ - BINDIR=${D}usr/bin \ - MANDIR=${D}usr/man/man1 \ - SRCDIR=${D}usr/share/xfractint \ - install || die + make DESTDIR="${D}" install || die chmod 0644 -R ${D}usr/share/xfractint/* |