2000-03-06 18:24:03 +00:00
|
|
|
# New ports collection makefile for: qt21
|
1999-08-30 07:13:00 +00:00
|
|
|
# Date created: 17 Jul 1999
|
2000-03-06 18:24:03 +00:00
|
|
|
# Whom: imura@kml.cs.titech.ac.jp
|
1996-07-31 00:20:49 +00:00
|
|
|
#
|
1999-08-30 07:13:00 +00:00
|
|
|
# $FreeBSD$
|
1996-07-31 00:20:49 +00:00
|
|
|
#
|
|
|
|
|
2000-04-10 01:11:24 +00:00
|
|
|
PORTNAME= qt
|
2000-05-30 15:31:12 +00:00
|
|
|
PORTVERSION= 2.1.1
|
1998-08-07 22:56:48 +00:00
|
|
|
CATEGORIES= x11-toolkits
|
2000-04-14 16:04:55 +00:00
|
|
|
MASTER_SITES= ftp://ftp.trolltech.com/qt/source/
|
2000-04-14 16:07:58 +00:00
|
|
|
DISTNAME= ${PORTNAME}-x11-${PORTVERSION}
|
1996-07-31 00:20:49 +00:00
|
|
|
|
1999-10-02 03:26:02 +00:00
|
|
|
MAINTAINER= imura@FreeBSD.org
|
1998-04-28 02:07:56 +00:00
|
|
|
|
2000-03-06 18:24:03 +00:00
|
|
|
LIB_DEPENDS= png.3:${PORTSDIR}/graphics/png \
|
|
|
|
jpeg.9:${PORTSDIR}/graphics/jpeg \
|
2000-03-20 23:25:21 +00:00
|
|
|
GL.14:${PORTSDIR}/graphics/Mesa3
|
2000-03-03 18:54:52 +00:00
|
|
|
|
1999-08-30 07:13:00 +00:00
|
|
|
NO_LATEST_LINK= yes
|
1996-07-31 00:20:49 +00:00
|
|
|
USE_GMAKE= yes
|
2000-06-15 17:59:45 +00:00
|
|
|
INSTALL_SHLIBS= yes
|
1998-08-05 09:31:52 +00:00
|
|
|
USE_X_PREFIX= yes
|
2000-03-06 18:24:03 +00:00
|
|
|
USE_NEWGCC= yes
|
1999-08-30 07:13:00 +00:00
|
|
|
HAS_CONFIGURE= yes
|
2000-04-14 16:04:55 +00:00
|
|
|
CONFIGURE_ARGS= -system-zlib -system-libpng -system-jpeg -sm \
|
2000-03-06 18:24:03 +00:00
|
|
|
-I${LOCALBASE}/include -L${LOCALBASE}/lib
|
1999-08-30 07:13:00 +00:00
|
|
|
CONFIGURE_ENV= QTDIR=${WRKSRC}
|
2000-03-06 18:24:03 +00:00
|
|
|
MAKE_ENV= QTDIR=${WRKSRC}
|
1996-07-31 00:20:49 +00:00
|
|
|
|
2000-04-14 16:07:58 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
2000-03-06 18:24:03 +00:00
|
|
|
CONFIG= ${WRKSRC}/configs/freebsd-g++-shared
|
1999-01-07 10:58:33 +00:00
|
|
|
|
2000-06-09 03:08:06 +00:00
|
|
|
.if defined(QT_GIF_AVAILABLE) || defined(HAVE_UNISYS_LICENSE)
|
1999-08-30 07:13:00 +00:00
|
|
|
CONFIGURE_ARGS+=-gif
|
1999-08-31 18:44:01 +00:00
|
|
|
RESTRICTED= 'Requires a license from UNISYS'
|
1999-08-30 07:13:00 +00:00
|
|
|
.endif
|
|
|
|
|
2000-03-06 18:24:03 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
2000-05-30 15:31:12 +00:00
|
|
|
.include "${.CURDIR}/files/manpages"
|
1999-01-07 10:58:33 +00:00
|
|
|
.endif
|
|
|
|
|
2000-03-06 18:24:03 +00:00
|
|
|
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}
|
|
|
|
|
|
|
|
post-configure:
|
|
|
|
@(cd ${WRKSRC} ; ${GMAKE} symlinks)
|
1996-11-13 12:41:39 +00:00
|
|
|
|
1996-07-31 00:20:49 +00:00
|
|
|
do-install:
|
2000-03-06 18:24:03 +00:00
|
|
|
${MKDIR} ${PREFIX}/include/qt2
|
|
|
|
(cd ${WRKSRC} ; \
|
1999-10-31 10:12:49 +00:00
|
|
|
${INSTALL_PROGRAM} bin/mergetr ${PREFIX}/bin ; \
|
|
|
|
${INSTALL_PROGRAM} bin/moc ${PREFIX}/bin/moc2 ; \
|
|
|
|
${INSTALL_PROGRAM} bin/msg2qm ${PREFIX}/bin ; \
|
|
|
|
${INSTALL_SCRIPT} bin/findtr ${PREFIX}/bin ; \
|
|
|
|
${INSTALL_SCRIPT} bin/qt20fix ${PREFIX}/bin ; \
|
|
|
|
${INSTALL_SCRIPT} bin/qtrename140 ${PREFIX}/bin ; \
|
|
|
|
${INSTALL_DATA} include/*.h ${PREFIX}/include/qt2 ; \
|
2000-05-30 15:31:12 +00:00
|
|
|
${INSTALL_DATA} lib/libqgl.a ${PREFIX}/lib ; \
|
|
|
|
${INSTALL_DATA} lib/libqxt.a ${PREFIX}/lib ; \
|
|
|
|
${INSTALL_DATA} lib/libqt2.so.3 ${PREFIX}/lib )
|
2000-03-06 18:24:03 +00:00
|
|
|
${LN} -sf libqt2.so.3 ${PREFIX}/lib/libqt2.so
|
1999-08-30 07:13:00 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
2000-03-06 18:24:03 +00:00
|
|
|
${MKDIR} ${PREFIX}/share/doc/qt2/html
|
|
|
|
(cd ${WRKSRC} ; \
|
|
|
|
${INSTALL_DATA} ANNOUNCE ${PREFIX}/share/doc/qt2 ; \
|
1999-10-31 10:12:49 +00:00
|
|
|
${INSTALL_DATA} FAQ ${PREFIX}/share/doc/qt2 ; \
|
|
|
|
${INSTALL_DATA} LICENSE.QPL ${PREFIX}/share/doc/qt2 ; \
|
2000-03-06 18:24:03 +00:00
|
|
|
${INSTALL_DATA} PORTING ${PREFIX}/share/doc/qt2 ; \
|
1999-10-31 10:12:49 +00:00
|
|
|
${INSTALL_DATA} README ${PREFIX}/share/doc/qt2 ; \
|
|
|
|
${INSTALL_DATA} README.QT ${PREFIX}/share/doc/qt2 ; \
|
2000-04-14 16:04:55 +00:00
|
|
|
${INSTALL_DATA} changes-2.1.0 ${PREFIX}/share/doc/qt2 ; \
|
2000-05-30 15:31:12 +00:00
|
|
|
${INSTALL_DATA} changes-2.1.1 ${PREFIX}/share/doc/qt2 ; \
|
2000-03-06 18:24:03 +00:00
|
|
|
${INSTALL_DATA} doc/html/* ${PREFIX}/share/doc/qt2/html ; \
|
|
|
|
${INSTALL_MAN} doc/man/man3/q* ${PREFIX}/man/man3 )
|
1999-08-30 07:13:00 +00:00
|
|
|
.endif
|
1996-07-31 00:20:49 +00:00
|
|
|
|
2000-03-06 18:24:03 +00:00
|
|
|
.include <bsd.port.mk>
|