diff options
author | marcus <marcus@FreeBSD.org> | 2004-05-30 15:57:34 +0800 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2004-05-30 15:57:34 +0800 |
commit | 436588d1d3edd217515bbf48733afe14dc04158a (patch) | |
tree | b2ce9ea288e0edfa6aebf5ce3a568c9c2b4c7388 /devel/glib12 | |
parent | 8f47c0ba43ef0680e14671718099651f3134b1d1 (diff) | |
download | freebsd-ports-gnome-436588d1d3edd217515bbf48733afe14dc04158a.tar.gz freebsd-ports-gnome-436588d1d3edd217515bbf48733afe14dc04158a.tar.zst freebsd-ports-gnome-436588d1d3edd217515bbf48733afe14dc04158a.zip |
Do the usual PTHREAD_LIBS dance to ensure that we don't add -DLINUXTHREADS
to gthread's CFLAGS on -CURRENT.
Spotted by: bento, green, and kris
Diffstat (limited to 'devel/glib12')
-rw-r--r-- | devel/glib12/Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/devel/glib12/Makefile b/devel/glib12/Makefile index 33049fc82c8d..46b3441d7426 100644 --- a/devel/glib12/Makefile +++ b/devel/glib12/Makefile @@ -7,7 +7,7 @@ PORTNAME= glib PORTVERSION= 1.2.10 -PORTREVISION= 10 +PORTREVISION= 11 CATEGORIES= devel MASTER_SITES= ${MASTER_SITE_GNOME} MASTER_SITE_SUBDIR= sources/glib/1.2 @@ -18,6 +18,7 @@ COMMENT= Some useful routines of C programming (previous stable version) USE_GNOME= pkgconfig USE_LIBTOOL_VER= 13 INSTALLS_SHLIB= yes +USE_REINPLACE= yes LIBTOOLFLAGS= --disable-ltlibs --release-suffix CONFIGURE_ARGS= --includedir=${PREFIX}/include/glib12 CONFIGURE_ENV= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \ @@ -26,6 +27,11 @@ CONFIGURE_ENV= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \ MAN1= glib-config.1 INFO= glib +post-patch: + @${FIND} ${WRKSRC} -name "configure" | ${XARGS} ${REINPLACE_CMD} -e \ + 's|-lpthread|${PTHREAD_LIBS}|g ; \ + s|-lc_r|${PTHREAD_LIBS}|g' + post-install: ${LN} -sf ${PREFIX}/bin/glib-config ${PREFIX}/bin/glib12-config |