1999-10-01 23:26:02 -04:00
|
|
|
# New ports collection makefile for: qt20
|
|
|
|
# Version required: 2.0.2
|
1999-08-30 03:13:00 -04:00
|
|
|
# Date created: 17 Jul 1999
|
|
|
|
# Whom: imura@cs.titech.ac.jp
|
1996-07-30 20:20:49 -04:00
|
|
|
#
|
1999-08-30 03:13:00 -04:00
|
|
|
# $FreeBSD$
|
1996-07-30 20:20:49 -04:00
|
|
|
#
|
|
|
|
|
1999-10-01 23:26:02 -04:00
|
|
|
DISTNAME= qt-2.0.2
|
1998-08-07 18:56:48 -04:00
|
|
|
CATEGORIES= x11-toolkits
|
1998-11-23 12:41:12 -05:00
|
|
|
MASTER_SITES= ftp://ftp.troll.no/qt/source/
|
1996-07-30 20:20:49 -04:00
|
|
|
|
1999-10-01 23:26:02 -04:00
|
|
|
MAINTAINER= imura@FreeBSD.org
|
1998-04-27 22:07:56 -04:00
|
|
|
|
1999-08-30 03:13:00 -04:00
|
|
|
LIB_DEPENDS= png.3:${PORTSDIR}/graphics/png
|
1998-07-20 12:51:18 -04:00
|
|
|
|
1999-08-30 03:13:00 -04:00
|
|
|
NO_LATEST_LINK= yes
|
1996-07-30 20:20:49 -04:00
|
|
|
USE_GMAKE= yes
|
1998-08-05 05:31:52 -04:00
|
|
|
USE_X_PREFIX= yes
|
1999-08-30 03:13:00 -04:00
|
|
|
HAS_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS= -system-zlib -system-libpng
|
|
|
|
CONFIGURE_ENV= QTDIR=${WRKSRC}
|
|
|
|
MAKE_ENV+= QTDIR=${WRKSRC} SYS_CXX=${CXX} SYS_CC=${CC} SYS_CXXFLAGS="${CXXFLAGS}"
|
1996-07-30 20:20:49 -04:00
|
|
|
|
1999-01-07 05:58:33 -05:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
1999-08-30 03:13:00 -04:00
|
|
|
.if defined(QT_GIF_AVAILABLE)
|
|
|
|
CONFIGURE_ARGS+=-gif
|
1999-08-31 14:44:01 -04:00
|
|
|
RESTRICTED= 'Requires a license from UNISYS'
|
1999-08-30 03:13:00 -04:00
|
|
|
.endif
|
|
|
|
|
|
|
|
USE_NEWGCC= YES
|
|
|
|
|
1999-01-07 05:58:33 -05:00
|
|
|
.if ${PORTOBJFORMAT} == "elf"
|
|
|
|
VERSION= 2
|
|
|
|
.else
|
1999-10-01 23:26:02 -04:00
|
|
|
VERSION= 2.02
|
1999-01-07 05:58:33 -05:00
|
|
|
.endif
|
1999-08-30 03:13:00 -04:00
|
|
|
PLIST_SUB= VERSION=${VERSION}
|
1999-01-07 05:58:33 -05:00
|
|
|
|
1999-08-30 03:13:00 -04:00
|
|
|
.include "files/manpages"
|
1996-11-13 07:41:39 -05:00
|
|
|
|
1996-07-30 20:20:49 -04:00
|
|
|
do-install:
|
1999-10-31 05:12:49 -05:00
|
|
|
@(cd ${WRKSRC} ; \
|
|
|
|
${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} lib/libqt2.so.${VERSION} ${PREFIX}/lib/libqt2.so.${VERSION} ; \
|
|
|
|
${LN} -sf ${PREFIX}/lib/libqt2.so.${VERSION} ${PREFIX}/lib/libqt2.so ; \
|
|
|
|
${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/lib ; \
|
|
|
|
${MKDIR} ${PREFIX}/include/qt2 ; \
|
|
|
|
${INSTALL_DATA} include/*.h ${PREFIX}/include/qt2 ; \
|
|
|
|
${INSTALL_MAN} man/man1/moc.1 ${PREFIX}/man/man1/moc2.1 ; \
|
|
|
|
${INSTALL_MAN} man/man3/q* ${PREFIX}/man/man3 )
|
1999-08-30 03:13:00 -04:00
|
|
|
.if !defined(NOPORTDOCS)
|
1999-10-31 05:12:49 -05:00
|
|
|
@(cd ${WRKSRC} ; \
|
|
|
|
${MKDIR} ${PREFIX}/share/doc/qt2/html ; \
|
|
|
|
${INSTALL_DATA} FAQ ${PREFIX}/share/doc/qt2 ; \
|
|
|
|
${INSTALL_DATA} LICENSE.QPL ${PREFIX}/share/doc/qt2 ; \
|
|
|
|
${INSTALL_DATA} README ${PREFIX}/share/doc/qt2 ; \
|
|
|
|
${INSTALL_DATA} README.QT ${PREFIX}/share/doc/qt2 ; \
|
|
|
|
${INSTALL_DATA} doc/* ${PREFIX}/share/doc/qt2/html )
|
1999-08-30 03:13:00 -04:00
|
|
|
.endif
|
1996-07-30 20:20:49 -04:00
|
|
|
|
1999-01-07 05:58:33 -05:00
|
|
|
.include <bsd.port.post.mk>
|