summaryrefslogtreecommitdiff
path: root/x11/kdelibs2/buildlink.mk
blob: 256e8d3fc5b9f0cd8b12918542eb44ce2e99240f (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.4 2001/07/15 11:06:10 jlam Exp $
#
# This Makefile fragment is included by packages that use kdelibs2.
#
# To use this Makefile fragment, simply:
#
# (1) Optionally define BUILDLINK_DEPENDS.kdelibs2 to the dependency pattern
#     for the version of kdelibs2 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(KDELIBS2_BUILDLINK_MK)
KDELIBS2_BUILDLINK_MK=	# defined

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

BUILDLINK_DEPENDS.kdelibs2?=	kdelibs-2.1nb1
DEPENDS+=	${BUILDLINK_DEPENDS.kdelibs2}:../../x11/kdelibs2

.include "../../mk/bsd.prefs.mk"

BUILDLINK_PREFIX.kdelibs2=	${X11PREFIX}
BUILDLINK_FILES.kdelibs2!=	${GREP} "^\(include\|lib\)" ${.CURDIR}/../../x11/kdelibs2/pkg/PLIST
BUILDLINK_FILES.kdelibs2+=	bin/dcopserver

.if (defined(KJS_USE_PCRE) && ${KJS_USE_PCRE} == yes)
.include "../../devel/pcre/buildlink.mk"
.endif

.include "../../archivers/bzip2/buildlink.mk"
.include "../../audio/libaudiofile/buildlink.mk"
.include "../../devel/libtool/buildlink.mk"
.include "../../graphics/tiff/buildlink.mk"
#.include "../../textproc/jade/buildlink.mk"
.include "../../x11/qt2-libs/buildlink.mk"

BUILDLINK_TARGETS.kdelibs2=	kdelibs2-buildlink
BUILDLINK_TARGETS.kdelibs2+=	kdelibs2-buildlink-config-wrapper
BUILDLINK_TARGETS.kdelibs2+=	kdelibs2-artsc-buildlink-config-wrapper
BUILDLINK_TARGETS+=		${BUILDLINK_TARGETS.kdelibs2}

BUILDLINK_CONFIG.kdelibs2=		${X11PREFIX}/bin/kde-config
BUILDLINK_CONFIG_WRAPPER.kdelibs2=	${BUILDLINK_DIR}/bin/kde-config

BUILDLINK_CONFIG.kdelibs2-artsc=	 ${X11PREFIX}/bin/artsc-config
BUILDLINK_CONFIG_WRAPPER.kdelibs2-artsc= ${BUILDLINK_DIR}/bin/artsc-config

.if defined(USE_CONFIG_WRAPPER) && defined(GNU_CONFIGURE)
ARTSCCONFIG?=		${BUILDLINK_CONFIG_WRAPPER.kdelibs2-artsc}
KDECONFIG?=		${BUILDLINK_CONFIG_WRAPPER.kdelibs2}
CONFIGURE_ENV+=		ARTSCCONFIG="${ARTSCCONFIG}"
CONFIGURE_ENV+=		KDECONFIG="${KDECONFIG}"
.endif

pre-configure: ${BUILDLINK_TARGETS.kdelibs2}
kdelibs2-buildlink: _BUILDLINK_USE
kdelibs2-buildlink-config-wrapper: _BUILDLINK_CONFIG_WRAPPER_USE
kdelibs2-artsc-buildlink-config-wrapper: _BUILDLINK_CONFIG_WRAPPER_USE

.endif	# KDELIBS2_BUILDLINK_MK