2000-03-26 16:36:09 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.34 2000/03/26 21:36:09 brad 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
|
|
|
|
2000-03-07 20:27:42 -05:00
|
|
|
DISTNAME= qt-1.45
|
1998-01-24 16:31:53 -05:00
|
|
|
CATEGORIES= x11
|
2000-03-08 03:55:32 -05:00
|
|
|
NEED_VERSION= 1.218
|
2000-03-24 17:11:32 -05:00
|
|
|
MASTER_SITES= ftp://ftp.troll.no/qt/source/
|
1998-04-12 23:23:26 -04:00
|
|
|
|
1999-04-09 01:12:32 -04:00
|
|
|
MAINTAINER= brad@openbsd.org
|
1999-02-20 23:26:09 -05:00
|
|
|
|
2000-03-08 03:55:32 -05:00
|
|
|
PERMIT_PACKAGE_CDROM=
|
|
|
|
PERMIT_PACKAGE_FTP=
|
|
|
|
PERMIT_DISTFILES_CDROM=
|
|
|
|
PERMIT_DISTFILES_FTP=
|
|
|
|
|
|
|
|
FAKE= Yes
|
1998-01-24 16:31:53 -05:00
|
|
|
|
2000-03-26 16:36:09 -05: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-03-08 03:55:32 -05:00
|
|
|
MAKE_FLAGS= VER_MAJ="1" VER_MIN="45"
|
1998-01-24 16:31:53 -05:00
|
|
|
|
1999-04-12 19:23:09 -04:00
|
|
|
EXAMPLES=aclock application biff connect cursor dclock desktop dirview \
|
|
|
|
dragdrop drawdemo forever hello layout life menu movies pref \
|
|
|
|
progress qdir qmag qwerty scrollview showimg splitter table \
|
|
|
|
tetrix tictac timestmp tooltip validator widgets xform
|
1998-01-24 16:31:53 -05:00
|
|
|
|
2000-01-12 00:38:55 -05:00
|
|
|
do-configure:
|
2000-03-08 03:55:32 -05:00
|
|
|
@cd ${WRKSRC} && env ${MAKE_ENV} make ${USE_TARGET}
|
1998-01-24 16:31:53 -05:00
|
|
|
|
|
|
|
do-install:
|
2000-01-12 00:19:49 -05:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/include/X11/qt
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/lib/qt/examples
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/lib/qt/tutorial
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/qt
|
1999-06-12 23:44:49 -04:00
|
|
|
@if [ -f ${WRKSRC}/lib/libqt.a ]; then \
|
2000-01-12 00:26:01 -05:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/lib/libqt.a ${PREFIX}/lib; \
|
1999-03-23 17:00:04 -05:00
|
|
|
fi
|
2000-03-07 20:27:42 -05:00
|
|
|
@if [ -f ${WRKSRC}/lib/libqt.so.1.45 ]; then \
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/lib/libqt.so.1.45 ${PREFIX}/lib; \
|
1999-03-23 17:00:04 -05:00
|
|
|
fi
|
2000-01-12 00:26:01 -05:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/bin/moc ${PREFIX}/bin
|
1999-03-06 21:25:55 -05:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/include/* ${PREFIX}/include/X11/qt
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/man/man1/* ${PREFIX}/man/man1
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/man/man3/* ${PREFIX}/man/man3
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/qt
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README.QT ${PREFIX}/share/doc/qt
|
1999-11-29 21:32:22 -05:00
|
|
|
@echo -n "Installing tutorials:"
|
1998-07-15 01:51:23 -04:00
|
|
|
.for n in 1 2 3 4 5 6 7 8 9 10 11 12 13 14
|
1999-11-29 21:32:22 -05:00
|
|
|
@echo -n " ${n}"
|
1999-12-19 20:15:21 -05:00
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/tutorial/t${n}/t${n} ${PREFIX}/lib/qt/tutorial
|
1998-07-15 01:51:23 -04:00
|
|
|
.endfor
|
1999-11-29 21:32:22 -05:00
|
|
|
@echo "."
|
|
|
|
@echo -n "Installing examples:"
|
1998-07-15 01:51:23 -04:00
|
|
|
.for f in ${EXAMPLES}
|
1999-11-29 21:32:22 -05:00
|
|
|
@echo -n " ${f}"
|
1999-12-19 20:15:21 -05:00
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/examples/${f}/${f} ${PREFIX}/lib/qt/examples
|
1998-07-15 01:51:23 -04:00
|
|
|
.endfor
|
1999-11-29 21:32:22 -05:00
|
|
|
@echo "."
|
1998-07-22 08:49:44 -04:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/README ${PREFIX}/lib/qt/examples
|
1998-01-24 16:31:53 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|
1999-03-01 23:41:00 -05:00
|
|
|
|
1999-12-19 20:15:21 -05:00
|
|
|
.if defined(NO_SHARED_LIBS) && ${NO_SHARED_LIBS:U} == YES
|
1999-03-01 23:41:00 -05:00
|
|
|
USE_TARGET= openbsd-g++-static
|
|
|
|
.else
|
|
|
|
USE_TARGET= openbsd-g++-shared
|
|
|
|
.endif
|