1999-11-29 21:32:22 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.24 1999/11/30 02:32:22 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
|
|
|
|
1999-05-27 16:13:30 -04:00
|
|
|
DISTNAME= qt-1.44
|
1998-01-24 16:31:53 -05:00
|
|
|
CATEGORIES= x11
|
1999-04-09 01:12:32 -04:00
|
|
|
MASTER_SITES= ftp://ftp.troll.no/qt/source/
|
1999-02-20 23:26:09 -05:00
|
|
|
|
1999-06-07 11:58:48 -04:00
|
|
|
NEED_VERSION= 1.96
|
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
|
|
|
|
1999-06-20 19:54:28 -04:00
|
|
|
LIB_DEPENDS= MesaGL.3.0:${PORTSDIR}/graphics/Mesa \
|
|
|
|
MesaGLU.3.0:${PORTSDIR}/graphics/Mesa
|
1998-01-24 16:31:53 -05:00
|
|
|
|
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_X11= yes
|
1999-06-07 11:58:48 -04:00
|
|
|
MAKE_ENV+= QTDIR=${WRKSRC} SYS_CXX="${CXX}" SYS_CXXFLAGS="${CXXFLAGS}"
|
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
|
|
|
|
1998-07-22 08:49:44 -04:00
|
|
|
post-configure:
|
1999-11-29 21:32:22 -05:00
|
|
|
@cd ${WRKSRC} && env ${MAKE_ENV} gmake ${USE_TARGET}
|
1998-01-24 16:31:53 -05:00
|
|
|
|
|
|
|
do-install:
|
1999-11-29 21:32:22 -05:00
|
|
|
@mkdir -p ${PREFIX}/include/X11/qt
|
|
|
|
@mkdir -p ${PREFIX}/lib/qt/examples
|
|
|
|
@mkdir -p ${PREFIX}/lib/qt/tutorial
|
|
|
|
@mkdir -p ${PREFIX}/share/doc/qt
|
1999-06-12 23:44:49 -04:00
|
|
|
@if [ -f ${WRKSRC}/lib/libqt.a ]; then \
|
1999-03-23 17:00:04 -05:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/lib/libqt.a ${X11BASE}/lib; \
|
|
|
|
fi
|
1999-06-12 23:44:49 -04:00
|
|
|
@if [ -f ${WRKSRC}/lib/libqt.so.1.44 ]; then \
|
1999-05-27 16:13:30 -04:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/lib/libqt.so.1.44 ${X11BASE}/lib; \
|
1999-03-23 17:00:04 -05:00
|
|
|
fi
|
1999-03-06 21:25:55 -05:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/bin/moc ${X11BASE}/bin
|
|
|
|
${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}"
|
1998-07-15 01:51:23 -04:00
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/tutorial/t${n}/t${n} \
|
|
|
|
${PREFIX}/lib/qt/tutorial
|
|
|
|
.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}"
|
1998-07-15 01:51:23 -04:00
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/examples/${f}/${f} \
|
1998-07-22 08:49:44 -04:00
|
|
|
${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
|
1999-11-29 21:32:22 -05:00
|
|
|
@${LDCONFIG} -m ${PREFIX}/lib
|
1998-01-24 16:31:53 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|
1999-03-01 23:41:00 -05:00
|
|
|
|
|
|
|
.if defined(NO_SHARED_LIBS)
|
|
|
|
USE_TARGET= openbsd-g++-static
|
|
|
|
.else
|
|
|
|
USE_TARGET= openbsd-g++-shared
|
|
|
|
.endif
|