aboutsummaryrefslogtreecommitdiff
path: root/audio/id3lib
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2003-02-18 06:30:06 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2003-02-18 06:30:06 +0000
commit9a51f264e8038b95e45797c46e1e5734dbd90dcd (patch)
tree3cd62e02de503372228187f4ac2400aedfdf96c6 /audio/id3lib
parent4803b3b077c46a6a9a7ea813709065cbf6e14333 (diff)
downloadports-9a51f264e8038b95e45797c46e1e5734dbd90dcd.tar.gz
ports-9a51f264e8038b95e45797c46e1e5734dbd90dcd.zip
Notes
Diffstat (limited to 'audio/id3lib')
-rw-r--r--audio/id3lib/Makefile14
1 files changed, 10 insertions, 4 deletions
diff --git a/audio/id3lib/Makefile b/audio/id3lib/Makefile
index e9f0a9bbae35..cae8173ac2a3 100644
--- a/audio/id3lib/Makefile
+++ b/audio/id3lib/Makefile
@@ -22,16 +22,22 @@ INSTALLS_SHLIB= yes
CPPFLAGS= -I${LOCALBASE}/include
LDFLAGS= -L${LOCALBASE}/lib
-.if ${CC} == cc || ${CC} == gcc
+CC_BASENAME= ${CC:T}
+# Should run ${CC} -v and check the output instead
+.if ${CC_BASENAME} == cc || ${CC_BASENAME} == gcc
COMPILER?= gcc
+STLPORT_PORT?= devel/stlport
+.elif ${CC_BASENAME} == icc
+COMPILER?= icc
+STLPORT_PORT?= devel/stlport-icc
.else
-COMPILER?= ${CC}
+STLPORT_PORT?= # empty
.endif
.include <bsd.port.pre.mk>
-.if ${OSVERSION} >= 500000
-RUN_DEPENDS= ${LOCALBASE}/lib/libstlport_${COMPILER}.so:${PORTSDIR}/devel/stlport${COMPILER:C/^/-/:S/-gcc//}
+.if ${OSVERSION} >= 500000 && !empty(STLPORT_PORT)
+RUN_DEPENDS= ${LOCALBASE}/lib/libstlport_${COMPILER}.so:${PORTSDIR}/${STLPORT_PORT}
BUILD_DEPENDS:= ${RUN_DEPENDS}
LDFLAGS+= -lstlport_${COMPILER}