1999-10-02 03:26:02 +00:00
|
|
|
# New ports collection makefile for: qt20
|
|
|
|
# Version required: 2.0.2
|
1999-08-30 07:13:00 +00:00
|
|
|
# Date created: 17 Jul 1999
|
|
|
|
# Whom: imura@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
|
|
|
#
|
|
|
|
|
1999-10-02 03:26:02 +00:00
|
|
|
DISTNAME= qt-2.0.2
|
1998-08-07 22:56:48 +00:00
|
|
|
CATEGORIES= x11-toolkits
|
1998-11-23 17:41:12 +00:00
|
|
|
MASTER_SITES= ftp://ftp.troll.no/qt/source/
|
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
|
|
|
|
1999-08-30 07:13:00 +00:00
|
|
|
LIB_DEPENDS= png.3:${PORTSDIR}/graphics/png
|
1998-07-20 16:51:18 +00:00
|
|
|
|
2000-03-03 18:54:52 +00:00
|
|
|
FORBIDDEN= repository copied, awaiting upgrade
|
|
|
|
|
1999-08-30 07:13:00 +00:00
|
|
|
NO_LATEST_LINK= yes
|
1996-07-31 00:20:49 +00:00
|
|
|
USE_GMAKE= yes
|
1998-08-05 09:31:52 +00:00
|
|
|
USE_X_PREFIX= yes
|
1999-08-30 07:13:00 +00:00
|
|
|
HAS_CONFIGURE= yes
|
1999-11-26 20:31:17 +00:00
|
|
|
CONFIGURE_ARGS= -system-zlib -system-libpng \
|
|
|
|
-I${LOCALBASE}/include -L${LOCALBASE}/lib -lxpg4
|
1999-08-30 07:13:00 +00:00
|
|
|
CONFIGURE_ENV= QTDIR=${WRKSRC}
|
|
|
|
MAKE_ENV+= QTDIR=${WRKSRC} SYS_CXX=${CXX} SYS_CC=${CC} SYS_CXXFLAGS="${CXXFLAGS}"
|
1996-07-31 00:20:49 +00:00
|
|
|
|
1999-01-07 10:58:33 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
1999-08-30 07:13:00 +00:00
|
|
|
.if defined(QT_GIF_AVAILABLE)
|
|
|
|
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
|
|
|
|
|
|
|
|
USE_NEWGCC= YES
|
|
|
|
|
1999-01-07 10:58:33 +00:00
|
|
|
.if ${PORTOBJFORMAT} == "elf"
|
|
|
|
VERSION= 2
|
|
|
|
.else
|
1999-10-02 03:26:02 +00:00
|
|
|
VERSION= 2.02
|
1999-01-07 10:58:33 +00:00
|
|
|
.endif
|
1999-08-30 07:13:00 +00:00
|
|
|
PLIST_SUB= VERSION=${VERSION}
|
1999-01-07 10:58:33 +00:00
|
|
|
|
1999-08-30 07:13:00 +00:00
|
|
|
.include "files/manpages"
|
1996-11-13 12:41:39 +00:00
|
|
|
|
1996-07-31 00:20:49 +00:00
|
|
|
do-install:
|
1999-10-31 10:12:49 +00: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 07:13:00 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
1999-10-31 10:12:49 +00: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 07:13:00 +00:00
|
|
|
.endif
|
1996-07-31 00:20:49 +00:00
|
|
|
|
1999-01-07 10:58:33 +00:00
|
|
|
.include <bsd.port.post.mk>
|