diff options
author | rh <rh@pkgsrc.org> | 2001-10-06 13:09:52 +0000 |
---|---|---|
committer | rh <rh@pkgsrc.org> | 2001-10-06 13:09:52 +0000 |
commit | 6ff926e635bee262a383ad1b35a845bd4c12b4da (patch) | |
tree | 9e9eff4e472ee581ff5a1e61e83b385f53db02a8 /x11/controlcenter/buildlink.mk | |
parent | 7e405ac2c24bd9ebb7741e62ba0a249aa1c357af (diff) | |
download | pkgsrc-6ff926e635bee262a383ad1b35a845bd4c12b4da.tar.gz |
Buildlinkify. Patches provided in private mail by Eric Gillespie
<epg@pretzelnet.org>, modified by me to work without xpkgwedge.
Diffstat (limited to 'x11/controlcenter/buildlink.mk')
-rw-r--r-- | x11/controlcenter/buildlink.mk | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/x11/controlcenter/buildlink.mk b/x11/controlcenter/buildlink.mk new file mode 100644 index 00000000000..63f4f6beb3d --- /dev/null +++ b/x11/controlcenter/buildlink.mk @@ -0,0 +1,50 @@ +# $NetBSD: buildlink.mk,v 1.1 2001/10/06 13:09:52 rh Exp $ +# +# This Makefile fragment is included by packages that use controlcenter. +# +# To use this Makefile fragment, simply: +# +# (1) Optionally define BUILDLINK_DEPENDS.controlcenter to the dependency +# pattern for the version of controlcenter 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(CONTROLCENTER_BUILDLINK_MK) +CONTROLCENTER_BUILDLINK_MK= # defined + +.include "../../mk/bsd.buildlink.mk" + +BUILDLINK_DEPENDS.controlcenter?= control-center>=1.4 +DEPENDS+= ${BUILDLINK_DEPENDS.controlcenter}:../../x11/controlcenter + +EVAL_PREFIX+= BUILDLINK_PREFIX.controlcenter=controlcenter +BUILDLINK_PREFIX.controlcenter_DEFAULTS= ${X11PREFIX} +BUILDLINK_FILES.controlcenter= include/capplet-widget.h +BUILDLINK_FILES.controlcenter+= lib/libcapplet.* + +.include "../../graphics/gdk-pixbuf/buildlink.mk" +.include "../../devel/gettext-lib/buildlink.mk" +.include "../../sysutils/gnome-vfs/buildlink.mk" +.include "../../x11/gnome-libs/buildlink.mk" + +BUILDLINK_TARGETS.controlcenter= controlcenter-buildlink +BUILDLINK_TARGETS.controlcenter+= controlcenter-buildlink-config-wrapper +BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.controlcenter} + +BUILDLINK_CONFIG.controlcenter= ${BUILDLINK_PREFIX.controlcenter}/lib/cappletConf.sh +BUILDLINK_CONFIG_WRAPPER.controlcenter= ${BUILDLINK_DIR}/lib/cappletConf.sh + +.if defined(USE_CONFIG_WRAPPER) +CONTROLCENTER_CONFIG?= ${BUILDLINK_CONFIG_WRAPPER.controlcenter} +CONFIGURE_ENV+= CONTROLCENTER_CONFIG="${CONTROLCENTER_CONFIG}" +MAKE_ENV+= CONTROLCENTER_CONFIG="${CONTROLCENTER_CONFIG}" +.endif + +pre-configure: ${BUILDLINK_TARGETS.controlcenter} +controlcenter-buildlink: _BUILDLINK_USE +controlcenter-buildlink-config-wrapper: _BUILDLINK_CONFIG_WRAPPER_USE + +.endif # CONTROLCENTER_BUILDLINK_MK |