diff options
author | reed <reed@pkgsrc.org> | 2004-07-06 16:01:10 +0000 |
---|---|---|
committer | reed <reed@pkgsrc.org> | 2004-07-06 16:01:10 +0000 |
commit | cf91cf264b6d38781b6444b2afd9d14b14c69fcf (patch) | |
tree | 26aa8fd38584dda00d8f379f9cda82ce7c8789cc /x11 | |
parent | a53398616a1d7197fb11753af3348c7fa40c8231 (diff) | |
download | pkgsrc-cf91cf264b6d38781b6444b2afd9d14b14c69fcf.tar.gz |
Convert qt3-libs to use BUILDLINK3. Based on patches from Joachim
Kuebart in PR#25753. Tested by myself on Linux and NetBSD 1.6.2_STABLE.
(Also tested on NetBSD 2.0_BETA by wiz@. And tested by jschauma
under Linux.)
Diffstat (limited to 'x11')
-rw-r--r-- | x11/qt3-libs/Makefile | 28 | ||||
-rw-r--r-- | x11/qt3-libs/Makefile.common | 7 | ||||
-rw-r--r-- | x11/qt3-libs/files/qmake.conf | 6 |
3 files changed, 21 insertions, 20 deletions
diff --git a/x11/qt3-libs/Makefile b/x11/qt3-libs/Makefile index fbd18b727e9..987654ab703 100644 --- a/x11/qt3-libs/Makefile +++ b/x11/qt3-libs/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.24 2004/04/16 14:30:44 recht Exp $ +# $NetBSD: Makefile,v 1.25 2004/07/06 16:01:10 reed Exp $ # LIBQT= ${WRKSRC}/lib/libqt-mt.la @@ -8,7 +8,7 @@ LIBQT= ${WRKSRC}/lib/libqt-mt.la PKGNAME= qt3-libs-${QTVERSION} COMMENT= C++ X GUI toolkit -USE_BUILDLINK2= yes +USE_BUILDLINK3= yes GCC_REQD+= 2.95.3 ALL_TARGET= sub-plugins @@ -34,16 +34,16 @@ do-install: ${LIBTOOL} ${INSTALL_DATA} ${WRKSRC}/plugins/imageformats/libqjpeg.la ${QTPREFIX}/plugins/imageformats ${LIBTOOL} ${INSTALL_DATA} ${WRKSRC}/plugins/imageformats/libqmng.la ${QTPREFIX}/plugins/imageformats -.include "../../devel/zlib/buildlink2.mk" -.include "../../fonts/Xft2/buildlink2.mk" -.include "../../graphics/jpeg/buildlink2.mk" -.include "../../graphics/MesaLib/buildlink2.mk" -.include "../../graphics/glu/buildlink2.mk" -.include "../../graphics/mng/buildlink2.mk" -.include "../../graphics/png/buildlink2.mk" -.include "../../graphics/freetype2/buildlink2.mk" -.include "../../x11/Xrandr/buildlink2.mk" -.include "../../x11/xcursor/buildlink2.mk" - -.include "../../mk/pthread.buildlink2.mk" +.include "../../devel/zlib/buildlink3.mk" +.include "../../fonts/Xft2/buildlink3.mk" +.include "../../graphics/jpeg/buildlink3.mk" +.include "../../graphics/MesaLib/buildlink3.mk" +.include "../../graphics/glu/buildlink3.mk" +.include "../../graphics/mng/buildlink3.mk" +.include "../../graphics/png/buildlink3.mk" +.include "../../graphics/freetype2/buildlink3.mk" +.include "../../x11/Xrandr/buildlink3.mk" +.include "../../x11/xcursor/buildlink3.mk" + +.include "../../mk/pthread.buildlink3.mk" .include "../../mk/bsd.pkg.mk" diff --git a/x11/qt3-libs/Makefile.common b/x11/qt3-libs/Makefile.common index 185367b5454..cfda1ead923 100644 --- a/x11/qt3-libs/Makefile.common +++ b/x11/qt3-libs/Makefile.common @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.common,v 1.30 2004/03/30 21:50:19 xtraeme Exp $ +# $NetBSD: Makefile.common,v 1.31 2004/07/06 16:01:10 reed Exp $ # DISTNAME= qt-x11-free-${QTVERSION} CATEGORIES= x11 @@ -26,8 +26,7 @@ CONFIGURE_ARGS+= -prefix ${QTPREFIX} CONFIGURE_ARGS+= -shared -sm -thread -no-stl \ -system-zlib -system-libpng \ -system-libmng -system-libjpeg \ - -I${BUILDLINK_DIR}/include \ - -L${BUILDLINK_DIR}/lib + ${CFLAGS:M-I*} ${LDFLAGS:M-L*} ${LDFLAGS:M-Wl*:S/-Wl,//} CONFIGURE_ARGS+= -qt-gif # qt3 does not write compressed GIFs CONFIGURE_ARGS+= < ${FILESDIR}/license-acceptance @@ -89,6 +88,8 @@ post-patch: -e 's:@AR@:${AR}:g' \ -e 's:@LIBQT@:${LIBQT}:g' \ -e 's:@PTHREAD_LDFLAGS@:${PTHREAD_LDFLAGS}:g' \ + -e 's:@_COMPILER_LD_FLAG@:${_COMPILER_LD_FLAG}:g' \ + -e 's:@_OPSYS_RPATH_NAME@:${_OPSYS_RPATH_NAME}:g' \ ${FILESDIR}/qmake.conf > ${WRKSRC}/qmake.conf for dir in ${WRKSRC}/mkspecs/*; do \ ${CP} ${WRKSRC}/qmake.conf $${dir}; \ diff --git a/x11/qt3-libs/files/qmake.conf b/x11/qt3-libs/files/qmake.conf index de457ef7db3..519574edf68 100644 --- a/x11/qt3-libs/files/qmake.conf +++ b/x11/qt3-libs/files/qmake.conf @@ -1,5 +1,5 @@ -# $NetBSD: qmake.conf,v 1.12 2003/12/10 14:24:35 adam Exp $ -# $Id: qmake.conf,v 1.12 2003/12/10 14:24:35 adam Exp $ +# $NetBSD: qmake.conf,v 1.13 2004/07/06 16:01:10 reed Exp $ +# $Id: qmake.conf,v 1.13 2004/07/06 16:01:10 reed Exp $ # # qmake configuration for netbsd-g++ # @@ -62,7 +62,7 @@ QMAKE_LFLAGS_DEBUG = QMAKE_LFLAGS_SHLIB = QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB QMAKE_LFLAGS_SONAME = -QMAKE_RPATH = +QMAKE_RPATH = @_COMPILER_LD_FLAG@@_OPSYS_RPATH_NAME@ QMAKE_RUN_CC = @LIBTOOL@ --mode=compile @CC@ -c $(CFLAGS) $(INCPATH) -o $obj $src QMAKE_RUN_CC_IMP = @LIBTOOL@ --mode=compile @CC@ -c $(CFLAGS) $(INCPATH) -o $@ $< |