aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgerald <gerald@FreeBSD.org>2007-08-07 12:33:40 +0800
committergerald <gerald@FreeBSD.org>2007-08-07 12:33:40 +0800
commit343ec394f05c6d051473644a45eb6fd99d11284f (patch)
tree1a252886981aeabacdbbe99c420fd3326e74b273
parent3ad60cc3299cd34971daadc35f6b94fa66e783f9 (diff)
downloadfreebsd-ports-gnome-343ec394f05c6d051473644a45eb6fd99d11284f.tar.gz
freebsd-ports-gnome-343ec394f05c6d051473644a45eb6fd99d11284f.tar.zst
freebsd-ports-gnome-343ec394f05c6d051473644a45eb6fd99d11284f.zip
Switch to libthr as the default threading library on versions of FreeBSD
where it isn't the default yet. Wine wants all threads to be PTHREAD_SCOPE_SYSTEM (visible by kernel) so wineserver can access threads inside wine processes. With libthr all threads are PTHREAD_SCOPE_SYSTEM by default. With libkse the initial thread is not which prevents wineserver from sending signals to it directly, for instance. Add --verbose to CONFIGURE_FLAGS. Submitted by: Tijl Coosemans <tijl@ulyssis.org>
-rw-r--r--emulators/wine-devel/Makefile7
-rw-r--r--emulators/wine/Makefile7
2 files changed, 12 insertions, 2 deletions
diff --git a/emulators/wine-devel/Makefile b/emulators/wine-devel/Makefile
index bad753776fff..7406bb53e32d 100644
--- a/emulators/wine-devel/Makefile
+++ b/emulators/wine-devel/Makefile
@@ -25,7 +25,7 @@ LIB_DEPENDS= fontconfig.1:${PORTSDIR}/x11-fonts/fontconfig \
xml2:${PORTSDIR}/textproc/libxml2
GNU_CONFIGURE= yes
-CONFIGURE_ARGS= --datadir=${DATADIR}
+CONFIGURE_ARGS= --datadir=${DATADIR} --verbose
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib" \
EXTRA_BINARIES="wine-kthread"
@@ -49,6 +49,11 @@ PKGMESSAGE= ${WRKDIR}/pkg-message
IGNORE= fails to work on versions of FreeBSD before 5.3 (due to problems with threading support)
.endif
+post-patch:
+.if ${OSVERSION} < 700041
+ ${REINPLACE_CMD} 's/-lpthread/-lthr/g' ${WRKSRC}/configure
+.endif
+
pre-build:
cd ${WRKSRC} && make depend
diff --git a/emulators/wine/Makefile b/emulators/wine/Makefile
index bad753776fff..7406bb53e32d 100644
--- a/emulators/wine/Makefile
+++ b/emulators/wine/Makefile
@@ -25,7 +25,7 @@ LIB_DEPENDS= fontconfig.1:${PORTSDIR}/x11-fonts/fontconfig \
xml2:${PORTSDIR}/textproc/libxml2
GNU_CONFIGURE= yes
-CONFIGURE_ARGS= --datadir=${DATADIR}
+CONFIGURE_ARGS= --datadir=${DATADIR} --verbose
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib" \
EXTRA_BINARIES="wine-kthread"
@@ -49,6 +49,11 @@ PKGMESSAGE= ${WRKDIR}/pkg-message
IGNORE= fails to work on versions of FreeBSD before 5.3 (due to problems with threading support)
.endif
+post-patch:
+.if ${OSVERSION} < 700041
+ ${REINPLACE_CMD} 's/-lpthread/-lthr/g' ${WRKSRC}/configure
+.endif
+
pre-build:
cd ${WRKSRC} && make depend