diff options
author | jlam <jlam@pkgsrc.org> | 2001-06-23 19:28:22 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2001-06-23 19:28:22 +0000 |
commit | e301aff54e999bd20b976615005e3626604a619e (patch) | |
tree | 179d814f3d23bd764c5fb6b007b6da21f3a1e522 /x11 | |
parent | 34d11d8a0f59e1c62bc5b1cc1046d3275e061062 (diff) | |
download | pkgsrc-e301aff54e999bd20b976615005e3626604a619e.tar.gz |
Add buildlink.mk file for use by other package Makefiles.
Diffstat (limited to 'x11')
-rw-r--r-- | x11/qt2-designer/buildlink.mk | 36 | ||||
-rw-r--r-- | x11/qt2-libs/buildlink.mk | 42 |
2 files changed, 78 insertions, 0 deletions
diff --git a/x11/qt2-designer/buildlink.mk b/x11/qt2-designer/buildlink.mk new file mode 100644 index 00000000000..0029529e266 --- /dev/null +++ b/x11/qt2-designer/buildlink.mk @@ -0,0 +1,36 @@ +# $NetBSD: buildlink.mk,v 1.1 2001/06/23 19:28:22 jlam Exp $ +# +# This Makefile fragment is included by packages that use qt2-designer. +# +# To use this Makefile fragment, simply: +# +# (1) Optionally define BUILDLINK_DEPENDS.qt2-designer to the dependency +# pattern for the version of qt2-designer desired. +# (2) Include this Makefile fragment in the package Makefile, +# (3) Add ${BUILDLINK_DIR}/include to the front of the C preprocessor's header +# search path, and +# (4) Add ${BUILDLINK_DIR}/lib to the front of the linker's library search +# path. + +.if !defined(QT2_LIBS_BUILDLINK_MK) +QT2_LIBS_BUILDLINK_MK= # defined + +BUILDLINK_DEPENDS.qt2-designer?= qt2-designer>=2.2.4 +DEPENDS+= ${BUILDLINK_DEPENDS.qt2-designer}:../../x11/qt2-designer + +BUILDLINK_PREFIX.qt2-designer= ${X11PREFIX} +BUILDLINK_FILES.qt2-designer= qt2/bin/designer +BUILDLINK_FILES.qt2-designer= qt2/bin/uic +BUILDLINK_FILES.qt2-designer+= qt2/lib/libqutil.* + +.include "../../x11/qt2-libs/buildlink.mk" + +BUILDLINK_TARGETS.qt2-designer= qt2-designer-buildlink +BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.qt2-designer} + +pre-configure: ${BUILDLINK_TARGETS.qt2-designer} +qt2-designer-buildlink: _BUILDLINK_USE + +.include "../../mk/bsd.buildlink.mk" + +.endif # QT2_LIBS_BUILDLINK_MK diff --git a/x11/qt2-libs/buildlink.mk b/x11/qt2-libs/buildlink.mk new file mode 100644 index 00000000000..5fd7c882d5f --- /dev/null +++ b/x11/qt2-libs/buildlink.mk @@ -0,0 +1,42 @@ +# $NetBSD: buildlink.mk,v 1.1 2001/06/23 19:28:22 jlam Exp $ +# +# This Makefile fragment is included by packages that use qt2-libs. +# +# To use this Makefile fragment, simply: +# +# (1) Optionally define BUILDLINK_DEPENDS.qt2-libs to the dependency pattern +# for the version of qt2-libs desired. +# (2) Include this Makefile fragment in the package Makefile, +# (3) Add ${BUILDLINK_DIR}/include to the front of the C preprocessor's header +# search path, and +# (4) Add ${BUILDLINK_DIR}/lib to the front of the linker's library search +# path. + +.if !defined(QT2_LIBS_BUILDLINK_MK) +QT2_LIBS_BUILDLINK_MK= # defined + +BUILDLINK_DEPENDS.qt2-libs?= qt2-libs>=2.2.4 +DEPENDS+= ${BUILDLINK_DEPENDS.qt2-libs}:../../x11/qt2-libs + +BUILDLINK_PREFIX.qt2-libs= ${X11PREFIX} +BUILDLINK_FILES.qt2-libs= qt2/bin/moc +BUILDLINK_FILES.qt2-libs+= qt2/include/*.h +BUILDLINK_FILES.qt2-libs+= qt2/lib/libqt.* + +.include "../../devel/zlib/buildlink.mk" +.include "../../graphics/jpeg/buildlink.mk" +.include "../../graphics/Mesa/buildlink.mk" +.include "../../graphics/mng/buildlink.mk" +.include "../../graphics/png/buildlink.mk" + +BUILDLINK_TARGETS.qt2-libs= qt2-libs-buildlink +BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.qt2-libs} + +BUILDLINK_FIX_LIBTOOL_SED+= -e "s|-L${BUILDLINK_DIR}/qt2/|-L${X11PREFX}/qt2/|g" + +pre-configure: ${BUILDLINK_TARGETS.qt2-libs} +qt2-libs-buildlink: _BUILDLINK_USE + +.include "../../mk/bsd.buildlink.mk" + +.endif # QT2_LIBS_BUILDLINK_MK |