summaryrefslogtreecommitdiff
path: root/emulators
diff options
context:
space:
mode:
authorGerald Pfeifer <gerald@FreeBSD.org>2007-08-07 04:33:40 +0000
committerGerald Pfeifer <gerald@FreeBSD.org>2007-08-07 04:33:40 +0000
commit92a3927e04305d9f15a6eebeb009c971b4594c43 (patch)
treeb36d32453a196c9171fd90f24b0e532c1f92fa01 /emulators
parent- Update to 4.5.3 (diff)
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>
Diffstat (limited to 'emulators')
-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