diff options
author | jlam <jlam@pkgsrc.org> | 2001-02-26 20:00:30 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2001-02-26 20:00:30 +0000 |
commit | ed13e58de405ea493d2ecdffdb2b81375ce06a1f (patch) | |
tree | f42e730611e0c52c0e849e52b51d97220d6278ed /devel | |
parent | 4c2e0be888dc9cb5626ebab8fb7178475e729371 (diff) | |
download | pkgsrc-ed13e58de405ea493d2ecdffdb2b81375ce06a1f.tar.gz |
Use whichever of gcc or pgcc is installed during compilation. Also modify
the dependency to allow either gcc or pgcc of the appropriate version.
Diffstat (limited to 'devel')
-rw-r--r-- | devel/stlport/Makefile | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/devel/stlport/Makefile b/devel/stlport/Makefile index 77a3b779326..c19b420bc53 100644 --- a/devel/stlport/Makefile +++ b/devel/stlport/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.3 2001/02/16 14:39:03 wiz Exp $ +# $NetBSD: Makefile,v 1.4 2001/02/26 20:00:30 jlam Exp $ DISTNAME= STLport-4.0 PKGNAME= stlport-4.0 @@ -9,14 +9,12 @@ MAINTAINER= p99dreyf@criens.u-psud.fr HOMEPAGE= http://www.stlport.org/ COMMENT= Complete C++ standard library -DEPENDS+= gcc>=${GCC_VERS}:../../lang/gcc +DEPENDS+= {gcc,pgcc}-${GCC_VERS}*:../../lang/gcc +GCC_VERS= 2.95.2 USE_GMAKE= # defined USE_LIBTOOL= # defined -GCC_VERS= 2.95.2 -GCC_BINDIR= ${PREFIX}/gcc-${GCC_VERS}/bin - NO_CONFIGURE= # defined MAKE_ENV+= CC="${GCC_BINDIR}/gcc" @@ -58,3 +56,16 @@ do-install: cd ${WRKSRC}/doc; ${INSTALL_DATA} images/* ${HTMLDIR}/images .include "../../mk/bsd.pkg.mk" + +GCC_BINDIR= # empty +.if ${GCC_BINDIR} == "" +PGCC_DEPEND!= ${PKG_INFO} -e "pgcc>=${GCC_VERS}" || ${ECHO} +GCC_DEPEND!= ${PKG_INFO} -e "gcc>=${GCC_VERS}" || ${ECHO} +.if ${PGCC_DEPEND} != "" +GCC_BINDIR= ${PREFIX}/${PGCC_DEPEND}/bin +MAKEFLAGS+= GCC_BINDIR="${GCC_BINDIR}" +.elif ${GCC_DEPEND} != "" +GCC_BINDIR= ${PREFIX}/${GCC_DEPEND}/bin +MAKEFLAGS+= GCC_BINDIR="${GCC_BINDIR}" +.endif +.endif |