summaryrefslogtreecommitdiff
path: root/devel/stlport
diff options
context:
space:
mode:
authorjlam <jlam>2001-02-26 20:00:30 +0000
committerjlam <jlam>2001-02-26 20:00:30 +0000
commit925ad9f769105f46eefc22fd1341393284732c91 (patch)
treef42e730611e0c52c0e849e52b51d97220d6278ed /devel/stlport
parent7d1c80152841314a41175eee4075762c7facb8a8 (diff)
downloadpkgsrc-925ad9f769105f46eefc22fd1341393284732c91.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/stlport')
-rw-r--r--devel/stlport/Makefile21
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