1999-06-07 11:58:48 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.21 1999/06/07 15:58:48 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-05-27 16:13:30 -04:00
|
|
|
LIB_DEPENDS= MesaGL.3.0:${PORTSDIR}/graphics/MesaGL \
|
|
|
|
MesaGLU.3.0:${PORTSDIR}/graphics/MesaGL
|
1998-01-24 16:31:53 -05:00
|
|
|
|
1999-06-07 11:58:48 -04:00
|
|
|
USE_EGXX= yes
|
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:
|
|
|
|
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
|
1999-05-27 16:13:30 -04:00
|
|
|
if [ -f ${WRKSRC}/lib/libqt.so.1.44 ]; then \
|
|
|
|
${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
|
|
|
|
${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
|