diff options
Diffstat (limited to 'x11/wxGTK')
-rw-r--r-- | x11/wxGTK/buildlink.mk | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/x11/wxGTK/buildlink.mk b/x11/wxGTK/buildlink.mk new file mode 100644 index 00000000000..bc0bf0c1ddb --- /dev/null +++ b/x11/wxGTK/buildlink.mk @@ -0,0 +1,63 @@ +# $NetBSD: buildlink.mk,v 1.1 2001/06/29 09:28:53 jlam Exp $ +# +# This Makefile fragment is included by packages that use wxGTK. +# +# To use this Makefile fragment, simply: +# +# (1) Optionally define BUILDLINK_DEPENDS.wxGTK to the dependency pattern +# for the version of wxGTK 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(WXGTK_BUILDLINK_MK) +WXGTK_BUILDLINK_MK= # defined + +BUILDLINK_DEPENDS.wxGTK?= wxGTK>=2.2.2 +DEPENDS+= ${BUILDLINK_DEPENDS.wxGTK}:../../x11/wxGTK + +BUILDLINK_PREFIX.wxGTK= ${X11PREFIX} +BUILDLINK_FILES.wxGTK= include/wx/* +BUILDLINK_FILES.wxGTK+= include/wx/*/* +BUILDLINK_FILES.wxGTK+= lib/wx/include/wx/gtk/* +BUILDLINK_FILES.wxGTK+= lib/libwx_gtk.* + +.include "../../graphics/jpeg/buildlink.mk" +.include "../../graphics/png/buildlink.mk" +.include "../../graphics/tiff/buildlink.mk" +.include "../../x11/gtk/buildlink.mk" + +BUILDLINK_TARGETS.wxGTK= wxGTK-buildlink +BUILDLINK_TARGETS.wxGTK+= wxGTK-1-buildlink-config-wrapper +BUILDLINK_TARGETS.wxGTK+= wxGTK-2-buildlink-config-wrapper +BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.wxGTK} + +BUILDLINK_CONFIG.wxGTK-1= ${X11PREFIX}/bin/wx-config +BUILDLINK_CONFIG.wxGTK-2= ${X11PREFIX}/bin/wxgtk-config +BUILDLINK_CONFIG_WRAPPER.wxGTK-1= ${BUILDLINK_DIR}/bin/wx-config +BUILDLINK_CONFIG_WRAPPER.wxGTK-2= ${BUILDLINK_DIR}/bin/wxgtk-config + +BUILDLINK_CONFIG_WRAPPER_SED.wxGTK= \ + -e "s|${X11PREFIX}/\(include/wx/\)|${BUILDLINK_DIR}/\1|g" \ + -e "s|${X11PREFIX}/\(lib/wx/include/\)|${BUILDLINK_DIR}/\1|g" + +BUILDLINK_CONFIG_WRAPPER_SED.wxGTK-1= ${BUILDLINK_CONFIG_WRAPPER_SED.wxGTK} +BUILDLINK_CONFIG_WRAPPER_SED.wxGTK-2= ${BUILDLINK_CONFIG_WRAPPER_SED.wxGTK} + +.if defined(USE_CONFIG_WRAPPER) && defined(GNU_CONFIGURE) +CONFIGURE_ENV+= WX_CONFIG="${BUILDLINK_CONFIG_WRAPPER.wxGTK-1}" +CONFIGURE_ENV+= WXGTK_CONFIG="${BUILDLINK_CONFIG_WRAPPER.wxGTK-2}" +.endif + +REPLACE_BUILDLINK_SED+= -e "s|-I${BUILDLINK_DIR}/include/wxGTK-1\.2/|${X11PREFIX}/include/wxGTK-1.2|g" + +pre-configure: ${BUILDLINK_TARGETS.wxGTK} +wxGTK-buildlink: _BUILDLINK_USE +wxGTK-1-buildlink-config-wrapper: _BUILDLINK_CONFIG_WRAPPER_USE +wxGTK-2-buildlink-config-wrapper: _BUILDLINK_CONFIG_WRAPPER_USE + +.include "../../mk/bsd.buildlink.mk" + +.endif # WXGTK_BUILDLINK_MK |