summaryrefslogtreecommitdiffstats
path: root/databases
diff options
context:
space:
mode:
authorknu <knu@FreeBSD.org>2001-07-02 14:49:04 +0000
committerknu <knu@FreeBSD.org>2001-07-02 14:49:04 +0000
commit5df6571fd7cd17823db3d345bb04c4f21041b989 (patch)
treef5a818e35af81f6f8f177c35ea916470f7ffcd3e /databases
parent55f77c08a43edc2dc95202f5c988ddb40ca1e1fd (diff)
downloadFreeBSD-ports-5df6571fd7cd17823db3d345bb04c4f21041b989.zip
FreeBSD-ports-5df6571fd7cd17823db3d345bb04c4f21041b989.tar.gz
Build with --enable-threads=no by default to get around the libc_r
weirdness. Reviewed by: sobomax (MAINTAINER of java/jdk12-beta)
Diffstat (limited to 'databases')
-rw-r--r--databases/unixODBC/Makefile13
1 files changed, 12 insertions, 1 deletions
diff --git a/databases/unixODBC/Makefile b/databases/unixODBC/Makefile
index 99bc796..7e09882 100644
--- a/databases/unixODBC/Makefile
+++ b/databases/unixODBC/Makefile
@@ -7,6 +7,7 @@
PORTNAME= unixODBC
PORTVERSION= 2.0.7
+PORTREVISION= 1
CATEGORIES= databases
MASTER_SITES= http://www.unixodbc.org/
@@ -33,9 +34,19 @@ CONFIGURE_ARGS+= --disable-gui
PLIST_SUB= GUI:="@comment "
.endif
+.if defined(WITH_PTHREAD)
+CONFIGURE_ARGS+= --enable-threads=yes
+.else
+CONFIGURE_ARGS+= --enable-threads=no
+.endif
+
pre-patch:
+.if defined(WITH_PTHREAD)
@${PERL} -pi -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
- s|-lqt|-lqt2|g' ${WRKSRC}/configure
+ s|-lqt|-lqt2-mt|g' ${WRKSRC}/configure
+.else
+ @${PERL} -pi -e 's|-lqt|-lqt2|g' ${WRKSRC}/configure
+.endif
@${PERL} -pi -e 's| -lc||g' ${WRKSRC}/ltmain.sh
post-install:
OpenPOWER on IntegriCloud