From 2bb92e4f1172b40413655ba66f991fa4756a22ab Mon Sep 17 00:00:00 2001 From: Edwin Groothuis Date: Fri, 17 Jan 2003 12:14:00 +0000 Subject: Unbreak audio/id3lib for -current Submitted by: "Simon 'corecode' Schubert" Approved by: Roman Shterenzon (maintainer) --- audio/id3lib/Makefile | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) (limited to 'audio') diff --git a/audio/id3lib/Makefile b/audio/id3lib/Makefile index a85f492e3817..5502b5487047 100644 --- a/audio/id3lib/Makefile +++ b/audio/id3lib/Makefile @@ -16,14 +16,26 @@ MAINTAINER= roman@xpert.com LIB_DEPENDS= iconv.3:${PORTSDIR}/converters/libiconv INSTALLS_SHLIB= yes -GNU_CONFIGURE= yes -CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ - LDFLAGS="-L${LOCALBASE}/lib" +USE_LIBTOOL= yes +CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \ + LDFLAGS="${LDFLAGS}" + +LDFLAGS= -L${LOCALBASE}/lib + +.if ${CC} == cc || ${CC} == gcc +COMPILER?= gcc +.else +COMPILER?= ${CC} +.endif .include .if ${OSVERSION} >= 500000 -BROKEN= "Doesn't link properly, std::char_traits thingie" +RUN_DEPENDS= ${LOCALBASE}/lib/libstlport_${COMPILER}.so:${PORTSDIR}/devel/stlport${COMPILER:C/^/-/:S/-gcc//} +BUILD_DEPENDS:= ${RUN_DEPENDS} + +LDFLAGS+= -lstlport_${COMPILER} +CPPFLAGS+= -I${LOCALBASE}/include/stlport .endif post-extract: -- cgit v1.2.3