2002-12-29 15:31:39 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.63 2002/12/29 20:31:41 fgsch Exp $
|
1999-03-06 21:25:55 -05:00
|
|
|
# $FreeBSD: Makefile,v 1.33 1999/02/27 03:09:57 andreas Exp $
|
1998-01-24 16:31:53 -05:00
|
|
|
|
2001-04-18 10:47:58 -04:00
|
|
|
COMMENT= "C++ X11 GUI toolkit"
|
|
|
|
COMMENT-examples="examples and tutorial for qt"
|
|
|
|
COMMENT-html= "off-line html documentation for qt"
|
|
|
|
|
2000-10-08 00:29:58 -04:00
|
|
|
VERSION= 1.45
|
|
|
|
DISTNAME= qt-${VERSION}
|
2001-04-18 10:59:28 -04:00
|
|
|
PKGNAME-examples=qt-examples-${VERSION}
|
|
|
|
PKGNAME-html= qt-html-${VERSION}
|
1998-01-24 16:31:53 -05:00
|
|
|
CATEGORIES= x11
|
2000-03-24 17:11:32 -05:00
|
|
|
MASTER_SITES= ftp://ftp.troll.no/qt/source/
|
1998-04-12 23:23:26 -04:00
|
|
|
|
2000-06-23 05:45:14 -04:00
|
|
|
HOMEPAGE= http://www.trolltech.com/products/qt/
|
|
|
|
|
2000-05-23 20:16:03 -04:00
|
|
|
# for the qt image extension
|
2001-10-28 07:30:13 -05:00
|
|
|
BUILD_DEPENDS= ::graphics/jpeg \
|
|
|
|
::graphics/png
|
2000-05-23 20:16:03 -04:00
|
|
|
|
2000-09-24 03:03:59 -04:00
|
|
|
MAINTAINER= Brad Smith <brad@openbsd.org>
|
1999-02-20 23:26:09 -05:00
|
|
|
|
2001-10-28 14:05:23 -05:00
|
|
|
PERMIT_PACKAGE_CDROM= "Restrictive license"
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= "Restrictive license"
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2000-03-08 03:55:32 -05:00
|
|
|
|
2000-08-29 22:37:52 -04:00
|
|
|
VER_MAJ= 1
|
|
|
|
VER_MIN= 45
|
|
|
|
|
|
|
|
MAKE_FLAGS= VER_MAJ="${VER_MAJ}" VER_MIN="${VER_MIN}"
|
2000-06-23 05:45:14 -04:00
|
|
|
|
2000-09-06 17:35:06 -04:00
|
|
|
USE_X11= Yes
|
2000-03-05 13:30:21 -05:00
|
|
|
USE_GMAKE= Yes
|
2000-01-12 00:19:49 -05:00
|
|
|
MAKE_ENV= QTDIR="${WRKSRC}" SYS_CXX="${CXX}" SYS_CXXFLAGS="${CXXFLAGS}"
|
2000-08-29 22:37:52 -04:00
|
|
|
|
|
|
|
MULTI_PACKAGES= -examples -html
|
|
|
|
SUBPACKAGE?=
|
2001-10-28 14:05:23 -05:00
|
|
|
|
2001-10-28 07:30:13 -05:00
|
|
|
.if defined(PACKAGING) && ${SUBPACKAGE} == "-examples"
|
2001-10-28 14:05:23 -05:00
|
|
|
LIB_DEPENDS+= lib/qt/qt.1::x11/qt
|
2001-10-28 07:30:13 -05:00
|
|
|
.endif
|
1998-01-24 16:31:53 -05:00
|
|
|
|
2001-10-28 14:05:23 -05:00
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
2000-06-23 05:45:14 -04:00
|
|
|
QT_INCDIR= ${PREFIX}/include/X11/qt
|
|
|
|
QT_LIBDIR= ${PREFIX}/lib/qt
|
|
|
|
QT_MANDIR= ${QT_LIBDIR}/man
|
|
|
|
QT_EXAMPLES= ${QT_LIBDIR}/examples
|
|
|
|
QT_TUTORIAL= ${QT_LIBDIR}/tutorial
|
|
|
|
QT_DOC= ${PREFIX}/share/doc/qt
|
|
|
|
|
|
|
|
# for manpages in MESSAGE
|
2000-06-30 03:01:33 -04:00
|
|
|
SUBST_VARS= QT_LIBDIR QT_DOC
|
1998-01-24 16:31:53 -05:00
|
|
|
|
2000-05-23 20:16:03 -04:00
|
|
|
IMAGEIODIR= ${WRKSRC}/extensions/imageio/src
|
2000-05-22 06:48:55 -04:00
|
|
|
|
2000-09-02 17:20:58 -04:00
|
|
|
DOCS= ANNOUNCE FAQ LICENSE README README.QT changes-1.40 changes-1.41 \
|
|
|
|
changes-1.42 changes-1.43 changes-1.44 changes-1.45
|
|
|
|
|
2000-06-23 05:45:14 -04:00
|
|
|
post-patch:
|
2000-06-30 03:01:33 -04:00
|
|
|
@cd ${WRKSRC}/configs; for i in openbsd-*; do \
|
|
|
|
mv -f $$i $$i.bak && \
|
|
|
|
sed -e s,/usr/local,${LOCALBASE}, \
|
|
|
|
-e s,/usr/X11R6,${X11BASE}, <$$i.bak >$$i; \
|
|
|
|
done
|
2000-05-22 06:48:55 -04:00
|
|
|
|
2000-01-12 00:38:55 -05:00
|
|
|
do-configure:
|
2000-05-22 06:48:55 -04:00
|
|
|
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} ${USE_TARGET}
|
1998-01-24 16:31:53 -05:00
|
|
|
|
2000-06-30 03:01:33 -04:00
|
|
|
post-configure:
|
|
|
|
@cd ${WRKSRC} && cp -R examples examples-src
|
|
|
|
@cd ${WRKSRC} && cp -R tutorial tutorial-src
|
|
|
|
|
2001-11-11 08:57:32 -05:00
|
|
|
VMEM_WARNING= Yes
|
2000-09-06 20:42:05 -04:00
|
|
|
|
2000-06-23 05:45:14 -04:00
|
|
|
post-build:
|
|
|
|
@cd ${IMAGEIODIR} && \
|
2002-05-26 15:04:00 -04:00
|
|
|
${SETENV} ${MAKE_ENV} SYS_CXXFLAGS='-I$(LOCALBASE)/include/libpng -I$(LOCALBASE)/include ${CXXFLAGS}' ${MAKE} ${MAKE_FLAGS}
|
2000-06-23 05:45:14 -04:00
|
|
|
|
1998-01-24 16:31:53 -05:00
|
|
|
do-install:
|
2000-06-23 05:45:14 -04:00
|
|
|
${INSTALL_DATA_DIR} ${QT_INCDIR}
|
|
|
|
${INSTALL_DATA_DIR} ${QT_MANDIR}/man1
|
|
|
|
${INSTALL_DATA_DIR} ${QT_MANDIR}/man3
|
2000-06-30 03:01:33 -04:00
|
|
|
${INSTALL_DATA_DIR} ${QT_EXAMPLES}
|
|
|
|
${INSTALL_DATA_DIR} ${QT_TUTORIAL}
|
2000-06-23 05:45:14 -04:00
|
|
|
${INSTALL_DATA_DIR} ${QT_DOC}/html
|
2001-06-09 15:53:22 -04:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/lib/qt
|
2000-06-23 05:45:14 -04:00
|
|
|
@if [ -f ${WRKBUILD}/lib/libqt.a ]; then \
|
2001-06-09 15:53:22 -04:00
|
|
|
${INSTALL_DATA} ${WRKBUILD}/lib/libqt.a ${PREFIX}/lib/qt; \
|
1999-03-23 17:00:04 -05:00
|
|
|
fi
|
2000-08-29 22:37:52 -04:00
|
|
|
@if [ -f ${WRKBUILD}/lib/libqt.so.${VER_MAJ}.${VER_MIN} ]; then \
|
2001-06-09 15:53:22 -04:00
|
|
|
${INSTALL_DATA} ${WRKBUILD}/lib/libqt.so.${VER_MAJ}.${VER_MIN} ${PREFIX}/lib/qt; \
|
|
|
|
ln -sf qt/libqt.so.${VER_MAJ}.${VER_MIN} ${PREFIX}/lib; \
|
1999-03-23 17:00:04 -05:00
|
|
|
fi
|
2000-06-23 05:45:14 -04:00
|
|
|
@if [ -f ${WRKBUILD}/lib/libqimgio.a ]; then \
|
|
|
|
${INSTALL_DATA} ${WRKBUILD}/lib/libqimgio.a ${PREFIX}/lib; \
|
2000-05-22 06:48:55 -04:00
|
|
|
fi
|
2000-08-29 22:37:52 -04:00
|
|
|
@if [ -f ${WRKBUILD}/lib/libqimgio.so.${VER_MAJ}.${VER_MIN} ]; then \
|
|
|
|
${INSTALL_DATA} ${WRKBUILD}/lib/libqimgio.so.${VER_MAJ}.${VER_MIN} ${PREFIX}/lib; \
|
2000-05-22 06:48:55 -04:00
|
|
|
fi
|
2000-06-23 05:45:14 -04:00
|
|
|
${INSTALL_PROGRAM} ${WRKBUILD}/bin/moc ${PREFIX}/bin
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/include/* ${QT_INCDIR}
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/man/man1/* ${QT_MANDIR}/man1
|
2000-05-19 09:36:21 -04:00
|
|
|
@for i in ${WRKSRC}/man/man3/*; do \
|
|
|
|
j=$${i%qt}; \
|
|
|
|
sed -e 's,\.3qt,\.3,g' <$$i >$$j && \
|
2000-06-23 05:45:14 -04:00
|
|
|
${INSTALL_MAN} $$j ${QT_MANDIR}/man3; \
|
2000-05-19 09:36:21 -04:00
|
|
|
done
|
2000-06-30 03:01:33 -04:00
|
|
|
cp -R ${WRKSRC}/examples-src/* ${QT_EXAMPLES}
|
2000-06-23 05:45:14 -04:00
|
|
|
@cd ${WRKSRC}/examples; for i in *; do \
|
|
|
|
if [ -x $$i/$$i ]; then \
|
2000-06-30 03:01:33 -04:00
|
|
|
${INSTALL_PROGRAM} $$i/$$i ${QT_EXAMPLES}/$$i; \
|
2000-06-23 05:45:14 -04:00
|
|
|
fi; done
|
2000-06-30 03:01:33 -04:00
|
|
|
cp -R ${WRKSRC}/tutorial-src/* ${QT_TUTORIAL}
|
2000-06-23 05:45:14 -04:00
|
|
|
@cd ${WRKSRC}/tutorial; for i in *; do \
|
|
|
|
if [ -x $$i/$$i ]; then \
|
2000-06-30 03:01:33 -04:00
|
|
|
${INSTALL_PROGRAM} $$i/$$i ${QT_TUTORIAL}/$$i; \
|
2000-06-23 05:45:14 -04:00
|
|
|
fi; done
|
2000-09-02 17:20:58 -04:00
|
|
|
cd ${WRKSRC}; ${INSTALL_DATA} ${DOCS} ${QT_DOC}
|
2000-06-23 05:45:14 -04:00
|
|
|
cp -R ${WRKSRC}/html/* ${QT_DOC}/html
|
1998-01-24 16:31:53 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|
1999-03-01 23:41:00 -05:00
|
|
|
|
2001-04-18 10:59:28 -04:00
|
|
|
.if defined(NO_SHARED_LIBS) && ${NO_SHARED_LIBS:L} == "yes"
|
1999-03-01 23:41:00 -05:00
|
|
|
USE_TARGET= openbsd-g++-static
|
|
|
|
.else
|
|
|
|
USE_TARGET= openbsd-g++-shared
|
|
|
|
.endif
|