diff options
Diffstat (limited to 'audio/id3lib/Makefile')
-rw-r--r-- | audio/id3lib/Makefile | 20 |
1 files changed, 16 insertions, 4 deletions
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 <bsd.port.pre.mk> .if ${OSVERSION} >= 500000 -BROKEN= "Doesn't link properly, std::char_traits<wchar_t> 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: |