aboutsummaryrefslogtreecommitdiff
path: root/x11-toolkits/qt31
diff options
context:
space:
mode:
authorWill Andrews <will@FreeBSD.org>2000-12-22 06:01:12 +0000
committerWill Andrews <will@FreeBSD.org>2000-12-22 06:01:12 +0000
commitbdffbec64a74b98a46cdf78f13f12f015f57e388 (patch)
tree0f9525810f19c6a3a6c3db84bdb04cd882f8b85d /x11-toolkits/qt31
parentf4acc5c7e9f8f6c473af09c9e066218d7c030cb8 (diff)
downloadports-bdffbec64a74b98a46cdf78f13f12f015f57e388.tar.gz
ports-bdffbec64a74b98a46cdf78f13f12f015f57e388.zip
Add in antialiasing support (PORTREVISION conditional on whether AA
support is compiled in), untested because I don't have X4.0.2, but the port works fine for the non-X4.0.2 case. Also substitute multiple perl regexes on the same file for one sed regex. Add MAKE_ARGS=-j2 by default since it makes QT compile faster even on uniprocessor systems. I wanted to avoid putting the AA patch in CVS since it will be short-lived, as the patch is in TrollTech's CVS and will most likely be released as part of QT 2.2.4. Nevertheless, I thought I'd bring it in for the folks who like bleeding edge.. since antialiasing most likely improves KDE2's look and feel very much. Submitted by: kevlo (AA patch) Mikhail Teterin <mi@aldan.algebra.com> (-j2)
Notes
Notes: svn path=/head/; revision=36220
Diffstat (limited to 'x11-toolkits/qt31')
-rw-r--r--x11-toolkits/qt31/Makefile37
-rw-r--r--x11-toolkits/qt31/distinfo1
2 files changed, 27 insertions, 11 deletions
diff --git a/x11-toolkits/qt31/Makefile b/x11-toolkits/qt31/Makefile
index f4d38f3f94da..ecad37d0a72c 100644
--- a/x11-toolkits/qt31/Makefile
+++ b/x11-toolkits/qt31/Makefile
@@ -7,10 +7,19 @@
PORTNAME= qt
PORTVERSION= 2.2.3
+.if exists(${X11BASE}/lib/libXft.so) && !defined(NO_AA)
+PORTREVISION= 1
+.endif
CATEGORIES= x11-toolkits
MASTER_SITES= ftp://ftp.trolltech.com/qt/source/
DISTNAME= qt-x11-${PORTVERSION}
+.if exists(${X11BASE}/lib/libXft.so) && !defined(NO_AA)
+PATCHFILES= qt-aa-${PORTVERSION}.diff.gz
+PATCH_SITES= ${MASTER_SITE_LOCAL}
+PATCH_SITE_SUBDIR= will
+.endif
+
MAINTAINER= will@FreeBSD.org
LIB_DEPENDS= mng.0:${PORTSDIR}/graphics/libmng \
@@ -28,6 +37,7 @@ CONFIGURE_ARGS= -system-zlib -system-libpng -system-jpeg -sm -gif \
-system-libmng \
-I${LOCALBASE}/include -L${LOCALBASE}/lib
CONFIGURE_ENV= ${YES} yes | QTDIR=${WRKSRC}
+MAKE_ARGS+= MAKE="${GMAKE} -j2"
MAKE_ENV= QTDIR=${WRKSRC} LD_LIBRARY_PATH=${WRKSRC}/lib
CONFIG= ${WRKSRC}/configs/freebsd-g++-${STATIC}
@@ -58,14 +68,20 @@ pre-fetch:
pre-configure:
@${CP} ${CONFIG} ${CONFIG}.new
- ${SED} -e "s,gcc,${CC},g" ${CONFIG}.new | ${SED} -e "s,g\+\+,${CXX},g" | \
- ${SED} -e "s,/usr/X11R6,${X11BASE},g" | ${SED} -e "s,-pipe -O2,${CXXFLAGS},g" > ${CONFIG}
- ${PERL} -pi -e "s@VER_MAJ = 2@VER_MAJ = 4@g" ${WRKSRC}/src/Makefile.in
- ${PERL} -pi -e "s@TARGET = qt@TARGET = qt2@g" ${WRKSRC}/src/Makefile.in
+ ${SED} -e "s,gcc,${CC},g" -e "s,g\+\+,${CXX},g" -e "s,/usr/X11R6,${X11BASE},g" \
+ -e "s,-pipe -O2,${CXXFLAGS},g" ${CONFIG}.new > ${CONFIG}
+.if exists(${X11BASE}/lib/libXft.so) && !defined(NO_AA)
+ @${CP} ${CONFIG} ${CONFIG}.new
+ ${SED} -e "s,= -lXext,= -lXft -lXext,g" -e "s,= -I${X11BASE}/include,= -DQT_XFT -I${X11BASE}/include,g" \
+ ${CONFIG}.new > ${CONFIG}
+.endif
+ ${CP} ${WRKSRC}/src/Makefile.in ${WRKSRC}/src/Makefile.in.new
+ ${SED} -e "s,VER_MAJ = 2,VER_MAJ = 4,g" -e "s,TARGET = qt,TARGET = qt2,g" ${WRKSRC}/src/Makefile.in.new > ${WRKSRC}/src/Makefile.in
${PERL} -pi -e "s@TARGET\t= moc@TARGET = moc2@g" ${WRKSRC}/src/moc/Makefile.in
- ${PERL} -pi -e "s@rm -f bin/moc@rm -f bin/moc2@g" ${WRKSRC}/Makefile
- ${PERL} -pi -e "s@cp src/moc/moc bin/moc@cp src/moc/moc2 bin/moc2@g" ${WRKSRC}/Makefile
- ${PERL} -pi -e "s@symlinks src-moc src-mt sub-src sub-tools sub-tutorial sub-examples@symlinks src-moc src-mt sub-src sub-tools@g" ${WRKSRC}/Makefile
+ ${CP} ${WRKSRC}/Makefile ${WRKSRC}/Makefile.new
+ ${SED} -e "s,rm -f bin/moc,rm -f bin/moc2,g" -e "s,cp src/moc/moc bin/moc,cp src/moc/moc2 bin/moc2,g" \
+ -e "s,symlinks src-moc src-mt sub-src sub-tools sub-tutorial sub-examples,symlinks src-moc src-mt sub-src sub-tools,g" \
+ ${WRKSRC}/Makefile.new > ${WRKSRC}/Makefile
${PERL} -pi -e "s@-L../lib@-L${WRKSRC}/lib@g" ${WRKSRC}/tools/designer/uic/Makefile.in
post-configure:
@@ -108,10 +124,9 @@ do-install:
.if defined(WANT_STATIC)
post-install:
- @${PERL} -pi -e 's/libqt2\.so/libqt2.a/' ${TMPPLIST}
- @${PERL} -pi -e 's/.*libqt2\.a\.\d\n//' ${TMPPLIST}
- @${PERL} -pi -e 's/libqutil\.so/libqutil.a/' ${TMPPLIST}
- @${PERL} -pi -e 's/.*libqutil\.a\.\d\n//' ${TMPPLIST}
+ ${CP} ${TMPPLIST} ${TMPPLIST}.new
+ ${SED} -e "s/libqt2\/.so/libqt2\.a/" -e "s/.*libqt2\.a\.\d\n//" -e "s/libqutil\.so/libqutil.a" \
+ -e "s/.*libqutil\.a\.\d\n//" ${TMPPLIST}.new > ${TMPPLIST}
.endif
.include <bsd.port.mk>
diff --git a/x11-toolkits/qt31/distinfo b/x11-toolkits/qt31/distinfo
index ba0d2de41a17..2d9f30cfc960 100644
--- a/x11-toolkits/qt31/distinfo
+++ b/x11-toolkits/qt31/distinfo
@@ -1 +1,2 @@
MD5 (qt-x11-2.2.3.tar.gz) = 964ca0e7e641271a2f5706a0e4383fcf
+MD5 (qt-aa-2.2.3.diff.gz) = 027a296235e541d78d72ff99b4a86515