diff --git a/audio/libshout2/Makefile b/audio/libshout2/Makefile index 5ddeb2b6fa43..1152aeed3e9c 100644 --- a/audio/libshout2/Makefile +++ b/audio/libshout2/Makefile @@ -7,7 +7,7 @@ PORTNAME= libshout2 PORTVERSION= 2.0 -PORTREVISION= 3 +PORTREVISION= 4 PORTEPOCH= 1 CATEGORIES= audio net MASTER_SITES= http://www.icecast.org/files/libshout/ @@ -27,6 +27,16 @@ USE_LIBTOOL_VER=13 CONFLICTS= libshout-1.0.7 USE_REINPLACE= yes +.include + +## Megacrude hack to make the shared lib link against libc_r on -STABLE. +## If anybody finds a way to do it with -pthread, let me know. + +.if ${OSVERSION} < 500016 +CONFIGURE_ENV= CFLAGS="${PTHREAD_CFLAGS} -I${LOCALBASE}/include" \ + LDFLAGS="-lc_r -L${LOCALBASE}/lib" +.endif + pre-configure: @ ${REINPLACE_CMD} -e "s|-ffast-math||g" ${WRKSRC}/configure @@ -34,4 +44,4 @@ post-configure: @ ${REINPLACE_CMD} -e "s|pkgconfigdir =.*|pkgconfigdir = ${PREFIX}/libdata/pkgconfig|g" \ ${WRKSRC}/Makefile -.include +.include