2001-10-09 21:51:41 +02:00
|
|
|
# $NetBSD: Makefile.common,v 1.17 2001/10/09 19:51:41 tron Exp $
|
2000-10-19 09:41:12 +02:00
|
|
|
#
|
|
|
|
|
2000-12-09 18:21:49 +01:00
|
|
|
DISTNAME= qt-x11-${QTVERSION}
|
|
|
|
WRKSRC= ${WRKDIR}/qt-${QTVERSION}
|
2000-10-19 09:41:12 +02:00
|
|
|
CATEGORIES= x11
|
|
|
|
MASTER_SITES= \
|
|
|
|
ftp://ftp.trolltech.com/qt/source/ \
|
|
|
|
ftp://ftp.fu-berlin.de/unix/X11/gui/Qt/source/
|
|
|
|
|
2000-12-09 18:21:49 +01:00
|
|
|
.include "../qt2/Makefile.common"
|
2000-10-19 09:41:12 +02:00
|
|
|
|
|
|
|
HAS_CONFIGURE= yes
|
|
|
|
USE_X11BASE= yes
|
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_LIBTOOL= yes
|
2000-12-09 18:21:49 +01:00
|
|
|
CONFIGURE_ARGS+= -static -sm -no-thread \
|
2001-03-07 11:47:13 +01:00
|
|
|
-system-zlib -system-libpng \
|
2001-06-23 21:35:27 +02:00
|
|
|
-system-libmng -system-jpeg
|
2001-03-24 22:14:40 +01:00
|
|
|
CONFIGURE_ARGS+= -gif # qt2 does not write compressed GIFs
|
2000-10-19 09:41:12 +02:00
|
|
|
|
2001-04-19 12:22:13 +02:00
|
|
|
CONFIGURE_ARGS+= < ${FILESDIR}/license-acceptance
|
2000-10-19 09:41:12 +02:00
|
|
|
|
|
|
|
QTPREFIX= ${PREFIX}/qt2
|
|
|
|
|
|
|
|
MAKE_ENV+= QTPREFIX=${QTPREFIX}
|
|
|
|
|
2001-06-23 21:35:27 +02:00
|
|
|
MAKE_ENV+= SYSCONF_CXXFLAGS="${CXXFLAGS}"
|
|
|
|
MAKE_ENV+= SYSCONF_CFLAGS="${CFLAGS}"
|
|
|
|
MAKE_ENV+= SYSCONF_CXXFLAGS_LIB="${CXXFLAGS}"
|
|
|
|
MAKE_ENV+= SYSCONF_CFLAGS_LIB="${CFLAGS}"
|
|
|
|
|
2001-06-14 13:15:46 +02:00
|
|
|
DISTINFO_FILE= ${.CURDIR}/../../x11/qt2-libs/distinfo
|
|
|
|
FILESDIR= ${.CURDIR}/../../x11/qt2-libs/files
|
|
|
|
PATCHDIR= ${.CURDIR}/../../x11/qt2-libs/patches
|
2001-02-06 10:26:11 +01:00
|
|
|
|
2000-10-19 09:41:12 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
|
|
|
.if ${OPSYS} == "SunOS"
|
2001-06-23 21:35:27 +02:00
|
|
|
BUILD_DEPENDS+= egcs-1.1.2:../../lang/egcs
|
|
|
|
CONFIGURE_ENV+= CXX=${LOCALBASE}/egcs/bin/g++
|
|
|
|
CONFIGURE_ARGS+= -platform solaris-g++
|
2000-10-19 09:41:12 +02:00
|
|
|
.endif
|
2001-06-23 21:35:27 +02:00
|
|
|
|
|
|
|
FILES_SUBST= BUILDLINK_DIR=${BUILDLINK_DIR}
|
2001-08-30 00:41:00 +02:00
|
|
|
FILES_SUBST+= BUILDLINK_X11_DIR=${BUILDLINK_X11_DIR}
|
2001-06-23 21:35:27 +02:00
|
|
|
FILES_SUBST+= LOCALBASE=${LOCALBASE}
|
|
|
|
FILES_SUBST+= QTDIR=${QTPREFIX}
|
|
|
|
FILES_SUBST+= X11BASE=${X11BASE}
|
|
|
|
FILES_SUBST_SED= ${FILES_SUBST:S/=/@!/:S/$/!g/:S/^/ -e s!@/}
|
|
|
|
|
|
|
|
post-extract:
|
|
|
|
cd ${WRKSRC}/configs; \
|
|
|
|
for file in netbsd-g++-static solaris-g++-static; do \
|
|
|
|
${MV} -f $${file} $${file}.in; \
|
|
|
|
done
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
cd ${WRKSRC}/configs; \
|
|
|
|
for file in netbsd-g++-static solaris-g++-static; do \
|
|
|
|
${SED} ${FILES_SUBST_SED} $${file}.in > $${file}; \
|
|
|
|
done
|
2001-10-09 21:51:41 +02:00
|
|
|
|
|
|
|
pre-build:
|
|
|
|
@${TOUCH} ${WRKSRC}/.buildopts
|