aboutsummaryrefslogtreecommitdiff
path: root/databases/qt4-pgsql-plugin/files/Makefile.bsd
diff options
context:
space:
mode:
Diffstat (limited to 'databases/qt4-pgsql-plugin/files/Makefile.bsd')
-rw-r--r--databases/qt4-pgsql-plugin/files/Makefile.bsd12
1 files changed, 9 insertions, 3 deletions
diff --git a/databases/qt4-pgsql-plugin/files/Makefile.bsd b/databases/qt4-pgsql-plugin/files/Makefile.bsd
index 52e180ad5692..6caf331a909d 100644
--- a/databases/qt4-pgsql-plugin/files/Makefile.bsd
+++ b/databases/qt4-pgsql-plugin/files/Makefile.bsd
@@ -1,19 +1,25 @@
SHLIB_NAME= libqsql${DB}.so
-VPATH= ${DRIVER}
+VPATH= ${PLUGIN}:${DRIVER}
CXXFLAGS+= -I${DRIVER} \
-I${LOCALBASE}/include/Qt \
-I${LOCALBASE}/include/postgresql/server \
-I${LOCALBASE}/include -I${X11BASE}/include \
- ${PTHREAD_CFLAGS} -DQT_THREAD_SUPPORT
+ ${PTHREAD_CFLAGS} -DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII \
+ -DQT_PLUGIN -DQT_SQL_LIB -DQT_CORE_LIB -D_LARGEFILE64_SOURCE \
+ -D_LARGEFILE_SOURCE -DQT_SHARED
+MOC?= ${LOCALBASE}/bin/moc-qt4
LDADD= -L${LOCALBASE}/lib ${PTHREAD_LIBS} -lQtSql -lpq
-SRCS= qsql_${DB}.cpp
+SRCS= main.cpp qsql_${DB}.cpp moc_qsql_${DB}.cpp
LIBDIR= ${PREFIX}/lib/plugins/sqldrivers
${LIBDIR}:
mkdir -p ${LIBDIR}
+moc_qsql_${DB}.cpp: qsql_${DB}.h
+ $(MOC) $(.ALLSRC) -o $(.TARGET)
+
beforeinstall: ${LIBDIR}
.include <bsd.lib.mk>