diff options
Diffstat (limited to 'databases/unixODBC/Makefile')
-rw-r--r-- | databases/unixODBC/Makefile | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/databases/unixODBC/Makefile b/databases/unixODBC/Makefile index ffcc2f74a3bc..99bc7963ce81 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 |