summaryrefslogtreecommitdiffstats
path: root/databases/unixODBC/Makefile
diff options
context:
space:
mode:
authorknu <knu@FreeBSD.org>2001-06-12 05:40:12 +0000
committerknu <knu@FreeBSD.org>2001-06-12 05:40:12 +0000
commit5c24069d9c504baea7b56a02f3f929c58ec596b2 (patch)
treeac46b95cfa0b0e6698c82aa9b525fe325f0ff73f /databases/unixODBC/Makefile
parenta02b5641fe8ec5113304ad3cafe20db69e913c1f (diff)
downloadFreeBSD-ports-5c24069d9c504baea7b56a02f3f929c58ec596b2.zip
FreeBSD-ports-5c24069d9c504baea7b56a02f3f929c58ec596b2.tar.gz
Update to 2.0.7.
PR: ports/28040 Submitted by: KATO Tsuguru <tkato@prontomail.com> aka Ports Fury
Diffstat (limited to 'databases/unixODBC/Makefile')
-rw-r--r--databases/unixODBC/Makefile18
1 files changed, 12 insertions, 6 deletions
diff --git a/databases/unixODBC/Makefile b/databases/unixODBC/Makefile
index ffcc2f7..99bc796 100644
--- a/databases/unixODBC/Makefile
+++ b/databases/unixODBC/Makefile
@@ -6,21 +6,22 @@
#
PORTNAME= unixODBC
-PORTVERSION= 2.0.5
+PORTVERSION= 2.0.7
CATEGORIES= databases
MASTER_SITES= http://www.unixodbc.org/
MAINTAINER= ports@FreeBSD.org
-USE_AUTOMAKE= yes
-AUTOMAKE_ARGS= --include-deps
-USE_LIBTOOL= yes
+GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-static --enable-shared
INSTALLS_SHLIB= yes
.if defined(WITH_GUI)
-USE_QT2= yes
-CONFIGURE_ENV= MOC="${X11BASE}/bin/moc2"
+USE_QT_VER= 2
+QT_NONSTANDARD= yes
+CONFIGURE_ENV= MOC="${MOC}" LIBQT="-l${QTNAME}" \
+ USER_INCLUDES="${QTCPPFLAGS}" \
+ USER_LDFLAGS="${QTCFGLIBS}"
CONFIGURE_ARGS+= --enable-gui \
--with-qt-includes=${X11BASE}/include/qt2 \
--with-qt-libraries=${X11BASE}/lib \
@@ -32,6 +33,11 @@ CONFIGURE_ARGS+= --disable-gui
PLIST_SUB= GUI:="@comment "
.endif
+pre-patch:
+ @${PERL} -pi -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
+ s|-lqt|-lqt2|g' ${WRKSRC}/configure
+ @${PERL} -pi -e 's| -lc||g' ${WRKSRC}/ltmain.sh
+
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${PREFIX}/share/doc/unixODBC
OpenPOWER on IntegriCloud