blob: fb69f91ff8f12cc06b00d6fdb308ca84da0fa45d (
plain)
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
55
56
57
58
59
60
61
62
|
# $NetBSD: Makefile.common,v 1.5 2002/05/29 19:09:55 skrll Exp $
#
DISTNAME= qt-x11-free-${QTVERSION}
CATEGORIES= x11
MASTER_SITES= \
ftp://ftp.trolltech.com/qt/source/ \
ftp://ftp.bero.org/pub/qt/source/
.include "../qt3/Makefile.common"
HAS_CONFIGURE= yes
USE_X11BASE= yes
USE_GMAKE= yes
USE_LIBTOOL= yes
CONFIGURE_ARGS+= -shared -sm -thread \
-system-zlib -system-libpng \
-system-libmng -system-libjpeg
CONFIGURE_ARGS+= -no-xinerama
CONFIGURE_ARGS+= -qt-gif # qt3 does not write compressed GIFs
CONFIGURE_ARGS+= < ${FILESDIR}/license-acceptance
QTPREFIX= ${PREFIX}/qt3
CONFIGURE_ENV+= QTDIR="${WRKSRC}"
MAKE_ENV+= QTPREFIX=${QTPREFIX}
MAKE_ENV+= QTDIR="${WRKSRC}"
#
# A cheat so that we don't have to set QTDIR at run-time to find the
# plugins.
#
CXXFLAGS+= -DQT_INSTALL_PLUGINS=\\"${QTPREFIX}/plugins\\"
DISTINFO_FILE= ${.CURDIR}/../../x11/qt3-libs/distinfo
FILESDIR= ${.CURDIR}/../../x11/qt3-libs/files
PATCHDIR= ${.CURDIR}/../../x11/qt3-libs/patches
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "SunOS"
BUILD_DEPENDS+= egcs-1.1.2:../../lang/egcs
CONFIGURE_ENV+= CXX=${LOCALBASE}/egcs/bin/g++
CONFIGURE_ARGS+= -platform solaris-g++
.endif
post-patch:
${SED} \
-e 's:@CC@:${CC}:g' \
-e 's:@CXX@:${CXX}:g' \
-e 's:@LDFLAGS@:${LDFLAGS}:g' \
-e 's:@CFLAGS@:${CFLAGS}:g' \
-e 's:@CXXFLAGS@:${CXXFLAGS}:g' \
-e 's:@LEX@:${LEX}:g' \
-e 's:@YACC@:${YACC}:g' \
-e 's:@LIBTOOL@:${LIBTOOL}:g' \
-e 's:@BUILDLINK_DIR@:${BUILDLINK_DIR}:g' \
-e 's:@BUILDLINK_X11_DIR@:${BUILDLINK_X11_DIR}:g' \
${FILESDIR}/qmake.conf > ${WRKSRC}/qmake.conf
for dir in ${WRKSRC}/mkspecs/*; do \
${CP} ${WRKSRC}/qmake.conf $${dir}; \
done
|