Enforce linking against a threads lib on -STABLE.
This commit is contained in:
parent
715820a4e4
commit
d7ebfa900b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=109144
@ -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 <bsd.port.pre.mk>
|
||||
|
||||
## 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 <bsd.port.mk>
|
||||
.include <bsd.port.post.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user