blob: 481fb4a429b77166af7f41aefec7e243105fdd53 (
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# $FreeBSD$
_OBJS!= ${MAKE} -f Makefile.unix -V OBJS -V QOBJS
# We'd like to avoid using qconfig.cpp, but can't -- see the comment
# next to -DHAVE_CONFIG_CPP below:
#_OBJS:= ${_OBJS:S/qconfig.o//}
SRCS:= ${_OBJS:.o=.cpp}
NO_MAN= true # qmake.1 anyone?
.PATH: ${.CURDIR} ${.CURDIR:H}/src/corelib/tools ${.CURDIR:H}/src/corelib/io \
${.CURDIR:H}/src/corelib/global ${.CURDIR:H}/src/corelib/plugin \
${.CURDIR:H}/src/corelib/kernel ${.CURDIR:H}/src/corelib/codecs \
${.CURDIR:H}/src/corelib/xml ${.CURDIR:H}/src/3rdparty/md4 \
${.CURDIR:H}/src/3rdparty/md5 ${.CURDIR:H}/src/3rdparty/sha1 \
${.CURDIR:H}/tools/shared/symbian ${.CURDIR:H}/tools/shared/windows
CXXFLAGS+=-I${.CURDIR:H}/mkspecs/freebsd-g++
.for s in src/corelib/arch/generic src/corelib/global src/corelib/tools \
src/corelib/kernel src/corelib/codecs \
src/3rdparty/md5 src/3rdparty/md4 src/3rdparty/sha1 \
tools/shared include/QtCore include
CXXFLAGS+=-I${.CURDIR:H}/$s
.endfor
.for g in /. /unix /win32 /mac /symbian
.PATH: ${.CURDIR}/generators$g
CXXFLAGS+=-I${.CURDIR}/generators$g
.endfor
CXXFLAGS+=-I. -I"${FILESDIR}"
CXXFLAGS+=-DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT \
-DQT_NO_STL -DQT_BUILD_QMAKE -DQT_NO_COMPRESS -DHAVE_QCONFIG_CPP \
-DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT \
-DQT_BOOTSTRAPPED -DQMAKE_OPENSOURCE_EDITION
# I guess, qconfig.cpp used to be optional, but no longer is -- due to
# bit-rot in Qt sources. So we still have to compile it, but, by not
# adding the following define, we reduce the seemingly needless usage of
# it:
# -DHAVE_QCONFIG_CPP
PROG_CXX= qmake-qt4
BINDIR= ${PREFIX}/bin
SHAREDIR=${PREFIX}/share/qt4
${SHAREDIR}:
mkdir -p "$@"
beforeinstall: ${SHAREDIR}
cp -Rp ${.CURDIR:H}/mkspecs ${SHAREDIR}
.include <bsd.prog.mk>
|