aboutsummaryrefslogtreecommitdiff
path: root/lang/egcs/Makefile
diff options
context:
space:
mode:
authorSatoshi Asami <asami@FreeBSD.org>2000-10-10 23:36:13 +0000
committerSatoshi Asami <asami@FreeBSD.org>2000-10-10 23:36:13 +0000
commit4328256c7fbfa32ddde5b07289569c77f1c1147f (patch)
treeefcddc50e279b252498a7a1322332aa8eabc34d8 /lang/egcs/Makefile
parent1c8d799fc53ba855d2bb15855dc3f75eab8fbeac (diff)
downloadports-4328256c7fbfa32ddde5b07289569c77f1c1147f.tar.gz
ports-4328256c7fbfa32ddde5b07289569c77f1c1147f.zip
Use PLIST_SUB to only include curses.h when OSVERSION >= 400000. (It
is not built on 3-stable systems.) Change the ELF-only stuff to use PLIST_SUB too. (This part is purely cosmetic -- no functional changes.)
Notes
Notes: svn path=/head/; revision=33690
Diffstat (limited to 'lang/egcs/Makefile')
-rw-r--r--lang/egcs/Makefile15
1 files changed, 10 insertions, 5 deletions
diff --git a/lang/egcs/Makefile b/lang/egcs/Makefile
index 59cced9ef9e8..ed89d55e4ee2 100644
--- a/lang/egcs/Makefile
+++ b/lang/egcs/Makefile
@@ -30,16 +30,24 @@ USE_BZIP2= yes
GCC_REV= ${DISTNAME:S/gcc-//g}
LIBSTDCPP_REV= 4
+.if ${OSVERSION} < 400000
+PLIST_SUB+= CURSES:="@comment "
+.else
+PLIST_SUB+= CURSES:=""
+.endif
+
.if ${PORTOBJFORMAT} == "elf"
.if ${MACHINE_ARCH} == "i386"
-PLIST= ${WRKDIR}/PLIST
+PLIST_SUB+= ELF:=""
+.else
+PLIST_SUB+= ELF:="@comment "
.endif
CONFIGURE_TARGET= ${ARCH}-portbld-freebsd${OSREL}
.else
CONFIGURE_TARGET= ${ARCH}-portbld-freebsdaout${OSREL}
.endif
-PLIST_SUB= EGCS_REV=${GCC_REV} GNU_HOST=${CONFIGURE_TARGET}
+PLIST_SUB+= EGCS_REV=${GCC_REV} GNU_HOST=${CONFIGURE_TARGET}
GNU_CONFIGURE= yes
USE_GMAKE= yes
CONFIGURE_ARGS= --with-gnu-as --with-gnu-ld \
@@ -63,9 +71,6 @@ pre-configure:
${SED} -e "s:__FreeBSD__[0-9=]*:__FreeBSD__=$${MAJ}:" ${FILESDIR}/freebsd.h \
>${WRKSRC}/gcc/config/freebsd.h )
@${CP} ${FILESDIR}/alpha-freebsd.h ${WRKSRC}/gcc/config/alpha/freebsd.h
-.if ${PORTOBJFORMAT} == "elf" && ${MACHINE_ARCH} == "i386"
- @${SED} -e 's/^@comment ELF-only://' ${PKGDIR}/pkg-plist >${PLIST}
-.endif
@# Keep from running `autoconf' and `autoheader' since we modified
@# configure.in by patching it.
@touch ${WRKSRC}/gcc/configure