mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-04 22:33:27 +00:00
69 lines
2.1 KiB
Makefile
69 lines
2.1 KiB
Makefile
# New ports collection makefile for: qt20
|
|
# Version required: 2.0.2
|
|
# Date created: 17 Jul 1999
|
|
# Whom: imura@cs.titech.ac.jp
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
DISTNAME= qt-2.0.2
|
|
CATEGORIES= x11-toolkits
|
|
MASTER_SITES= ftp://ftp.troll.no/qt/source/
|
|
|
|
MAINTAINER= imura@FreeBSD.org
|
|
|
|
LIB_DEPENDS= png.3:${PORTSDIR}/graphics/png
|
|
|
|
NO_LATEST_LINK= yes
|
|
USE_GMAKE= yes
|
|
USE_X_PREFIX= yes
|
|
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}"
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if defined(QT_GIF_AVAILABLE)
|
|
CONFIGURE_ARGS+=-gif
|
|
RESTRICTED= 'Requires a license from UNISYS'
|
|
.endif
|
|
|
|
USE_NEWGCC= YES
|
|
|
|
.if ${PORTOBJFORMAT} == "elf"
|
|
VERSION= 2
|
|
.else
|
|
VERSION= 2.02
|
|
.endif
|
|
PLIST_SUB= VERSION=${VERSION}
|
|
|
|
.include "files/manpages"
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/bin/mergetr ${PREFIX}/bin
|
|
${INSTALL_PROGRAM} ${WRKSRC}/bin/moc ${PREFIX}/bin/moc2
|
|
${INSTALL_PROGRAM} ${WRKSRC}/bin/msg2qm ${PREFIX}/bin
|
|
${INSTALL_SCRIPT} ${WRKSRC}/bin/findtr ${PREFIX}/bin
|
|
${INSTALL_SCRIPT} ${WRKSRC}/bin/qt20fix ${PREFIX}/bin
|
|
${INSTALL_SCRIPT} ${WRKSRC}/bin/qtrename140 ${PREFIX}/bin
|
|
${INSTALL_DATA} ${WRKSRC}/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} ${WRKSRC}/include/*.h ${PREFIX}/include/qt2
|
|
${INSTALL_MAN} ${WRKSRC}/man/man1/moc.1 ${PREFIX}/man/man1/moc2.1
|
|
${INSTALL_MAN} ${WRKSRC}/man/man3/q* ${PREFIX}/man/man3
|
|
.if !defined(NOPORTDOCS)
|
|
${MKDIR} ${PREFIX}/share/doc/qt2/html
|
|
${INSTALL_DATA} ${WRKSRC}/FAQ ${PREFIX}/share/doc/qt2
|
|
${INSTALL_DATA} ${WRKSRC}/LICENSE.QPL ${PREFIX}/share/doc/qt2
|
|
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/qt2
|
|
${INSTALL_DATA} ${WRKSRC}/README.QT ${PREFIX}/share/doc/qt2
|
|
${INSTALL_DATA} ${WRKSRC}/doc/[^q]* ${PREFIX}/share/doc/qt2/html
|
|
${INSTALL_DATA} ${WRKSRC}/doc/q[a-m]* ${PREFIX}/share/doc/qt2/html
|
|
${INSTALL_DATA} ${WRKSRC}/doc/q[n-z]* ${PREFIX}/share/doc/qt2/html
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|