aboutsummaryrefslogtreecommitdiffstats
path: root/databases/qt4-pgsql-plugin/files/Makefile.bsd
blob: 545a2eee5ad15db33d7eded3cdf40aeb3639efe3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
SHLIB_NAME= libqsql${DB}.so

VPATH=      ${PLUGIN}:${DRIVER}
CXXFLAGS+=  -I${DRIVER} \
        -I${PREFIX}/include/qt4 \
        -I${PREFIX}/include/qt4/Qt \
        -I${LOCALBASE}/include/postgresql/server \
        -I${LOCALBASE}/include -I${X11BASE}/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
MOC?=       ${LOCALBASE}/bin/moc-qt4
LDADD=      -L${PREFIX}/lib/qt4 -L${LOCALBASE}/lib ${PTHREAD_LIBS} -lQtSql -lpq
SRCS=       main.cpp qsql_${DB}.cpp moc_qsql_${DB}.cpp

LIBDIR=     ${PREFIX}/lib/qt4/plugins/sqldrivers

${LIBDIR}:
    mkdir -p ${LIBDIR}

moc_qsql_${DB}.cpp: qsql_${DB}.h
    $(MOC) $(.ALLSRC) -o $(.TARGET)

beforeinstall:  ${LIBDIR}

.include <bsd.lib.mk>