blob: ed96f1fa87ec7e8360a0bec3f109685731ea71a2 (
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
# $NetBSD: Makefile.common,v 1.20 2003/08/02 03:58:24 grant Exp $
#
DISTNAME= qt-x11-free-${QTVERSION}
CATEGORIES= x11
MASTER_SITES= ftp://ftp.trolltech.com/qt/source/ \
ftp://ftp.bero.org/pub/qt/source/
EXTRACT_SUFX= .tar.bz2
.include "../qt3/Makefile.common"
DISTINFO_FILE= ${.CURDIR}/../../x11/qt3-libs/distinfo
FILESDIR= ${.CURDIR}/../../x11/qt3-libs/files
PATCHDIR= ${.CURDIR}/../../x11/qt3-libs/patches
HAS_CONFIGURE= yes
USE_X11= yes
USE_GMAKE= yes
USE_GCC_SHLIB= yes
USE_LIBTOOL= yes
USE_GNU_TOOLS= awk
QTPREFIX= ${PREFIX}/qt3
CONFIGURE_ARGS+= -prefix ${QTPREFIX}
CONFIGURE_ARGS+= -shared -sm -thread -no-stl \
-system-zlib -system-libpng \
-system-libmng -system-libjpeg
CONFIGURE_ARGS+= -qt-gif # qt3 does not write compressed GIFs
CONFIGURE_ARGS+= -no-g++-exceptions
CONFIGURE_ARGS+= < ${FILESDIR}/license-acceptance
LIBQT?= -lqt-mt
MAKE_ENV+= QTPREFIX=${QTPREFIX}
MAKE_ENV+= QTDIR="${WRKSRC}"
# avoid creating a .qt directory in the users home
# directory
SCRIPTS_ENV+= HOME="${WRKDIR}"
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "SunOS"
CONFIGURE_SCRIPT= ${SH} ./configure
CONFIGURE_ARGS+= -platform solaris-g++
SYS_LIBS= -lresolv -lsocket -lnsl
.endif
.if !exists(${X11BASE}/lib/libXinerama.so)
CONFIGURE_ARGS+= -no-xinerama
.endif
#
# Reverse the change to how templates are handled made between 3.0.4
# and 3.0.5 for older toolchains. Removing inline for newer toolchains
# produces smaller code. Removing inline for older toolchains prod-
# uces buggy code.
#
GCC_VERSION!= ${CXX} --version
.if (${GCC_VERSION:C/-.*$$//} == egcs)
CXXFLAGS+= -DQ_INLINE_TEMPLATES=inline
.endif
post-patch:
${SED} \
-e 's:@LOCALBASE@:${LOCALBASE}:g' \
-e 's:@X11BASE@:${X11BASE}:g' \
-e 's:@X11PREFIX@:${X11PREFIX}:g' \
-e 's:@LIBTOOL@:${BUILDLINK_LIBTOOL:T}:g' \
-e 's:@CC@:${BUILDLINK_CC:T}:g' \
-e 's:@CXX@:${BUILDLINK_CXX:T}:g' \
-e 's:@LDFLAGS@:${LDFLAGS}:g' \
-e 's:@CFLAGS@:${CFLAGS}:g' \
-e 's:@CXXFLAGS@:${CXXFLAGS}:g' \
-e 's:@SYS_LIBS@:${SYS_LIBS}:g' \
-e 's:@LEX@:${LEX}:g' \
-e 's:@YACC@:${YACC}:g' \
-e 's:@AR@:${AR}:g' \
-e 's:@LIBQT@:${LIBQT}:g' \
${FILESDIR}/qmake.conf > ${WRKSRC}/qmake.conf
for dir in ${WRKSRC}/mkspecs/*; do \
${CP} ${WRKSRC}/qmake.conf $${dir}; \
done
|