mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-05 22:43:24 +00:00
ad0ed0dd04
After short discussion with Imura-san, back out GIF-by-default until I can confirm whether or not there are license issues with Unisys. I will deal with this later. I should note that I'd committed to qt2[12] previously without conferring with him on the GIF issue first. One big ouchie: I didn't even set MASTER_SITE/MASTER_SITE_SUBDIR on qt22 properly.. but oh well. Nobody's perfect. :-) Things should be un-broken now.. please test these ports! I'll be trying to update them to a new snap after a week or so. Pointy hat: will Patches graciously submitted by: nra
95 lines
2.9 KiB
Makefile
95 lines
2.9 KiB
Makefile
# New ports collection makefile for: qt22
|
|
# Date created: 17 Jul 1999
|
|
# Whom: imura@kml.cs.titech.ac.jp
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= qt
|
|
PORTVERSION= 20000724A
|
|
CATEGORIES= x11-toolkits
|
|
MASTER_SITES= ${MASTER_SITE_LOCAL}
|
|
MASTER_SITE_SUBDIR= will
|
|
|
|
MAINTAINER= will@FreeBSD.org
|
|
|
|
LIB_DEPENDS= png.4:${PORTSDIR}/graphics/png \
|
|
jpeg.9:${PORTSDIR}/graphics/jpeg
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-copy
|
|
USE_BZIP2= yes
|
|
NO_LATEST_LINK= yes
|
|
USE_GMAKE= 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
|
|
CONFIGURE_ENV= QTDIR=${WRKSRC}
|
|
MAKE_ENV= QTDIR=${WRKSRC}
|
|
|
|
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@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} ; \
|
|
${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 ; \
|
|
${INSTALL_DATA} lib/libqgl.a ${PREFIX}/lib ; \
|
|
${INSTALL_DATA} lib/libqxt.a ${PREFIX}/lib ; \
|
|
${INSTALL_DATA} lib/libqt2.so.4 ${PREFIX}/lib )
|
|
${LN} -sf libqt2.so.4 ${PREFIX}/lib/libqt2.so
|
|
${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/lib
|
|
.if !defined(NOPORTDOCS)
|
|
${MKDIR} ${PREFIX}/share/doc/qt2/html
|
|
(cd ${WRKSRC} ; \
|
|
${INSTALL_DATA} ANNOUNCE ${PREFIX}/share/doc/qt2 ; \
|
|
${INSTALL_DATA} FAQ ${PREFIX}/share/doc/qt2 ; \
|
|
${INSTALL_DATA} LICENSE.QPL ${PREFIX}/share/doc/qt2 ; \
|
|
${INSTALL_DATA} PORTING ${PREFIX}/share/doc/qt2 ; \
|
|
${INSTALL_DATA} README ${PREFIX}/share/doc/qt2 ; \
|
|
${INSTALL_DATA} README.QT ${PREFIX}/share/doc/qt2 ; \
|
|
${INSTALL_DATA} doc/html/* ${PREFIX}/share/doc/qt2/html ; \
|
|
${INSTALL_MAN} doc/man/man3/q* ${PREFIX}/man/man3 )
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|