aboutsummaryrefslogtreecommitdiffstats
path: root/databases/qt4-mysql-plugin/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'databases/qt4-mysql-plugin/Makefile')
-rw-r--r--databases/qt4-mysql-plugin/Makefile32
1 files changed, 4 insertions, 28 deletions
diff --git a/databases/qt4-mysql-plugin/Makefile b/databases/qt4-mysql-plugin/Makefile
index bfd1ecbe0a98..0111b693c25a 100644
--- a/databases/qt4-mysql-plugin/Makefile
+++ b/databases/qt4-mysql-plugin/Makefile
@@ -1,37 +1,13 @@
# Created by: Kay Lehmann <kay_lehmann@web.de>
# $FreeBSD$
-PORTNAME= qt4-${DB}-plugin
-DISTVERSION= ${QT4_VERSION}
-CATEGORIES= databases
+PORTREVISION= 1
-MAINTAINER= kde@FreeBSD.org
COMMENT= Qt MySQL database plugin
-
DB= mysql
-
-USE_QT4= moc_build sql
-QT_DIST= yes
-
USE_MYSQL= yes
-DRIVER= src/sql/drivers/${DB}
-PLUGIN= src/plugins/sqldrivers/${DB}
-EXTRACT_AFTER_ARGS?= ${DISTNAME}/${DRIVER} \
- ${DISTNAME}/src/corelib \
- ${DISTNAME}/${PLUGIN}
-MAKEFILE= ${FILESDIR}/Makefile.bsd
-MAKE_ENV+= DB="${DB}" DRIVER="${DRIVER}" MOC="${MOC}" \
- PLUGIN="${PLUGIN}" \
- QT_INCDIR="${QT_INCDIR}" \
- QT_LIBDIR="${QT_LIBDIR}"
-PLIST_SUB= DB=${DB}
-
-EXTRA_PATCHES= # empty
-
-SQL_PLUGINDIR= ${PREFIX}/${QT_PLUGINDIR_REL}/sqldrivers
-do-install:
- @${MKDIR} ${STAGEDIR}${SQL_PLUGINDIR}
- ${INSTALL_LIB} ${WRKSRC}/libqsql${DB}.so ${STAGEDIR}${SQL_PLUGINDIR}
+CXXFLAGS+= -I${LOCALBASE}/include/mysql
+LDFLAGS+= -L${LOCALBASE}/lib/mysql
-.include <bsd.port.mk>
+.include "${.CURDIR:H:H}/devel/qt4/Makefile.sqldrivers"