summaryrefslogtreecommitdiffstats
path: root/devel/stlport/Makefile
diff options
context:
space:
mode:
authornetchild <netchild@FreeBSD.org>2002-09-17 12:52:06 +0000
committernetchild <netchild@FreeBSD.org>2002-09-17 12:52:06 +0000
commitcca0fd5b9b19558f8b421a58d3536923fd114926 (patch)
tree994f9be990e472b2b72572542e0da72d2cf6ce5a /devel/stlport/Makefile
parent33b01dfbc93515347b3a5938f3ac29ce74ab3609 (diff)
downloadFreeBSD-ports-cca0fd5b9b19558f8b421a58d3536923fd114926.zip
FreeBSD-ports-cca0fd5b9b19558f8b421a58d3536923fd114926.tar.gz
Patch to be able to make a slave port for Intels C/C++ compiler.
Submitted by: marius@alchemy.franken.de Approved by: Paul Marquis <pmarquis@pobox.com> (maintainer)
Diffstat (limited to 'devel/stlport/Makefile')
-rw-r--r--devel/stlport/Makefile22
1 files changed, 19 insertions, 3 deletions
diff --git a/devel/stlport/Makefile b/devel/stlport/Makefile
index e9be283..d12172b 100644
--- a/devel/stlport/Makefile
+++ b/devel/stlport/Makefile
@@ -8,8 +8,10 @@
PORTNAME= stlport
PORTVERSION= 4.5.3
+PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= http://www.stlport.com/archive/
+PKGNAMESUFFIX= -${COMPILER}
DISTNAME= STLport-${PORTVERSION:S/.b/-b/}
MAINTAINER= pmarquis@pobox.com
@@ -23,9 +25,11 @@ BROKEN= "Requires /usr/include/wchar.h for compilation"
WRKSRC= ${WRKDIR}/STLport-${PORTVERSION:S/.b/b/}/src
PATCH_WRKSRC= ${WRKDIR}/STLport-${PORTVERSION:S/.b/b/}
USE_GMAKE= yes
-MAKEFILE= gcc-freebsd.mak
+COMPILER?= gcc
+MAKEFILE= ${COMPILER}-freebsd.mak
MAKE_ARGS+= INSTALLDIR=${PREFIX} PTHREAD_CFLAGS=${PTHREAD_CFLAGS} \
PTHREAD_LIBS=${PTHREAD_LIBS}
+PLIST_SUB= COMPILER=${COMPILER}
INSTALL_TARGET= install_unix
INSTALLS_SHLIB= yes
@@ -34,7 +38,12 @@ INSTALLS_SHLIB= yes
BROKEN= "Not supported on systems prior to FreeBSD 4.4"
.endif
-.if ${OSVERSION} < 460000
+.if ${COMPILER} == icc
+CC= icc
+CXX= icpc
+.endif
+
+.if ${COMPILER} == gcc && ${OSVERSION} < 460000
pre-everything:
@${ECHO_MSG}
@${ECHO_MSG} "There may be a bug in your version of gcc's exception"
@@ -42,6 +51,13 @@ pre-everything:
@${ECHO_MSG} "or above."
.endif
+post-patch:
+ @${CP} ${FILESDIR}/src::icc-freebsd.mak ${WRKSRC}/icc-freebsd.mak
+ @${CP} ${FILESDIR}/stlport::stl_icc.h \
+ ${WRKSRC}/../stlport/config/stl_icc.h
+ @${CP} ${FILESDIR}/test::eh::icc-freebsd.mak \
+ ${WRKSRC}/../test/eh/icc-freebsd.mak
+
post-install:
${FIND} ${PREFIX}/include/stlport -name \*.orig -delete
.if !defined(NOPORTDOCS)
@@ -51,7 +67,7 @@ post-install:
${INSTALL_DATA} ${WRKSRC}/../doc/images/* ${DOCSDIR}/images
.endif
-.if ${OSVERSION} >= 46000
+.if ${OSVERSION} >= 46000 || ${COMPILER} == icc
post-build: test
.endif
OpenPOWER on IntegriCloud