2000-07-13 17:26:45 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.7 2000/07/13 21:26:45 brad Exp $
|
2000-06-22 19:53:43 -04:00
|
|
|
# $FreeBSD: Makefile,v 1.33 1999/02/27 03:09:57 andreas Exp $
|
|
|
|
|
|
|
|
DISTNAME= qt-2.1.1
|
|
|
|
PKGNAME= qt2-1.1
|
|
|
|
CATEGORIES= x11
|
2000-07-13 17:26:45 -04:00
|
|
|
NEED_VERSION= 1.310
|
2000-06-22 19:53:43 -04:00
|
|
|
MASTER_SITES= ftp://ftp.troll.no/qt/source/
|
|
|
|
DISTFILES= qt-x11-2.1.1.tar.gz
|
2000-06-23 05:53:52 -04:00
|
|
|
|
2000-06-22 19:53:43 -04:00
|
|
|
HOMEPAGE= http://www.trolltech.com/qt/
|
2000-06-23 05:53:52 -04:00
|
|
|
|
2000-06-22 19:53:43 -04:00
|
|
|
MULTI_PACKAGES=-examples -html
|
|
|
|
|
|
|
|
SUBPACKAGE?=
|
|
|
|
# for the qt image extension
|
|
|
|
.if ${SUBPACKAGE} != "-html"
|
|
|
|
BUILD_DEPENDS= ${PREFIX}/include/jpeglib.h::graphics/jpeg
|
2000-07-13 17:26:45 -04:00
|
|
|
LIB_DEPENDS= png.1.::graphics/png \
|
|
|
|
jpeg.62.::graphics/jpeg
|
2000-06-22 19:53:43 -04:00
|
|
|
.endif
|
|
|
|
|
|
|
|
MAINTAINER= espie@openbsd.org
|
|
|
|
|
|
|
|
PERMIT_PACKAGE_CDROM=
|
|
|
|
PERMIT_PACKAGE_FTP=
|
|
|
|
PERMIT_DISTFILES_CDROM=
|
|
|
|
PERMIT_DISTFILES_FTP=
|
|
|
|
|
|
|
|
MAKE_ENV= QTDIR="${WRKSRC}" SYS_CXX="${CXX}" SYS_CXXFLAGS="${CXXFLAGS}"
|
|
|
|
|
2000-06-23 05:53:52 -04:00
|
|
|
CONFIGURE_STYLE= simple
|
|
|
|
CONFIGURE_ENV= ${MAKE_ENV}
|
2000-06-22 19:53:43 -04:00
|
|
|
CONFIGURE_ARGS+=-gif -system-libpng -system-jpeg -sm -no-thread -system-zlib
|
|
|
|
|
|
|
|
USE_X11= Yes
|
|
|
|
USE_GMAKE= Yes
|
|
|
|
|
|
|
|
QT_INCDIR= ${PREFIX}/include/X11/qt2
|
|
|
|
QT_LIBDIR= ${PREFIX}/lib/qt2
|
2000-06-23 05:53:52 -04:00
|
|
|
QT_MANDIR= ${QT_LIBDIR}/man
|
2000-06-22 19:53:43 -04:00
|
|
|
QT_EXAMPLES= ${QT_LIBDIR}/examples
|
|
|
|
QT_TUTORIAL= ${QT_LIBDIR}/tutorial
|
|
|
|
QT_DOC= ${PREFIX}/share/doc/qt2
|
|
|
|
|
|
|
|
# for manpages in MESSAGE
|
2000-06-23 10:17:40 -04:00
|
|
|
SUBST_VARS= QT_LIBDIR QT_DOC
|
2000-06-22 19:53:43 -04:00
|
|
|
|
|
|
|
# qt-2.1.1 -> libqt.2.11
|
|
|
|
QT_VER= 2.11
|
|
|
|
|
|
|
|
post-patch:
|
2000-07-13 17:26:45 -04:00
|
|
|
@cd ${WRKSRC}/configs; for i in openbsd-*; do \
|
2000-06-23 10:17:40 -04:00
|
|
|
mv -f $$i $$i.bak && \
|
|
|
|
sed -e s,/usr/local,${LOCALBASE}, \
|
|
|
|
-e s,/usr/X11R6,${X11BASE}, <$$i.bak >$$i; \
|
|
|
|
done
|
|
|
|
|
|
|
|
post-configure:
|
2000-07-13 17:26:45 -04:00
|
|
|
@cd ${WRKSRC} && cp -R examples examples-src
|
|
|
|
@cd ${WRKSRC} && cp -R tutorial tutorial-src
|
2000-06-22 19:53:43 -04:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_DATA_DIR} ${QT_INCDIR} ${QT_DOC}/html ${QT_LIBDIR}/bin \
|
2000-06-23 10:17:40 -04:00
|
|
|
${QT_EXAMPLES} ${QT_TUTORIAL} \
|
2000-06-22 19:53:43 -04:00
|
|
|
${QT_LIBDIR}/man/man3
|
|
|
|
@cd ${WRKBUILD}/lib; if [ -f libqt.a ]; then \
|
2000-06-23 10:17:40 -04:00
|
|
|
${INSTALL_DATA} libqt.a ${PREFIX}/lib/qt2; \
|
2000-06-22 19:53:43 -04:00
|
|
|
fi; \
|
|
|
|
if [ -f libqt.so.2.1.1 ]; then \
|
|
|
|
ln -f libqt.so.2.1.1 libqt.so.2.11; \
|
2000-06-23 10:17:40 -04:00
|
|
|
${INSTALL_DATA} libqt.so.2.11 ${PREFIX}/lib/qt2; \
|
2000-06-22 19:53:43 -04:00
|
|
|
fi
|
|
|
|
${INSTALL_PROGRAM} ${WRKBUILD}/bin/moc ${QT_LIBDIR}/bin
|
2000-07-13 17:26:45 -04:00
|
|
|
@ln -sf ${TRUEPREFIX}/lib/qt2/bin/moc ${PREFIX}/bin/moc2
|
2000-06-23 10:17:40 -04:00
|
|
|
${INSTALL_PROGRAM} ${WRKBUILD}/bin/mergetr ${PREFIX}/bin
|
|
|
|
${INSTALL_PROGRAM} ${WRKBUILD}/bin/msg2qm ${PREFIX}/bin
|
|
|
|
${INSTALL_SCRIPT} ${WRKBUILD}/bin/findtr ${PREFIX}/bin
|
|
|
|
${INSTALL_SCRIPT} ${WRKBUILD}/bin/qt20fix ${PREFIX}/bin
|
|
|
|
${INSTALL_SCRIPT} ${WRKBUILD}/bin/qtrename140 ${PREFIX}/bin
|
2000-06-22 19:53:43 -04:00
|
|
|
# avoid installing broken links
|
2000-07-13 17:26:45 -04:00
|
|
|
@rm -f ${WRKSRC}/include/qt_{mac,windows}.h
|
2000-06-23 05:53:52 -04:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/include/* ${QT_INCDIR}
|
2000-06-22 19:53:43 -04:00
|
|
|
@for i in ${WRKSRC}/doc/man/man3/*; do \
|
|
|
|
j=$${i%qt}; \
|
|
|
|
sed -e 's,\.3qt,\.3,g' <$$i >$$j && \
|
2000-06-23 05:53:52 -04:00
|
|
|
${INSTALL_MAN} $$j ${QT_MANDIR}/man3; \
|
2000-06-22 19:53:43 -04:00
|
|
|
done
|
2000-06-23 10:17:40 -04:00
|
|
|
cp -R ${WRKSRC}/examples-src/* ${QT_EXAMPLES}
|
2000-06-22 19:53:43 -04:00
|
|
|
@cd ${WRKSRC}/examples; for i in *; do \
|
|
|
|
if [ -x $$i/$$i ]; then \
|
2000-06-23 10:17:40 -04:00
|
|
|
${INSTALL_PROGRAM} $$i/$$i ${QT_EXAMPLES}/$$i; \
|
2000-06-22 19:53:43 -04:00
|
|
|
fi; done
|
2000-06-23 10:17:40 -04:00
|
|
|
cp -R ${WRKSRC}/tutorial-src/* ${QT_TUTORIAL}
|
2000-06-22 19:53:43 -04:00
|
|
|
@cd ${WRKSRC}/tutorial; for i in *; do \
|
|
|
|
if [ -x $$i/$$i ]; then \
|
2000-06-23 10:17:40 -04:00
|
|
|
${INSTALL_PROGRAM} $$i/$$i ${QT_TUTORIAL}/$$i; \
|
2000-06-22 19:53:43 -04:00
|
|
|
fi; done
|
|
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ANNOUNCE FAQ LICENSE.QPL README \
|
|
|
|
README.QT changes-2.1.0 changes-2.1.1 ${QT_DOC}
|
|
|
|
cp -R ${WRKSRC}/doc/html/* ${QT_DOC}/html
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|
2000-06-23 05:53:52 -04:00
|
|
|
|
2000-06-22 19:53:43 -04:00
|
|
|
.if ${SUBPACKAGE} =="-examples"
|
|
|
|
PKGNAME:=qt2-examples-1.1
|
|
|
|
.elif ${SUBPACKAGE} =="-html"
|
|
|
|
PKGNAME:=qt2-html-1.1
|
|
|
|
.endif
|