b71a1d488b
example MAKE_ENV+=FOO=${BAR} is changed to MAKE_ENV+=FOO=${BAR:Q}. Some other changes are outlined in http://mail-index.netbsd.org/tech-pkg/2005/12/02/0034.html
68 lines
1.8 KiB
Text
68 lines
1.8 KiB
Text
# $NetBSD: Makefile.common,v 1.25 2005/12/05 20:51:19 rillig Exp $
|
|
#
|
|
|
|
DISTNAME= qt-x11-${QTVERSION}
|
|
CATEGORIES= x11
|
|
MASTER_SITES= ftp://ftp.trolltech.com/qt/source/ \
|
|
ftp://ftp.fu-berlin.de/unix/X11/gui/Qt/source/
|
|
|
|
.include "../../x11/qt2/Makefile.common"
|
|
|
|
WRKSRC= ${WRKDIR}/qt-${QTVERSION}
|
|
HAS_CONFIGURE= yes
|
|
USE_X11BASE= yes
|
|
USE_TOOLS+= gmake
|
|
USE_LIBTOOL= yes
|
|
CONFIGURE_ARGS+= -static -sm -no-thread \
|
|
-system-zlib -system-libpng \
|
|
-system-libmng -system-jpeg
|
|
CONFIGURE_ARGS+= -gif # qt2 does not write compressed GIFs
|
|
|
|
CONFIGURE_ARGS+= < ${FILESDIR}/license-acceptance
|
|
|
|
QTPREFIX= ${PREFIX}/qt2
|
|
|
|
MAKE_ENV+= QTPREFIX=${QTPREFIX:Q}
|
|
|
|
MAKE_ENV+= SYSCONF_CXXFLAGS=${CXXFLAGS:M*:Q}
|
|
MAKE_ENV+= SYSCONF_CFLAGS=${CFLAGS:M*:Q}
|
|
MAKE_ENV+= SYSCONF_CXXFLAGS_LIB=${CXXFLAGS:M*:Q}
|
|
MAKE_ENV+= SYSCONF_CFLAGS_LIB=${CFLAGS:M*:Q}
|
|
|
|
DISTINFO_FILE= ${.CURDIR}/../../x11/qt2-libs/distinfo
|
|
FILESDIR= ${.CURDIR}/../../x11/qt2-libs/files
|
|
PATCHDIR= ${.CURDIR}/../../x11/qt2-libs/patches
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if ${OPSYS} == "SunOS"
|
|
CONFIGURE_ARGS+= -platform solaris-g++
|
|
.elif ${OPSYS} == "DragonFly"
|
|
CONFIGURE_ARGS+= -xft -platform freebsd-g++
|
|
.endif
|
|
|
|
FILES_SUBST= BUILDLINK_DIR=${BUILDLINK_DIR:Q}
|
|
FILES_SUBST+= BUILDLINK_X11_DIR=${BUILDLINK_X11_DIR:Q}
|
|
FILES_SUBST+= LOCALBASE=${LOCALBASE:Q}
|
|
FILES_SUBST+= QTDIR=${QTPREFIX:Q}
|
|
FILES_SUBST+= X11BASE=${X11BASE:Q}
|
|
FILES_SUBST_SED= ${FILES_SUBST:S/=/@!/:S/$/!g/:S/^/ -e s!@/}
|
|
|
|
.include "../../mk/x11.buildlink3.mk"
|
|
|
|
post-extract:
|
|
cd ${WRKSRC}/configs; \
|
|
for file in netbsd-g++-static solaris-g++-static \
|
|
freebsd-g++-static; do \
|
|
${MV} -f $${file} $${file}.in; \
|
|
done
|
|
|
|
post-patch:
|
|
cd ${WRKSRC}/configs; \
|
|
for file in netbsd-g++-static solaris-g++-static \
|
|
freebsd-g++-static; do \
|
|
${SED} ${FILES_SUBST_SED} $${file}.in > $${file}; \
|
|
done
|
|
|
|
pre-build:
|
|
@${TOUCH} ${WRKSRC}/.buildopts
|