summaryrefslogtreecommitdiff
path: root/x11/qt2-libs/Makefile.common
blob: 5e06911faf166565378e3bdf76d8c8147b8c5d9a (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
# $NetBSD: Makefile.common,v 1.6 2001/03/07 10:47:13 skrll Exp $
#

DISTNAME=		qt-x11-${QTVERSION}
WRKSRC=			${WRKDIR}/qt-${QTVERSION}
CATEGORIES=		x11
MASTER_SITES=	\
	ftp://ftp.trolltech.com/qt/source/ \
	ftp://ftp.fu-berlin.de/unix/X11/gui/Qt/source/

.include "../qt2/Makefile.common"

HAS_CONFIGURE=		yes
USE_X11BASE=		yes
USE_GMAKE=		yes
USE_LIBTOOL=		yes
CONFIGURE_ARGS+=	-static -sm -no-thread \
			-system-zlib -system-libpng \
			-system-libmng -system-jpeg \
			-I${LOCALBASE}/include -L${LOCALBASE}/lib

CONFIGURE_SCRIPT=	${ECHO} yes | ./configure

QTPREFIX=		${PREFIX}/qt2

MAKE_ENV+=		QTPREFIX=${QTPREFIX}

FILESDIR=		${PKGSRCDIR}/x11/qt2-libs/files
PATCHDIR=		${PKGSRCDIR}/x11/qt2-libs/patches

.include "../../mk/bsd.prefs.mk"

.if defined(USE_GIF)
CONFIGURE_ARGS+=	-gif
.endif

.if ${OPSYS} == "SunOS"
BUILD_DEPENDS+=	${LOCALBASE}/egcs/bin/g++:../../lang/egcs
CONFIGURE_ENV+=	CXX=${LOCALBASE}/egcs/bin/g++
CONFIGURE_ARGS+=-platform solaris-g++
.endif