2000-06-23 05:53:52 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.4 2000/06/23 09:53:52 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
|
|
|
|
NEED_VERSION= 1.301
|
|
|
|
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
|
|
|
|
LIB_DEPENDS= png.1.::graphics/png jpeg.62.::graphics/jpeg
|
|
|
|
.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 05:53:52 -04:00
|
|
|
SUBST_VARS= QT_LIBDIR
|
2000-06-22 19:53:43 -04:00
|
|
|
|
|
|
|
# qt-2.1.1 -> libqt.2.11
|
|
|
|
QT_VER= 2.11
|
|
|
|
|
|
|
|
post-patch:
|
2000-06-23 05:53:52 -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 \
|
|
|
|
${QT_EXAMPLES}/src ${QT_EXAMPLES}/bin \
|
|
|
|
${QT_TUTORIAL}/src ${QT_TUTORIAL}/bin \
|
|
|
|
${QT_LIBDIR}/man/man3
|
|
|
|
@cd ${WRKBUILD}/lib; if [ -f libqt.a ]; then \
|
|
|
|
${INSTALL_DATA} libqt.a ${PREFIX}/lib; \
|
|
|
|
fi; \
|
|
|
|
if [ -f libqt.so.2.1.1 ]; then \
|
|
|
|
ln -f libqt.so.2.1.1 libqt.so.2.11; \
|
|
|
|
${INSTALL_DATA} libqt.so.2.11 ${PREFIX}/lib; \
|
|
|
|
fi
|
|
|
|
${INSTALL_PROGRAM} ${WRKBUILD}/bin/moc ${QT_LIBDIR}/bin
|
|
|
|
# avoid installing broken links
|
2000-06-23 04:41:16 -04:00
|
|
|
-rm ${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
|
|
|
|
cp -R ${WRKSRC}/examples-src/* ${QT_EXAMPLES}/src
|
|
|
|
@cd ${WRKSRC}/examples; for i in *; do \
|
|
|
|
if [ -x $$i/$$i ]; then \
|
|
|
|
${INSTALL_PROGRAM} $$i/$$i ${QT_EXAMPLES}/bin; \
|
|
|
|
fi; done
|
|
|
|
cp -R ${WRKSRC}/tutorial-src/* ${QT_TUTORIAL}/src
|
|
|
|
@cd ${WRKSRC}/tutorial; for i in *; do \
|
|
|
|
if [ -x $$i/$$i ]; then \
|
|
|
|
${INSTALL_PROGRAM} $$i/$$i ${QT_TUTORIAL}/bin; \
|
|
|
|
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
|