85 lines
2.7 KiB
Makefile
85 lines
2.7 KiB
Makefile
# $OpenBSD: Makefile,v 1.41 2000/06/14 06:16:55 brad Exp $
|
|
# $FreeBSD: Makefile,v 1.33 1999/02/27 03:09:57 andreas Exp $
|
|
|
|
DISTNAME= qt-1.45
|
|
CATEGORIES= x11
|
|
NEED_VERSION= 1.301
|
|
MASTER_SITES= ftp://ftp.troll.no/qt/source/
|
|
|
|
# for the qt image extension
|
|
BUILD_DEPENDS= ${PREFIX}/include/jpeglib.h::graphics/jpeg
|
|
|
|
MAINTAINER= brad@openbsd.org
|
|
|
|
PERMIT_PACKAGE_CDROM=
|
|
PERMIT_PACKAGE_FTP=
|
|
PERMIT_DISTFILES_CDROM=
|
|
PERMIT_DISTFILES_FTP=
|
|
|
|
USE_GMAKE= Yes
|
|
MAKE_ENV= QTDIR="${WRKSRC}" SYS_CXX="${CXX}" SYS_CXXFLAGS="${CXXFLAGS}"
|
|
MAKE_FLAGS= VER_MAJ="1" VER_MIN="45"
|
|
|
|
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
|
|
|
|
IMAGEIODIR= ${WRKSRC}/extensions/imageio/src
|
|
|
|
post-build:
|
|
@cd ${IMAGEIODIR} && \
|
|
${SETENV} ${MAKE_ENV} SYS_CXXFLAGS='-I$(LOCALBASE)/include ${CXXFLAGS}' ${MAKE} ${MAKE_FLAGS}
|
|
|
|
do-configure:
|
|
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} ${USE_TARGET}
|
|
|
|
do-install:
|
|
${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
|
|
@if [ -f ${WRKSRC}/lib/libqt.a ]; then \
|
|
${INSTALL_DATA} ${WRKSRC}/lib/libqt.a ${PREFIX}/lib; \
|
|
fi
|
|
@if [ -f ${WRKSRC}/lib/libqt.so.1.45 ]; then \
|
|
${INSTALL_DATA} ${WRKSRC}/lib/libqt.so.1.45 ${PREFIX}/lib; \
|
|
fi
|
|
@if [ -f ${WRKSRC}/lib/libqimgio.a ]; then \
|
|
${INSTALL_DATA} ${WRKSRC}/lib/libqimgio.a ${PREFIX}/lib; \
|
|
fi
|
|
@if [ -f ${WRKSRC}/lib/libqimgio.so.1.45 ]; then \
|
|
${INSTALL_DATA} ${WRKSRC}/lib/libqimgio.so.1.45 ${PREFIX}/lib; \
|
|
fi
|
|
${INSTALL_PROGRAM} ${WRKSRC}/bin/moc ${PREFIX}/bin
|
|
${INSTALL_DATA} ${WRKSRC}/include/* ${PREFIX}/include/X11/qt
|
|
${INSTALL_MAN} ${WRKSRC}/man/man1/* ${PREFIX}/man/man1
|
|
@for i in ${WRKSRC}/man/man3/*; do \
|
|
j=$${i%qt}; \
|
|
sed -e 's,\.3qt,\.3,g' <$$i >$$j && \
|
|
${INSTALL_MAN} $$j ${PREFIX}/man/man3; \
|
|
done
|
|
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/qt
|
|
${INSTALL_DATA} ${WRKSRC}/README.QT ${PREFIX}/share/doc/qt
|
|
@echo -n "Installing tutorials:"
|
|
.for n in 1 2 3 4 5 6 7 8 9 10 11 12 13 14
|
|
@echo -n " ${n}"
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/tutorial/t${n}/t${n} ${PREFIX}/lib/qt/tutorial
|
|
.endfor
|
|
@echo "."
|
|
@echo -n "Installing examples:"
|
|
.for f in ${EXAMPLES}
|
|
@echo -n " ${f}"
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/examples/${f}/${f} ${PREFIX}/lib/qt/examples
|
|
.endfor
|
|
@echo "."
|
|
${INSTALL_DATA} ${WRKSRC}/examples/README ${PREFIX}/lib/qt/examples
|
|
|
|
.include <bsd.port.mk>
|
|
|
|
.if defined(NO_SHARED_LIBS) && ${NO_SHARED_LIBS:U} == YES
|
|
USE_TARGET= openbsd-g++-static
|
|
.else
|
|
USE_TARGET= openbsd-g++-shared
|
|
.endif
|