diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2007-01-28 21:45:37 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2007-01-28 21:45:37 +0000 |
commit | c2ee35488ab4d67411f5e9d29e09cfafbb18df72 (patch) | |
tree | f30d755b72b4a0c7eda4188f56735b5cf6878d44 | |
parent | d3f25b4378bd6474dea4e746aec8c16b4b612567 (diff) | |
download | ports-c2ee35488ab4d67411f5e9d29e09cfafbb18df72.tar.gz ports-c2ee35488ab4d67411f5e9d29e09cfafbb18df72.zip |
Notes
-rw-r--r-- | devel/Makefile | 1 | ||||
-rw-r--r-- | devel/djgpp-binutils/Makefile | 72 | ||||
-rw-r--r-- | devel/djgpp-binutils/distinfo | 3 | ||||
-rw-r--r-- | devel/djgpp-binutils/files/patch-Makefile.in | 21 | ||||
-rw-r--r-- | devel/djgpp-binutils/files/patch-configure | 11 | ||||
-rw-r--r-- | devel/djgpp-binutils/pkg-descr | 5 | ||||
-rw-r--r-- | devel/djgpp-binutils/pkg-plist | 35 |
7 files changed, 148 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile index 4341b6a97a55..83df9395b61a 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -241,6 +241,7 @@ SUBDIR += distcc SUBDIR += distel SUBDIR += dits + SUBDIR += djgpp-binutils SUBDIR += dmake SUBDIR += dmalloc SUBDIR += doctorj diff --git a/devel/djgpp-binutils/Makefile b/devel/djgpp-binutils/Makefile new file mode 100644 index 000000000000..7ff8257b64e7 --- /dev/null +++ b/devel/djgpp-binutils/Makefile @@ -0,0 +1,72 @@ +# New ports collection makefile for: djgpp-binutils +# Date created: 27 Jan 2007 +# Whom: Peter Johnson <johnson.peter@gmail.com> +# +# $FreeBSD$ +# + +PORTNAME= binutils +PORTVERSION= ${BINUTILVERSION}.${PATCHVERSION} +CATEGORIES= devel +MASTER_SITES= ${MASTER_SITE_SOURCEWARE} +MASTER_SITE_SUBDIR= binutils/releases +PKGNAMEPREFIX= djgpp- +DISTNAME= ${PORTNAME}-${BINUTILVERSION}.${PATCHVERSION} + +MAINTAINER= johnson.peter@gmail.com +COMMENT= FSF binutils-2.16 for DJGPP cross-development + +BINUTILVERSION= 2.16 +PATCHVERSION= 1 + +TARGET= i586-pc-msdosdjgpp + +PATCH_WRKSRC= ${SRCDIR} +CONFIGURE_SCRIPT= ../${SRCDIR:C/${WRKDIR}//}/configure + +#USE_BZIP2= yes +USE_GMAKE= yes +GNU_CONFIGURE= yes +SRCDIR= ${WRKDIR}/binutils-${BINUTILVERSION}.${PATCHVERSION} +WRKSRC= ${WRKDIR}/build +CONFIGURE_ARGS= --target=${TARGET} \ + --with-gcc --with-gnu-ld --with-gnu-as \ + --disable-nls --disable-shared \ + --infodir=${PREFIX}/${TARGET}/info + +MAN1= ${TARGET}-addr2line.1 ${TARGET}-ar.1 \ + ${TARGET}-as.1 ${TARGET}-dlltool.1 \ + ${TARGET}-c++filt.1 ${TARGET}-ld.1 \ + ${TARGET}-nlmconv.1 ${TARGET}-nm.1 \ + ${TARGET}-objcopy.1 ${TARGET}-objdump.1 \ + ${TARGET}-ranlib.1 ${TARGET}-readelf.1 \ + ${TARGET}-size.1 ${TARGET}-strings.1 \ + ${TARGET}-strip.1 ${TARGET}-windres.1 + +INFO= as bfd binutils ld configure standards +INFO_PATH= ${TARGET}/info + +BINARIES= addr2line ar as c++filt ld nm objcopy objdump ranlib \ + readelf size strings strip + +pre-configure: + @${MKDIR} ${CONFIGURE_WRKSRC} + +post-install: +.for F in ${BINARIES} + @${LN} -f ${PREFIX}/bin/${TARGET}-$F ${PREFIX}/${TARGET}/bin/$F +.endfor + +# +# UGLY HACK +# +add-plist-post: + @${ECHO_CMD} "@unexec rmdir -p %D/${TARGET}/info 2> /dev/null || true" >> ${TMPPLIST} + @${ECHO_CMD} "@unexec rmdir -p %D/${TARGET} 2> /dev/null || true" >> ${TMPPLIST} +.if (defined(PREFIX) && ${PREFIX} != ${LOCALBASE} && ${PREFIX} != ${X11BASE} && ${PREFIX} != ${LINUXBASE} && ${PREFIX} != "/usr") + @${ECHO_CMD} "@unexec rmdir %D 2> /dev/null || true" >> ${TMPPLIST} +.else + @${DO_NADA} +.endif + +.include <bsd.port.mk> diff --git a/devel/djgpp-binutils/distinfo b/devel/djgpp-binutils/distinfo new file mode 100644 index 000000000000..047badfa2b6e --- /dev/null +++ b/devel/djgpp-binutils/distinfo @@ -0,0 +1,3 @@ +MD5 (binutils-2.16.1.tar.gz) = 818bd33cc45bfe3d5b4b2ddf288ecdea +SHA256 (binutils-2.16.1.tar.gz) = 13360c72d01411078f4f9b2b28cca87d5e258e38d2e006f8ece97db8be14c9b9 +SIZE (binutils-2.16.1.tar.gz) = 16378360 diff --git a/devel/djgpp-binutils/files/patch-Makefile.in b/devel/djgpp-binutils/files/patch-Makefile.in new file mode 100644 index 000000000000..bb55c0ff0fa0 --- /dev/null +++ b/devel/djgpp-binutils/files/patch-Makefile.in @@ -0,0 +1,21 @@ +--- Makefile.in.orig Sun Jun 12 12:30:54 2005 ++++ Makefile.in Sat Jan 27 13:15:06 2007 +@@ -13934,12 +13934,12 @@ + maybe-install-libiberty: install-libiberty + + install-libiberty: installdirs +- @r=`${PWD_COMMAND}`; export r; \ +- s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ +- $(SET_LIB_PATH) \ +- $(HOST_EXPORTS) \ +- (cd $(HOST_SUBDIR)/libiberty && \ +- $(MAKE) $(FLAGS_TO_PASS) install) ++# @r=`${PWD_COMMAND}`; export r; \ ++# s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ ++# $(SET_LIB_PATH) \ ++# $(HOST_EXPORTS) \ ++# (cd $(HOST_SUBDIR)/libiberty && \ ++# $(MAKE) $(FLAGS_TO_PASS) install) + + @endif libiberty + diff --git a/devel/djgpp-binutils/files/patch-configure b/devel/djgpp-binutils/files/patch-configure new file mode 100644 index 000000000000..a38a422f230c --- /dev/null +++ b/devel/djgpp-binutils/files/patch-configure @@ -0,0 +1,11 @@ +--- configure.orig Tue Jan 4 01:27:41 2005 ++++ configure Sun Apr 10 13:54:26 2005 +@@ -2812,7 +2812,7 @@ + done + test -n "$CONFIGURED_BISON" || CONFIGURED_BISON="$MISSING bison" + +-for ac_prog in 'bison -y' byacc yacc ++for ac_prog in byacc yacc + do + # Extract the first word of "$ac_prog", so it can be a program name with args. + set dummy $ac_prog; ac_word=$2 diff --git a/devel/djgpp-binutils/pkg-descr b/devel/djgpp-binutils/pkg-descr new file mode 100644 index 000000000000..787371b3ff9b --- /dev/null +++ b/devel/djgpp-binutils/pkg-descr @@ -0,0 +1,5 @@ +FSF binutils-2.16 for DJGPP cross-development. + +This port is needed by devel/djgpp-gcc + +WWW: http://www.delorie.com/djgpp/ diff --git a/devel/djgpp-binutils/pkg-plist b/devel/djgpp-binutils/pkg-plist new file mode 100644 index 000000000000..2c9333336dfc --- /dev/null +++ b/devel/djgpp-binutils/pkg-plist @@ -0,0 +1,35 @@ +i586-pc-msdosdjgpp/bin/addr2line +i586-pc-msdosdjgpp/bin/ar +i586-pc-msdosdjgpp/bin/as +i586-pc-msdosdjgpp/bin/c++filt +i586-pc-msdosdjgpp/bin/ld +i586-pc-msdosdjgpp/bin/nm +i586-pc-msdosdjgpp/bin/objcopy +i586-pc-msdosdjgpp/bin/objdump +i586-pc-msdosdjgpp/bin/ranlib +i586-pc-msdosdjgpp/bin/readelf +i586-pc-msdosdjgpp/bin/size +i586-pc-msdosdjgpp/bin/strings +i586-pc-msdosdjgpp/bin/strip +i586-pc-msdosdjgpp/lib/ldscripts/i386go32.x +i586-pc-msdosdjgpp/lib/ldscripts/i386go32.xbn +i586-pc-msdosdjgpp/lib/ldscripts/i386go32.xn +i586-pc-msdosdjgpp/lib/ldscripts/i386go32.xr +i586-pc-msdosdjgpp/lib/ldscripts/i386go32.xu +i586-pc-msdosdjgpp/info +bin/i586-pc-msdosdjgpp-addr2line +bin/i586-pc-msdosdjgpp-ar +bin/i586-pc-msdosdjgpp-as +bin/i586-pc-msdosdjgpp-c++filt +bin/i586-pc-msdosdjgpp-ld +bin/i586-pc-msdosdjgpp-nm +bin/i586-pc-msdosdjgpp-objcopy +bin/i586-pc-msdosdjgpp-objdump +bin/i586-pc-msdosdjgpp-ranlib +bin/i586-pc-msdosdjgpp-readelf +bin/i586-pc-msdosdjgpp-size +bin/i586-pc-msdosdjgpp-strings +bin/i586-pc-msdosdjgpp-strip +@dirrm i586-pc-msdosdjgpp/lib/ldscripts +@dirrmtry i586-pc-msdosdjgpp/lib +@dirrmtry i586-pc-msdosdjgpp/bin |