1999-04-09 01:12:32 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.16 1999/04/09 05:12:32 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-03-06 21:25:55 -05:00
|
|
|
DISTNAME= qt-1.42
|
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
|
|
|
|
|
|
|
NEED_VERSION= 1.64
|
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-03-09 23:00:14 -05:00
|
|
|
.if defined(USE_MESAGL)
|
1999-04-09 01:12:32 -04:00
|
|
|
LIB_DEPENDS= MesaGL:${PORTSDIR}/graphics/MesaGL \
|
|
|
|
MesaGLU:${PORTSDIR}/graphics/MesaGL
|
1999-03-09 23:00:14 -05:00
|
|
|
.endif
|
1998-01-24 16:31:53 -05:00
|
|
|
|
1999-03-06 22:40:09 -05:00
|
|
|
.if ${MACHINE_ARCH} == "sparc"
|
1999-03-23 17:00:04 -05:00
|
|
|
BROKEN= "Currently does not build on sparc due to g++ bug"
|
1999-03-06 22:40:09 -05:00
|
|
|
.endif
|
1998-07-22 23:57:51 -04:00
|
|
|
|
1998-01-24 16:31:53 -05:00
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_X11= yes
|
1999-03-06 21:25:55 -05:00
|
|
|
MAKE_ENV+= QTDIR=${WRKSRC} CXX="${CXX}" CXXFLAGS="${CXXFLAGS}"
|
1998-01-24 16:31:53 -05:00
|
|
|
|
1999-03-06 21:25:55 -05:00
|
|
|
EXAMPLES=aclock application biff connect cursor dclock desktop \
|
1999-04-09 00:51:39 -04:00
|
|
|
dirview dragdrop drawdemo forever hello layout life menu \
|
|
|
|
movies picture 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:
|
|
|
|
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} ${USE_TARGET}
|
1998-01-24 16:31:53 -05:00
|
|
|
|
|
|
|
do-install:
|
1999-03-23 17:00:04 -05:00
|
|
|
if [ -f ${WRKSRC}/lib/libqt.a ]; then \
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/lib/libqt.a ${X11BASE}/lib; \
|
|
|
|
fi
|
|
|
|
if [ -f ${WRKSRC}/lib/libqt.so.1.42 ]; then \
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/lib/libqt.so.1.42 ${X11BASE}/lib; \
|
|
|
|
fi
|
1999-03-06 21:25:55 -05:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/bin/moc ${X11BASE}/bin
|
|
|
|
${LDCONFIG} -m ${PREFIX}/lib
|
|
|
|
${MKDIR} -p ${PREFIX}/include/X11/qt
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/include/* ${PREFIX}/include/X11/qt
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/man/man1/* ${PREFIX}/man/man1
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/man/man3/* ${PREFIX}/man/man3
|
1998-07-22 08:49:44 -04:00
|
|
|
${MKDIR} -p ${PREFIX}/share/doc/qt
|
1999-03-06 21:25:55 -05:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/qt
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README.QT ${PREFIX}/share/doc/qt
|
1998-07-22 08:49:44 -04:00
|
|
|
${MKDIR} -p ${PREFIX}/lib/qt/tutorial
|
|
|
|
@${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
|
1998-07-22 08:49:44 -04: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
|
1998-07-22 08:49:44 -04:00
|
|
|
@${ECHO} "."
|
|
|
|
${MKDIR} -p ${PREFIX}/lib/qt/examples
|
|
|
|
@${ECHO} -n "Installing examples:"
|
1998-07-15 01:51:23 -04:00
|
|
|
.for f in ${EXAMPLES}
|
1998-07-22 08:49:44 -04: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
|
1998-07-22 08:49:44 -04:00
|
|
|
@${ECHO} "."
|
|
|
|
${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
|
|
|
|
|
|
|
.if defined(NO_SHARED_LIBS)
|
|
|
|
USE_TARGET= openbsd-g++-static
|
|
|
|
.else
|
|
|
|
USE_TARGET= openbsd-g++-shared
|
|
|
|
.endif
|