blob: bc0bf0c1ddb8e313fcb5813362786af837ead96d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
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
|