diff options
author | jlam <jlam@pkgsrc.org> | 2001-06-16 19:23:17 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2001-06-16 19:23:17 +0000 |
commit | 8fea51aacb40ef8dc4bcb07c66cd9596a0a178ca (patch) | |
tree | bbe1478c65c3cbf5d5d9e89509e2997156cd599e | |
parent | 455f8ec7652d10732bfa4d98b206cba83c4cf636 (diff) | |
download | pkgsrc-8fea51aacb40ef8dc4bcb07c66cd9596a0a178ca.tar.gz |
Add buildlink.mk files for use by other packages.
-rw-r--r-- | audio/esound/buildlink.mk | 43 | ||||
-rw-r--r-- | audio/libaudiofile/buildlink.mk | 44 | ||||
-rw-r--r-- | devel/glib/buildlink.mk | 46 | ||||
-rw-r--r-- | graphics/imlib/buildlink.mk | 54 | ||||
-rw-r--r-- | graphics/libungif/buildlink.mk | 33 | ||||
-rw-r--r-- | graphics/netpbm/buildlink.mk | 41 | ||||
-rw-r--r-- | graphics/xpm/buildlink.mk | 43 | ||||
-rw-r--r-- | net/ORBit/buildlink.mk | 63 | ||||
-rw-r--r-- | security/tcp_wrappers/buildlink.mk | 46 | ||||
-rw-r--r-- | x11/gnome-libs/buildlink.mk | 67 | ||||
-rw-r--r-- | x11/gtk/buildlink.mk | 45 |
11 files changed, 525 insertions, 0 deletions
diff --git a/audio/esound/buildlink.mk b/audio/esound/buildlink.mk new file mode 100644 index 00000000000..5753a939c64 --- /dev/null +++ b/audio/esound/buildlink.mk @@ -0,0 +1,43 @@ +# $NetBSD: buildlink.mk,v 1.1 2001/06/16 19:23:18 jlam Exp $ +# +# This Makefile fragment is included by packages that use esound. +# +# To use this Makefile fragment, simply: +# +# (1) Optionally define ESOUND_REQD to the version of esound 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(ESOUND_BUILDLINK_MK) +ESOUND_BUILDLINK_MK= # defined + +ESOUND_REQD?= 0.2.18 +DEPENDS+= esound>=${ESOUND_REQD}:../../audio/esound + +BUILDLINK_PREFIX.esound= ${LOCALBASE} +BUILDLINK_FILES.esound= include/esd.h +BUILDLINK_FILES.esound+= lib/libesd.* + +.include "../../audio/libaudiofile/buildlink.mk" + +BUILDLINK_TARGETS.esound= esound-buildlink +BUILDLINK_TARGETS.esound+= esound-buildlink-config-wrapper +BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.esound} + +BUILDLINK_CONFIG.esound= ${LOCALBASE}/bin/esd-config +BUILDLINK_CONFIG_WRAPPER.esound= ${BUILDLINK_DIR}/bin/esd-config + +.if defined(USE_CONFIG_WRAPPER) && defined(GNU_CONFIGURE) +CONFIGURE_ENV+= ESD_CONFIG="${BUILDLINK_CONFIG_WRAPPER.esound}" +.endif + +pre-configure: ${BUILDLINK_TARGETS.esound} +esound-buildlink: _BUILDLINK_USE +esound-buildlink-config-wrapper: _BUILDLINK_CONFIG_WRAPPER_USE + +.include "../../mk/bsd.buildlink.mk" + +.endif # ESOUND_BUILDLINK_MK diff --git a/audio/libaudiofile/buildlink.mk b/audio/libaudiofile/buildlink.mk new file mode 100644 index 00000000000..b117d2f02fd --- /dev/null +++ b/audio/libaudiofile/buildlink.mk @@ -0,0 +1,44 @@ +# $NetBSD: buildlink.mk,v 1.1 2001/06/16 19:23:17 jlam Exp $ +# +# This Makefile fragment is included by packages that use libaudiofile. +# +# To use this Makefile fragment, simply: +# +# (1) Optionally define AUDIOFILE_REQD to the version of libaudiofile 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(AUDIOFILE_BUILDLINK_MK) +AUDIOFILE_BUILDLINK_MK= # defined + +AUDIOFILE_REQD?= 0.2.1 +DEPENDS+= libaudiofile>=${AUDIOFILE_REQD}:../../audio/libaudiofile + +BUILDLINK_PREFIX.audiofile= ${LOCALBASE} +BUILDLINK_FILES.audiofile= include/af_vfs.h +BUILDLINK_FILES.audiofile+= include/audiofile.h +BUILDLINK_FILES.audiofile+= include/aupvlist.h +BUILDLINK_FILES.audiofile+= lib/audiofile.* + +BUILDLINK_TARGETS.audiofile= audiofile-buildlink +BUILDLINK_TARGETS.audiofile+= audiofile-buildlink-config-wrapper +BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.audiofile} + +BUILDLINK_CONFIG.audiofile= ${LOCALBASE}/bin/audiofile-config +BUILDLINK_CONFIG_WRAPPER.audiofile= \ + ${BUILDLINK_DIR}/bin/audiofile-config + +.if defined(USE_CONFIG_WRAPPER) && defined(GNU_CONFIGURE) +CONFIGURE_ENV+= AUDIOFILE_CONFIG="${BUILDLINK_CONFIG_WRAPPER.audiofile}" +.endif + +pre-configure: ${BUILDLINK_TARGETS.audiofile} +audiofile-buildlink: _BUILDLINK_USE +audiofile-buildlink-config-wrapper: _BUILDLINK_CONFIG_WRAPPER_USE + +.include "../../mk/bsd.buildlink.mk" + +.endif # AUDIOFILE_BUILDLINK_MK diff --git a/devel/glib/buildlink.mk b/devel/glib/buildlink.mk new file mode 100644 index 00000000000..912bf920140 --- /dev/null +++ b/devel/glib/buildlink.mk @@ -0,0 +1,46 @@ +# $NetBSD: buildlink.mk,v 1.1 2001/06/16 19:23:18 jlam Exp $ +# +# This Makefile fragment is included by packages that use glib. +# +# To use this Makefile fragment, simply: +# +# (1) Optionally define GLIB_REQD to the version of glib 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(GLIB_BUILDLINK_MK) +GLIB_BUILDLINK_MK= # defined + +GLIB_REQD?= 1.2.8 +DEPENDS+= glib>=${GLIB_REQD}:../../devel/glib + +BUILDLINK_PREFIX.glib= ${LOCALBASE} +BUILDLINK_FILES.glib= include/glib/*/* +BUILDLINK_FILES.glib+= lib/glib/*/* +BUILDLINK_FILES.glib+= lib/libglib.* +BUILDLINK_FILES.glib+= lib/libgmodule.* +BUILDLINK_FILES.glib+= lib/libgthread.* + +.include "../../devel/pth/buildlink.mk" + +BUILDLINK_TARGETS.glib= glib-buildlink +BUILDLINK_TARGETS.glib+= glib-buildlink-config-wrapper +BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.glib} + +BUILDLINK_CONFIG.glib= ${LOCALBASE}/bin/glib-config +BUILDLINK_CONFIG_WRAPPER.glib= ${BUILDLINK_DIR}/bin/glib-config + +.if defined(USE_CONFIG_WRAPPER) && defined(GNU_CONFIGURE) +CONFIGURE_ENV+= GLIB_CONFIG="${BUILDLINK_CONFIG_WRAPPER.glib}" +.endif + +pre-configure: ${BUILDLINK_TARGETS.glib} +glib-buildlink: _BUILDLINK_USE +glib-buildlink-config-wrapper: _BUILDLINK_CONFIG_WRAPPER_USE + +.include "../../mk/bsd.buildlink.mk" + +.endif # GLIB_BUILDLINK_MK diff --git a/graphics/imlib/buildlink.mk b/graphics/imlib/buildlink.mk new file mode 100644 index 00000000000..fd33045f373 --- /dev/null +++ b/graphics/imlib/buildlink.mk @@ -0,0 +1,54 @@ +# $NetBSD: buildlink.mk,v 1.1 2001/06/16 19:23:18 jlam Exp $ +# +# This Makefile fragment is included by packages that use imlib. +# +# To use this Makefile fragment, simply: +# +# (1) Optionally define IMLIB_REQD to the version of imlib 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(IMLIB_BUILDLINK_MK) +IMLIB_BUILDLINK_MK= # defined + +IMLIB_REQD?= 1.9.8 +DEPENDS+= imlib>=${IMLIB_REQD}:../../graphics/imlib + +BUILDLINK_PREFIX.imlib= ${X11PREFIX} +BUILDLINK_FILES.imlib= include/gdk_imlib.h +BUILDLINK_FILES.imlib+= include/gdk_imlib_private.h +BUILDLINK_FILES.imlib+= include/gdk_imlib_types.h +BUILDLINK_FILES.imlib+= include/Imlib.h +BUILDLINK_FILES.imlib+= include/Imlib_private.h +BUILDLINK_FILES.imlib+= include/Imlib_types.h +BUILDLINK_FILES.imlib+= lib/libImlib.* +BUILDLINK_FILES.imlib+= lib/libgdk_imlib.* + +.include "../../graphics/jpeg/buildlink.mk" +.include "../../graphics/libungif/buildlink.mk" +.include "../../graphics/netpbm/buildlink.mk" +.include "../../graphics/png/buildlink.mk" +.include "../../graphics/tiff/buildlink.mk" +.include "../../x11/gtk/buildlink.mk" + +BUILDLINK_TARGETS.imlib= imlib-buildlink +BUILDLINK_TARGETS.imlib+= imlib-buildlink-config-wrapper +BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.imlib} + +BUILDLINK_CONFIG.imlib= ${X11PREFIX}/bin/imlib-config +BUILDLINK_CONFIG_WRAPPER.imlib= ${BUILDLINK_DIR}/bin/imlib-config + +.if defined(USE_CONFIG_WRAPPER) && defined(GNU_CONFIGURE) +CONFIGURE_ENV+= IMLIB_CONFIG="${BUILDLINK_CONFIG_WRAPPER.imlib}" +.endif + +pre-configure: ${BUILDLINK_TARGETS.imlib} +imlib-buildlink: _BUILDLINK_USE +imlib-buildlink-config-wrapper: _BUILDLINK_CONFIG_WRAPPER_USE + +.include "../../mk/bsd.buildlink.mk" + +.endif # IMLIB_BUILDLINK_MK diff --git a/graphics/libungif/buildlink.mk b/graphics/libungif/buildlink.mk new file mode 100644 index 00000000000..e36adb3673e --- /dev/null +++ b/graphics/libungif/buildlink.mk @@ -0,0 +1,33 @@ +# $NetBSD: buildlink.mk,v 1.1 2001/06/16 19:23:19 jlam Exp $ +# +# This Makefile fragment is included by packages that use libungif. +# +# To use this Makefile fragment, simply: +# +# (1) Optionally define LIBUNGIF_REQD to the version of libungif 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(LIBUNGIF_BUILDLINK_MK) +LIBUNGIF_BUILDLINK_MK= # defined + +LIBUNGIF_REQD?= 4.1.0 +DEPENDS+= libungif>=${LIBUNGIF_REQD}:../../graphics/libungif + +BUILDLINK_PREFIX.libungif= ${LOCALBASE} +BUILDLINK_FILES.libungif= include/gif_lib.h +BUILDLINK_FILES.libungif+= lib/libgif.* +BUILDLINK_FILES.libungif+= lib/libungif.* + +BUILDLINK_TARGETS.libungif= libungif-buildlink +BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.libungif} + +pre-configure: ${BUILDLINK_TARGETS.libungif} +libungif-buildlink: _BUILDLINK_USE + +.include "../../mk/bsd.buildlink.mk" + +.endif # LIBUNGIF_BUILDLINK_MK diff --git a/graphics/netpbm/buildlink.mk b/graphics/netpbm/buildlink.mk new file mode 100644 index 00000000000..2752a67b496 --- /dev/null +++ b/graphics/netpbm/buildlink.mk @@ -0,0 +1,41 @@ +# $NetBSD: buildlink.mk,v 1.1 2001/06/16 19:23:19 jlam Exp $ +# +# This Makefile fragment is included by packages that use netpbm. +# +# To use this Makefile fragment, simply: +# +# (1) Optionally define NETPBM_REQD to the version of netpbm 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(NETPBM_BUILDLINK_MK) +NETPBM_BUILDLINK_MK= # defined + +NETPBM_REQD?= 9.7 +DEPENDS+= netpbm>=${NETPBM_REQD}:../../graphics/netpbm + +BUILDLINK_PREFIX.netpbm= ${LOCALBASE} +BUILDLINK_FILES.netpbm= include/pbm.h +BUILDLINK_FILES.netpbm+= include/pbmplus.h +BUILDLINK_FILES.netpbm+= include/pgm.h +BUILDLINK_FILES.netpbm+= include/pnm.h +BUILDLINK_FILES.netpbm+= include/ppm.h +BUILDLINK_FILES.netpbm+= include/ppmcmap.h +BUILDLINK_FILES.netpbm+= include/shhopt.h +BUILDLINK_FILES.netpbm+= lib/libpbm.* +BUILDLINK_FILES.netpbm+= lib/libpgm.* +BUILDLINK_FILES.netpbm+= lib/libpnm.* +BUILDLINK_FILES.netpbm+= lib/libppm.* + +BUILDLINK_TARGETS.netpbm= netpbm-buildlink +BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.netpbm} + +pre-configure: ${BUILDLINK_TARGETS.netpbm} +netpbm-buildlink: _BUILDLINK_USE + +.include "../../mk/bsd.buildlink.mk" + +.endif # NETPBM_BUILDLINK_MK diff --git a/graphics/xpm/buildlink.mk b/graphics/xpm/buildlink.mk new file mode 100644 index 00000000000..030e43e2be3 --- /dev/null +++ b/graphics/xpm/buildlink.mk @@ -0,0 +1,43 @@ +# $NetBSD: buildlink.mk,v 1.1 2001/06/16 19:23:19 jlam Exp $ +# +# This Makefile fragment is included by packages that use xpm. +# +# To use this Makefile fragment, simply: +# +# (1) Include this Makefile fragment in the package Makefile, +# (2) Add ${BUILDLINK_DIR}/include to the front of the C preprocessor's header +# search path, and +# (3) Add ${BUILDLINK_DIR}/lib to the front of the linker's library search +# path. + +.if !defined(XPM_BUILDLINK_MK) +XPM_BUILDLINK_MK= # defined + +USE_XPM= # defined + +# We double-list because we're not sure if the files are in ${X11BASE} +# or in ${LOCALBASE}. + +BUILDLINK_PREFIX.xpm-1= ${X11BASE} +BUILDLINK_FILES.xpm-1= include/X11/X11/xpm.h # for OpenWindows +BUILDLINK_FILES.xpm-1+= include/X11/xpm.h +BUILDLINK_FILES.xpm-1+= lib/libXpm.* + +BUILDLINK_TARGETS.xpm= xpm-1-buildlink + +BUILDLINK_PREFIX.xpm-2= ${LOCALBASE} +BUILDLINK_FILES.xpm-2= include/X11/X11/xpm.h # for OpenWindows +BUILDLINK_FILES.xpm-2+= include/X11/xpm.h +BUILDLINK_FILES.xpm-2+= lib/libXpm.* + +BUILDLINK_TARGETS.xpm+= xpm-2-buildlink + +BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.xpm} + +pre-configure: ${BUILDLINK_TARGETS.xpm} +xpm-1-buildlink: _BUILDLINK_USE +xpm-2-buildlink: _BUILDLINK_USE + +.include "../../mk/bsd.buildlink.mk" + +.endif # XPM_BUILDLINK_MK diff --git a/net/ORBit/buildlink.mk b/net/ORBit/buildlink.mk new file mode 100644 index 00000000000..8fa67ed357e --- /dev/null +++ b/net/ORBit/buildlink.mk @@ -0,0 +1,63 @@ +# $NetBSD: buildlink.mk,v 1.1 2001/06/16 19:23:19 jlam Exp $ +# +# This Makefile fragment is included by packages that use ORBit. +# +# To use this Makefile fragment, simply: +# +# (1) Optionally define ORBIT_REQD to the version of ORBit 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(ORBIT_BUILDLINK_MK) +ORBIT_BUILDLINK_MK= # defined + +ORBIT_REQD?= 0.5.1 +DEPENDS+= ORBit>=${ORBIT_REQD}:../../net/ORBit + +BUILDLINK_PREFIX.ORBit= ${LOCALBASE} +BUILDLINK_FILES.ORBit= include/IIOP/* +BUILDLINK_FILES.ORBit+= include/ORBitservices/* +BUILDLINK_FILES.ORBit+= include/ORBitutil/* +BUILDLINK_FILES.ORBit+= include/libIDL/* +BUILDLINK_FILES.ORBit+= include/orb/* +BUILDLINK_FILES.ORBit+= include/orbit-idl2.h +BUILDLINK_FILES.ORBit+= lib/libIDLConf.sh +BUILDLINK_FILES.ORBit+= lib/libIDL.* +BUILDLINK_FILES.ORBit+= lib/libIIOP.* +BUILDLINK_FILES.ORBit+= lib/libORBit.* +BUILDLINK_FILES.ORBit+= lib/libORBitCosNaming.* +BUILDLINK_FILES.ORBit+= lib/libORBitutil.* +BUILDLINK_FILES.ORBit+= lib/libname-server.* +BUILDLINK_FILES.ORBit+= lib/liborbit-c-backend.* + +.include "../../devel/gettext-lib/buildlink.mk" +.include "../../devel/glib/buildlink.mk" +.include "../../security/tcp_wrappers/buildlink.mk" + +BUILDLINK_TARGETS.ORBit= ORBit-buildlink +BUILDLINK_TARGETS.ORBit+= libIDL-buildlink-config-wrapper +BUILDLINK_TARGETS.ORBit+= orbit-buildlink-config-wrapper +BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.ORBit} + +BUILDLINK_CONFIG.libIDL= ${LOCALBASE}/bin/libIDL-config +BUILDLINK_CONFIG_WRAPPER.libIDL= ${BUILDLINK_DIR}/bin/libIDL-config + +BUILDLINK_CONFIG.orbit= ${LOCALBASE}/bin/orbit-config +BUILDLINK_CONFIG_WRAPPER.orbit= ${BUILDLINK_DIR}/bin/orbit-config + +.if defined(USE_CONFIG_WRAPPER) && defined(GNU_CONFIGURE) +CONFIGURE_ENV+= LIBIDL_CONFIG="${BUILDLINK_CONFIG_WRAPPER.libIDL}" +CONFIGURE_ENV+= ORBIT_CONFIG="${BUILDLINK_CONFIG_WRAPPER.orbit}" +.endif + +pre-configure: ${BUILDLINK_TARGETS.ORBit} +ORBit-buildlink: _BUILDLINK_USE +libIDL-buildlink-config-wrapper: _BUILDLINK_CONFIG_WRAPPER_USE +orbit-buildlink-config-wrapper: _BUILDLINK_CONFIG_WRAPPER_USE + +.include "../../mk/bsd.buildlink.mk" + +.endif # ORBIT_BUILDLINK_MK diff --git a/security/tcp_wrappers/buildlink.mk b/security/tcp_wrappers/buildlink.mk new file mode 100644 index 00000000000..460baa4b73c --- /dev/null +++ b/security/tcp_wrappers/buildlink.mk @@ -0,0 +1,46 @@ +# $NetBSD: buildlink.mk,v 1.1 2001/06/16 19:23:20 jlam Exp $ +# +# This Makefile fragment is included by packages that use tcp_wrappers. +# +# To use this Makefile fragment, simply: +# +# (1) Optionally define TCP_WRAPPERS_REQD to the version of tcp_wrappers +# 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(TCP_WRAPPERS_BUILDLINK_MK) +TCP_WRAPPERS_BUILDLINK_MK= # defined + +.include "../../mk/bsd.prefs.mk" + +TCP_WRAPPERS_REQD?= 7.6.1nb1 + +.if exists(/usr/include/tcpd.h) +_NEED_TCP_WRAPPERS= NO +.else +_NEED_TCP_WRAPPERS= YES +.endif + +.if ${_NEED_TCP_WRAPPERS} == "YES" +DEPENDS+= tcp_wrappers>=${TCP_WRAPPERS_REQD}:../../security/tcp_wrappers +BUILDLINK_PREFIX.tcp_wrappers= ${LOCALBASE} +.else +BUILDLINK_PREFIX.tcp_wrappers= /usr +.endif + +BUILDLINK_FILES.tcp_wrappers= include/tcpd.h +BUILDLINK_FILES.tcp_wrappers+= lib/libwrap.* + +BUILDLINK_TARGETS.tcp_wrappers= tcp_wrappers-buildlink +BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.tcp_wrappers} + +pre-configure: ${BUILDLINK_TARGETS.tcp_wrappers} +tcp_wrappers-buildlink: _BUILDLINK_USE + +.include "../../mk/bsd.buildlink.mk" + +.endif # TCP_WRAPPERS_BUILDLINK_MK diff --git a/x11/gnome-libs/buildlink.mk b/x11/gnome-libs/buildlink.mk new file mode 100644 index 00000000000..868acdd453d --- /dev/null +++ b/x11/gnome-libs/buildlink.mk @@ -0,0 +1,67 @@ +# $NetBSD: buildlink.mk,v 1.1 2001/06/16 19:23:20 jlam Exp $ +# +# This Makefile fragment is included by packages that use gnome-libs. +# +# To use this Makefile fragment, simply: +# +# (1) Optionally define GNOME_LIBS_REQD to the version of gnome-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(GNOME_LIBS_BUILDLINK_MK) +GNOME_LIBS_BUILDLINK_MK= # defined + +GNOME_LIBS_REQD?= 1.0.53 +DEPENDS+= gnome-libs>=${GNOME_LIBS_REQD}:../../x11/gnome-libs + +BUILDLINK_PREFIX.gnome-libs= ${X11PREFIX} +BUILDLINK_FILES.gnome-libs= include/gnome.h +BUILDLINK_FILES.gnome-libs+= include/gtk-xmhtml/* +BUILDLINK_FILES.gnome-libs+= include/libart_lgpl/* +BUILDLINK_FILES.gnome-libs+= include/libgnome/* +BUILDLINK_FILES.gnome-libs+= include/libgnomeui/* +BUILDLINK_FILES.gnome-libs+= include/libgnorba/* +BUILDLINK_FILES.gnome-libs+= include/popt-gnome.h +BUILDLINK_FILES.gnome-libs+= include/zvt/* +BUILDLINK_FILES.gnome-libs+= lib/gnome-libs/*/* +BUILDLINK_FILES.gnome-libs+= lib/libart_lgpl.* +BUILDLINK_FILES.gnome-libs+= lib/libgnome.* +BUILDLINK_FILES.gnome-libs+= lib/libgnomesupport.* +BUILDLINK_FILES.gnome-libs+= lib/libgnomeui.* +BUILDLINK_FILES.gnome-libs+= lib/libgnorba.* +BUILDLINK_FILES.gnome-libs+= lib/libgnorbagtk.* +BUILDLINK_FILES.gnome-libs+= lib/libgtkxmhtml.* +BUILDLINK_FILES.gnome-libs+= lib/libzvt.* + +.include "../../audio/esound/buildlink.mk" +.include "../../devel/gettext-lib/buildlink.mk" +.include "../../graphics/imlib/buildlink.mk" +.include "../../graphics/xpm/buildlink.mk" +.include "../../net/ORBit/buildlink.mk" +.include "../../x11/gtk/buildlink.mk" + +BUILDLINK_TARGETS.gnome-libs= gnome-libs-buildlink +BUILDLINK_TARGETS.gnome-libs+= gnome-libs-buildlink-config-wrapper +BUILDLINK_TARGETS.gnome-libs+= libart-buildlink-config-wrapper +BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.gnome-libs} + +BUILDLINK_CONFIG.gnome-libs= ${LOCALBASE}/bin/gnome-config +BUILDLINK_CONFIG_WRAPPER.gnome-libs= ${BUILDLINK_DIR}/bin/gnome-config +BUILDLINK_CONFIG_WRAPPER.libart= ${BUILDLINK_DIR}/bin/libart-config + +.if defined(USE_CONFIG_WRAPPER) && defined(GNU_CONFIGURE) +CONFIGURE_ENV+= GNOME_CONFIG="${BUILDLINK_CONFIG_WRAPPER.gnome-libs}" +CONFIGURE_ENV+= LIBART_CONFIG="${BUILDLINK_CONFIG_WRAPPER.libart}" +.endif + +pre-configure: ${BUILDLINK_TARGETS.gnome-libs} +gnome-libs-buildlink: _BUILDLINK_USE +gnome-libs-buildlink-config-wrapper: _BUILDLINK_CONFIG_WRAPPER_USE +libart-buildlink-config-wrapper: _BUILDLINK_CONFIG_WRAPPER_USE + +.include "../../mk/bsd.buildlink.mk" + +.endif # GNOME_LIBS_BUILDLINK_MK diff --git a/x11/gtk/buildlink.mk b/x11/gtk/buildlink.mk new file mode 100644 index 00000000000..5008ddccb3c --- /dev/null +++ b/x11/gtk/buildlink.mk @@ -0,0 +1,45 @@ +# $NetBSD: buildlink.mk,v 1.1 2001/06/16 19:23:20 jlam Exp $ +# +# This Makefile fragment is included by packages that use gtk. +# +# To use this Makefile fragment, simply: +# +# (1) Optionally define GTK_REQD to the version of gtk 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(GTK_BUILDLINK_MK) +GTK_BUILDLINK_MK= # defined + +GTK_REQD?= 1.2.8 +DEPENDS+= gtk+>=${GTK_REQD}:../../x11/gtk + +BUILDLINK_PREFIX.gtk= ${X11PREFIX} +BUILDLINK_FILES.gtk= include/gtk-*/*/* +BUILDLINK_FILES.gtk+= lib/libgdk.* +BUILDLINK_FILES.gtk+= lib/libgtk.* + +.include "../../devel/gettext-lib/buildlink.mk" +.include "../../devel/glib/buildlink.mk" + +BUILDLINK_TARGETS.gtk= gtk-buildlink +BUILDLINK_TARGETS.gtk+= gtk-buildlink-config-wrapper +BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.gtk} + +BUILDLINK_CONFIG.gtk= ${X11PREFIX}/bin/gtk-config +BUILDLINK_CONFIG_WRAPPER.gtk= ${BUILDLINK_DIR}/bin/gtk-config + +.if defined(USE_CONFIG_WRAPPER) && defined(GNU_CONFIGURE) +CONFIGURE_ENV+= GTK_CONFIG="${BUILDLINK_CONFIG_WRAPPER.gtk}" +.endif + +pre-configure: ${BUILDLINK_TARGETS.gtk} +gtk-buildlink: _BUILDLINK_USE +gtk-buildlink-config-wrapper: _BUILDLINK_CONFIG_WRAPPER_USE + +.include "../../mk/bsd.buildlink.mk" + +.endif # GTK_BUILDLINK_MK |