blob: 94494ab8cf1287600a7d5d4c1f00afde63f61cc1 (
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
# $NetBSD: buildlink.mk,v 1.9 2002/03/13 17:37:48 fredb Exp $
#
# This Makefile fragment is included by packages that use windowmaker.
#
# To use this Makefile fragment, simply:
#
# (1) Optionally define BUILDLINK_DEPENDS.windowmaker to the dependency pattern
# for the version of windowmaker 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(WINDOWMAKER_BUILDLINK_MK)
WINDOWMAKER_BUILDLINK_MK= # defined
.include "../../mk/bsd.buildlink.mk"
BUILDLINK_DEPENDS.windowmaker?= windowmaker>=0.80.0nb1
DEPENDS+= ${BUILDLINK_DEPENDS.windowmaker}:../../wm/windowmaker
EVAL_PREFIX+= BUILDLINK_PREFIX.windowmaker=windowmaker
BUILDLINK_PREFIX.windowmaker_DEFAULT= ${X11PREFIX}
BUILDLINK_FILES.windowmaker= include/WINGs/*
BUILDLINK_FILES.windowmaker+= include/WMaker.h
BUILDLINK_FILES.windowmaker+= include/wraster.h
BUILDLINK_FILES.windowmaker+= lib/libExtraWINGs.a
BUILDLINK_FILES.windowmaker+= lib/libWINGs.a
BUILDLINK_FILES.windowmaker+= lib/libWMaker.a
BUILDLINK_FILES.windowmaker+= lib/libWUtil.a
BUILDLINK_FILES.windowmaker+= lib/libwraster.*
.include "../../devel/gettext-lib/buildlink.mk"
.include "../../graphics/hermes/buildlink.mk"
.include "../../graphics/libungif/buildlink.mk"
.include "../../graphics/jpeg/buildlink.mk"
.include "../../graphics/png/buildlink.mk"
.include "../../graphics/tiff/buildlink.mk"
.include "../../graphics/xpm/buildlink.mk"
BUILDLINK_TARGETS.windowmaker= windowmaker-buildlink
BUILDLINK_TARGETS.windowmaker+= wm-wings-buildlink-config-wrapper
BUILDLINK_TARGETS.windowmaker+= wm-wutil-buildlink-config-wrapper
BUILDLINK_TARGETS.windowmaker+= wm-wraster-buildlink-config-wrapper
BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.windowmaker}
BUILDLINK_CONFIG.wm-wings= ${BUILDLINK_PREFIX.windowmaker}/bin/get-wings-flags
BUILDLINK_CONFIG_WRAPPER.wm-wings= ${BUILDLINK_DIR}/bin/get-wings-flags
REPLACE_BUILDLINK_SED+= \
-e "s|${BUILDLINK_CONFIG_WRAPPER.wm-wings}|${BUILDLINK_CONFIG.wm-wings}|g"
BUILDLINK_CONFIG.wm-wutil= ${BUILDLINK_PREFIX.windowmaker}/bin/get-wutil-flags
BUILDLINK_CONFIG_WRAPPER.wm-wutil= ${BUILDLINK_DIR}/bin/get-wutil-flags
REPLACE_BUILDLINK_SED+= \
-e "s|${BUILDLINK_CONFIG_WRAPPER.wm-wutil}|${BUILDLINK_CONFIG.wm-wutil}|g"
BUILDLINK_CONFIG.wm-wraster= ${BUILDLINK_PREFIX.windowmaker}/bin/get-wraster-flags
BUILDLINK_CONFIG_WRAPPER.wm-wraster= ${BUILDLINK_DIR}/bin/get-wraster-flags
REPLACE_BUILDLINK_SED+= \
-e "s|${BUILDLINK_CONFIG_WRAPPER.wm-wraster}|${BUILDLINK_CONFIG.wm-wraster}|g"
.if defined(USE_CONFIG_WRAPPER)
GET_WINGS_FLAGS?= ${BUILDLINK_CONFIG_WRAPPER.wm-wings}
GET_WUTIL_FLAGS?= ${BUILDLINK_CONFIG_WRAPPER.wm-wutil}
GET_WRASTER_FLAGS?= ${BUILDLINK_CONFIG_WRAPPER.wm-wraster}
CONFIGURE_ENV+= GET_WINGS_FLAGS="${GET_WINGS_FLAGS}"
MAKE_ENV+= GET_WINGS_FLAGS="${GET_WINGS_FLAGS}"
CONFIGURE_ENV+= GET_WUTIL_FLAGS="${GET_WUTIL_FLAGS}"
MAKE_ENV+= GET_WUTIL_FLAGS="${GET_WUTIL_FLAGS}"
CONFIGURE_ENV+= GET_WRASTER_FLAGS="${GET_WRASTER_FLAGS}"
MAKE_ENV+= GET_WRASTER_FLAGS="${GET_WRASTER_FLAGS}"
.endif
pre-configure: ${BUILDLINK_TARGETS.windowmaker}
windowmaker-buildlink: _BUILDLINK_USE
wm-wings-buildlink-config-wrapper: _BUILDLINK_CONFIG_WRAPPER_USE
wm-wutil-buildlink-config-wrapper: _BUILDLINK_CONFIG_WRAPPER_USE
wm-wraster-buildlink-config-wrapper: _BUILDLINK_CONFIG_WRAPPER_USE
.endif # WINDOWMAKER_BUILDLINK_MK
|