2000-09-22 11:02:34 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.9 2000/09/22 15:02:34 espie Exp $
|
2000-06-22 19:53:43 -04:00
|
|
|
# $FreeBSD: Makefile,v 1.33 1999/02/27 03:09:57 andreas Exp $
|
|
|
|
|
2000-09-22 11:02:34 -04:00
|
|
|
DISTNAME= qt-2.2.0
|
|
|
|
PKGNAME= qt2-2.0
|
2000-06-22 19:53:43 -04:00
|
|
|
CATEGORIES= x11
|
2000-09-22 11:02:34 -04:00
|
|
|
NEED_VERSION= 1.324
|
2000-06-22 19:53:43 -04:00
|
|
|
MASTER_SITES= ftp://ftp.troll.no/qt/source/
|
2000-09-22 11:02:34 -04:00
|
|
|
DISTFILES= qt-x11-2.2.0.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-09-22 11:02:34 -04:00
|
|
|
MAINTAINER= Marc Espie <espie@openbsd.org>
|
2000-06-22 19:53:43 -04:00
|
|
|
|
2000-09-22 11:02:34 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
|
|
|
USE_X11= Yes
|
|
|
|
USE_GMAKE= Yes
|
|
|
|
MAKE_ENV= QTDIR='${WRKSRC}' EXTRA_SAMPLES='${EXTRA_SAMPLES}' \
|
|
|
|
SYS_CXX='${CXX}' SYS_CXXFLAGS='${CXXFLAGS}'
|
|
|
|
CONFIGURE_STYLE= simple
|
|
|
|
CONFIGURE_ARGS= -gif -system-libpng -system-jpeg -system-zlib -no-thread -sm
|
|
|
|
CONFIGURE_ENV= QTDIR="${WRKSRC}" MODULES="${MODULES}"
|
|
|
|
|
|
|
|
MULTI_PACKAGES= -examples -html
|
2000-06-22 19:53:43 -04:00
|
|
|
SUBPACKAGE?=
|
2000-09-22 11:02:34 -04:00
|
|
|
|
|
|
|
FLAVORS=GL
|
|
|
|
FLAVOR?=
|
|
|
|
|
|
|
|
MODULES= tools kernel widgets dialogs \
|
|
|
|
iconview workspace network canvas table xml
|
|
|
|
EXTRA_SAMPLES=
|
2000-06-22 19:53:43 -04:00
|
|
|
.if ${SUBPACKAGE} != "-html"
|
2000-07-13 17:26:45 -04:00
|
|
|
LIB_DEPENDS= png.1.::graphics/png \
|
|
|
|
jpeg.62.::graphics/jpeg
|
2000-09-22 11:02:34 -04:00
|
|
|
. if ${FLAVOR:U} == "GL"
|
|
|
|
LIB_DEPENDS+= GL.3.2::graphics/Mesa
|
|
|
|
MODULES+= opengl
|
|
|
|
EXTRA_SAMPLES+=box gear glpixmap overlay overlay_x11 sharedbox
|
|
|
|
. endif
|
2000-06-22 19:53:43 -04:00
|
|
|
.endif
|
|
|
|
|
|
|
|
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
|
|
|
|
2000-09-22 11:02:34 -04:00
|
|
|
DOCS= ANNOUNCE FAQ LICENSE.GPL README README.QT changes-2.2.0
|
2000-06-22 19:53:43 -04:00
|
|
|
|
|
|
|
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
|
|
|
|
2000-09-22 11:02:34 -04:00
|
|
|
pre-build:
|
|
|
|
@echo ""
|
|
|
|
@echo "*** WARNING: you may see an error such as"
|
|
|
|
@echo "*** virtual memory exhausted"
|
|
|
|
@echo "*** when building this package. If you do you must increase"
|
|
|
|
@echo "*** your limits. See the man page for your shell and look"
|
|
|
|
@echo "*** for the 'limit' or 'ulimit' command."
|
|
|
|
@echo ""
|
|
|
|
|
2000-06-22 19:53:43 -04:00
|
|
|
do-install:
|
2000-09-22 11:02:34 -04:00
|
|
|
${INSTALL_DATA_DIR} ${QT_INCDIR}
|
|
|
|
${INSTALL_DATA_DIR} ${QT_MANDIR}/man3
|
|
|
|
${INSTALL_DATA_DIR} ${QT_LIBDIR}/bin
|
|
|
|
${INSTALL_DATA_DIR} ${QT_EXAMPLES}
|
|
|
|
${INSTALL_DATA_DIR} ${QT_TUTORIAL}
|
|
|
|
${INSTALL_DATA_DIR} ${QT_DOC}/html
|
|
|
|
@if [ -f ${WRKBUILD}/lib/libqt.a ]; then \
|
|
|
|
${INSTALL_DATA} ${WRKBUILD}/lib/libqt.a ${PREFIX}/lib/qt2; \
|
|
|
|
fi
|
|
|
|
@if [ -f ${WRKBUILD}/lib/libqt.so.2.2.0 ]; then \
|
|
|
|
${INSTALL_DATA} ${WRKBUILD}/lib/libqt.so.2.2.0 \
|
|
|
|
${PREFIX}/lib/qt2/libqt.so.2.20; \
|
|
|
|
fi
|
|
|
|
@if [ -f ${WRKBUILD}/lib/libqutil.a ]; then \
|
|
|
|
${INSTALL_DATA} ${WRKBUILD}/lib/libqutil.a ${PREFIX}/lib/qt2; \
|
|
|
|
fi
|
|
|
|
@if [ -f ${WRKBUILD}/lib/libqutil.so.1.0.0 ]; then \
|
|
|
|
${INSTALL_DATA} ${WRKBUILD}/lib/libqutil.so.1.0.0 \
|
|
|
|
${PREFIX}/lib/qt2/libqutil.so.1.0; \
|
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-09-22 11:02:34 -04:00
|
|
|
${INSTALL_PROGRAM} ${WRKBUILD}/bin/designer ${PREFIX}/bin
|
|
|
|
${INSTALL_PROGRAM} ${WRKBUILD}/bin/uic ${PREFIX}/bin
|
2000-06-23 10:17:40 -04:00
|
|
|
${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
|
2000-09-22 11:02:34 -04:00
|
|
|
cd ${WRKSRC}; ${INSTALL_DATA} ${DOCS} ${QT_DOC}
|
2000-06-22 19:53:43 -04:00
|
|
|
cp -R ${WRKSRC}/doc/html/* ${QT_DOC}/html
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|
2000-06-23 05:53:52 -04:00
|
|
|
|
2000-09-22 11:02:34 -04:00
|
|
|
.if ${SUBPACKAGE} == "-examples"
|
|
|
|
PKGNAME:=qt2-examples-2.0
|
|
|
|
.elif ${SUBPACKAGE} == "-html"
|
|
|
|
PKGNAME:=qt2-html-2.0
|
2000-06-22 19:53:43 -04:00
|
|
|
.endif
|