74 lines
2.1 KiB
Makefile
74 lines
2.1 KiB
Makefile
# $NetBSD: Makefile,v 1.25 2006/02/05 23:11:41 joerg Exp $
|
|
#
|
|
|
|
DISTNAME= qt-1.44
|
|
PKGNAME= qt1-1.44
|
|
PKGREVISION= 3
|
|
CATEGORIES= x11
|
|
MASTER_SITES= ftp://ftp.troll.no/qt/source/ \
|
|
ftp://ftp.fu-berlin.de/unix/X11/gui/Qt/source/
|
|
|
|
MAINTAINER= tech-pkg@NetBSD.org
|
|
HOMEPAGE= http://www.troll.no/products/qt.html
|
|
COMMENT= C++ X GUI toolkit
|
|
|
|
USE_X11BASE= yes
|
|
USE_TOOLS+= gmake
|
|
USE_LANGUAGES= c c++
|
|
USE_LIBTOOL= yes
|
|
|
|
QTPREFIX=${PREFIX}/qt1
|
|
|
|
MAKE_ENV+= QTDIR=${WRKSRC:Q} QTPREFIX=${QTPREFIX:Q}
|
|
MAKE_ENV+= CXXOPTS=${CFLAGS:M*:Q}
|
|
BUILD_TARGET= src
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.qt1
|
|
PKG_SUPPORTED_OPTIONS= gif
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
.include "../../mk/x11.buildlink3.mk"
|
|
|
|
.if ${OPSYS} == "DragonFly"
|
|
QT1_PLATFORM= netbsd-g++-static
|
|
.else
|
|
QT1_PLATFORM= ${LOWER_OPSYS}-g++-static
|
|
.endif
|
|
|
|
do-configure:
|
|
@cd ${WRKSRC} && ${MAKE} QTDIR=${WRKSRC} ${QT1_PLATFORM}
|
|
|
|
.if !empty(PKG_OPTIONS:Mgif)
|
|
post-patch:
|
|
cd ${WRKSRC} && ${PATCH} <${FILESDIR}/enablegif.patch
|
|
.endif
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM_DIR} ${QTPREFIX}/bin
|
|
${INSTALL_PROGRAM} ${WRKSRC}/bin/moc ${QTPREFIX}/bin
|
|
${INSTALL_DATA_DIR} ${QTPREFIX}/lib
|
|
@${LIBTOOL} ${INSTALL_DATA} ${WRKSRC}/src/libqt.la ${QTPREFIX}/lib/
|
|
${INSTALL_DATA_DIR} ${QTPREFIX}/include
|
|
${INSTALL_DATA} ${WRKSRC}/include/* ${QTPREFIX}/include/
|
|
${INSTALL_MAN_DIR} ${QTPREFIX}/man/man1
|
|
${INSTALL_MAN_DIR} ${QTPREFIX}/man/man3
|
|
${INSTALL_MAN} ${WRKSRC}/man/man1/moc.1 ${QTPREFIX}/man/man1/moc.1
|
|
@cd ${WRKSRC}/man/man3; PAGES="`ls -1 | ${SED} -e 's,\.3qt$$,,'`"; \
|
|
(for PAGE in $$PAGES; do \
|
|
${ECHO} installing ${QTPREFIX}/man/man3/$${PAGE}.3; \
|
|
set - X `head -1 $${PAGE}.3qt`; \
|
|
if [ $$# -eq 3 ] && [ "$$2" = .so ]; then \
|
|
${RM} -f ${QTPREFIX}/man/man3/$${PAGE}.3 ;\
|
|
${LN} -s `basename $$3 | ${SED} s/\.3qt$$/\.3/` \
|
|
${QTPREFIX}/man/man3/$${PAGE}.3; \
|
|
else \
|
|
${INSTALL_MAN} $${PAGE}.3qt \
|
|
${QTPREFIX}/man/man3/$${PAGE}.3; \
|
|
fi; \
|
|
done)
|
|
${INSTALL_DATA_DIR} ${QTPREFIX}/share/doc/qt
|
|
${INSTALL_DATA} ${WRKSRC}/README ${WRKSRC}/README.QT ${QTPREFIX}/share/doc/qt/
|
|
${INSTALL_DATA_DIR} ${QTPREFIX}/share/doc/qt/html
|
|
${INSTALL_DATA} ${WRKSRC}/html/* ${QTPREFIX}/share/doc/qt/html
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|