summaryrefslogtreecommitdiffstats
path: root/x11-toolkits/qt31/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'x11-toolkits/qt31/Makefile')
-rw-r--r--x11-toolkits/qt31/Makefile52
1 files changed, 30 insertions, 22 deletions
diff --git a/x11-toolkits/qt31/Makefile b/x11-toolkits/qt31/Makefile
index ec167dc..70beda5 100644
--- a/x11-toolkits/qt31/Makefile
+++ b/x11-toolkits/qt31/Makefile
@@ -1,4 +1,4 @@
-# New ports collection makefile for: qt21
+# New ports collection makefile for: qt22
# Date created: 17 Jul 1999
# Whom: imura@kml.cs.titech.ac.jp
#
@@ -6,49 +6,58 @@
#
PORTNAME= qt
-PORTVERSION= 2.1.1
+PORTVERSION= 20000724A
CATEGORIES= x11-toolkits
-MASTER_SITES= ftp://ftp.trolltech.com/qt/source/
-DISTNAME= ${PORTNAME}-x11-${PORTVERSION}
+MASTER_SITES= ${MASTER_SITE_KDE}
+MASTER_SITE_SUBDIR= snapshots/current
-MAINTAINER= imura@FreeBSD.org
+MAINTAINER= will@FreeBSD.org
-LIB_DEPENDS= png.4:${PORTSDIR}/graphics/png \
- jpeg.9:${PORTSDIR}/graphics/jpeg \
- GL.14:${PORTSDIR}/graphics/Mesa3
+LIB_DEPENDS= png.3:${PORTSDIR}/graphics/png \
+ jpeg.9:${PORTSDIR}/graphics/jpeg
+WRKSRC= ${WRKDIR}/${PORTNAME}
+USE_BZIP2= yes
NO_LATEST_LINK= yes
USE_GMAKE= yes
-INSTALLS_SHLIB= yes
USE_X_PREFIX= yes
USE_NEWGCC= yes
HAS_CONFIGURE= yes
CONFIGURE_ARGS= -system-zlib -system-libpng -system-jpeg -sm \
- -I${LOCALBASE}/include -L${LOCALBASE}/lib
+ -gif -I${LOCALBASE}/include -L${LOCALBASE}/lib
CONFIGURE_ENV= QTDIR=${WRKSRC}
MAKE_ENV= QTDIR=${WRKSRC}
-WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
CONFIG= ${WRKSRC}/configs/freebsd-g++-shared
-.if defined(QT_GIF_AVAILABLE) || defined(HAVE_UNISYS_LICENSE)
-CONFIGURE_ARGS+=-gif
-RESTRICTED= 'Requires a license from UNISYS'
-.endif
-
.if !defined(NOPORTDOCS)
.include "${.CURDIR}/files/manpages"
.endif
+pre-fetch:
+.if exists(${X11BASE}/lib/libqt2.so.3)
+ @${ECHO} "An older version of QT2 is installed. To avoid clobbering"
+ @${ECHO} "that installation, deinstall it and then install this port."
+ @${ECHO} "Note that this port contains beta-quality source code and"
+ @${ECHO} "must be used only wherever absolutely needed, such as for"
+ @${ECHO} "KDE2 snapshot 20000724A and later."
+ @${FALSE}
+.endif
+
pre-configure:
- @${PERL} -pi -e "s,gcc,${CC},g" ${CONFIG}
- @${PERL} -pi -e "s,g\+\+,${CXX},g" ${CONFIG}
- @${PERL} -pi -e "s,/usr/X11R6,${X11BASE},g" ${CONFIG}
- @${PERL} -pi -e "s,-pipe -O2,${CXXFLAGS},g" ${CONFIG}
+ ${PERL} -pi -e "s,gcc,${CC},g" ${CONFIG}
+ ${PERL} -pi -e "s,g\+\+,${CXX},g" ${CONFIG}
+ ${PERL} -pi -e "s,/usr/X11R6,${X11BASE},g" ${CONFIG}
+ ${PERL} -pi -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
post-configure:
@(cd ${WRKSRC} ; ${GMAKE} symlinks)
+pre-install:
+ @(find ${WRKSRC} -name CVS | xargs rm -rf)
+
do-install:
${MKDIR} ${PREFIX}/include/qt2
(cd ${WRKSRC} ; \
@@ -63,6 +72,7 @@ do-install:
${INSTALL_DATA} lib/libqxt.a ${PREFIX}/lib ; \
${INSTALL_DATA} lib/libqt2.so.3 ${PREFIX}/lib )
${LN} -sf libqt2.so.3 ${PREFIX}/lib/libqt2.so
+ ${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/lib
.if !defined(NOPORTDOCS)
${MKDIR} ${PREFIX}/share/doc/qt2/html
(cd ${WRKSRC} ; \
@@ -72,8 +82,6 @@ do-install:
${INSTALL_DATA} PORTING ${PREFIX}/share/doc/qt2 ; \
${INSTALL_DATA} README ${PREFIX}/share/doc/qt2 ; \
${INSTALL_DATA} README.QT ${PREFIX}/share/doc/qt2 ; \
- ${INSTALL_DATA} changes-2.1.0 ${PREFIX}/share/doc/qt2 ; \
- ${INSTALL_DATA} changes-2.1.1 ${PREFIX}/share/doc/qt2 ; \
${INSTALL_DATA} doc/html/* ${PREFIX}/share/doc/qt2/html ; \
${INSTALL_MAN} doc/man/man3/q* ${PREFIX}/man/man3 )
.endif
OpenPOWER on IntegriCloud