summaryrefslogtreecommitdiff
path: root/x11/fox/buildlink.mk
blob: 8106a38f55370ca0e7de73c089ec1a85712f2865 (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
# $NetBSD: buildlink.mk,v 1.2 2002/03/13 17:37:55 fredb Exp $
#
# This Makefile fragment is included by packages that use fox.
#
# To use this Makefile fragment, simply:
#
# (1) Optionally define BUILDLINK_DEPENDS.fox to the dependency pattern
#     for the version of fox 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(FOX_BUILDLINK_MK)
FOX_BUILDLINK_MK=	# defined

.include "../../mk/bsd.buildlink.mk"

BUILDLINK_DEPENDS.fox?=	fox>=0.99.174nb1
DEPENDS+=	${BUILDLINK_DEPENDS.fox}:../../x11/fox

EVAL_PREFIX+=		BUILDLINK_PREFIX.fox=fox
BUILDLINK_PREFIX.fox_DEFAULT=	${X11PREFIX}
BUILDLINK_FILES.fox=	include/fox/*
BUILDLINK_FILES.fox+=	lib/libFOX-*
BUILDLINK_FILES.fox+=	lib/libFOX.*

BUILDLINK_TARGETS.fox=	fox-buildlink
BUILDLINK_TARGETS+=	${BUILDLINK_TARGETS.fox}

CPPFLAGS+=	-I${BUILDLINK_DIR}/include/fox

pre-configure: ${BUILDLINK_TARGETS.fox}
fox-buildlink: _BUILDLINK_USE

.endif	# FOX_BUILDLINK_MK