freebsd-ports/databases/qt4-mysql-plugin/files/Makefile.bsd
Martin Wilke 437140d5ee - Update Qt4 to 4.5.2
The KDE FreeBSD team would like to say thanks to all the helpers
and submitters.

Tested by:	pointyhat-exp-run (pav/miwi)
2009-08-04 20:04:38 +00:00

28 lines
821 B
Text

SHLIB_NAME= libqsql${DB}.so
VPATH= ${PLUGIN}:${DRIVER}
CXXFLAGS+= -I${DRIVER} \
-I${QT_INCDIR} \
-I${QT_INCDIR}/Qt \
-I${LOCALBASE}/include/mysql \
-I${LOCALBASE}/include \
${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
LDADD= -L${QT_LIBDIR} -L${LOCALBASE}/lib -L${LOCALBASE}/lib/mysql ${PTHREAD_LIBS} -lQtSql -lmysqlclient_r
MOC?= ${LOCALBASE}/bin/moc-qt4
SRCS= main.cpp qsql_${DB}.cpp moc_qsql_${DB}.cpp qsql_${DB}.moc
LIBDIR= ${PREFIX}/lib/qt4/plugins/sqldrivers
${LIBDIR}:
mkdir -p ${LIBDIR}
moc_qsql_${DB}.cpp: qsql_${DB}.h
$(MOC) $(.ALLSRC) -o $(.TARGET)
qsql_${DB}.moc: qsql_${DB}.cpp
$(MOC) $(.ALLSRC) -o ${DRIVER}/$(.TARGET)
beforeinstall: ${LIBDIR}
.include <bsd.lib.mk>