blob: a42b78f0d93fbd8b01e3a838f8f156602f07b1a7 (
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
|
# $NetBSD: buildlink2.mk,v 1.6 2002/12/22 10:28:08 grant Exp $
.if !defined(DB_BUILDLINK2_MK)
DB_BUILDLINK2_MK= # defined
BUILDLINK_DEPENDS.db?= db>=2.7.3
BUILDLINK_PKGSRCDIR.db?= ../../databases/db
_NEED_DB2= YES
.if defined(USE_DB185)
. if exists(/usr/include/db.h) # NetBSD, Darwin
BUILDLINK_PREFIX.db= /usr
BUILDLINK_FILES.db= include/db.h
BUILDLINK_FILES.db+= include/mpool.h
BUILDLINK_CPPFLAGS.db= # empty
_NEED_DB2= NO
. elif exists(/usr/include/db1/db.h) # Linux
BUILDLINK_PREFIX.db= /usr
BUILDLINK_FILES.db= include/db1/*
BUILDLINK_CPPFLAGS.db= -I${BUILDLINK_PREFIX.db}/include/db1
BUILDLINK_TRANSFORM+= l:db:db1
_NEED_DB2= NO
. endif
.endif
.if ${_NEED_DB2} == "YES"
BUILDLINK_PACKAGES+= db
EVAL_PREFIX+= BUILDLINK_PREFIX.db=db
BUILDLINK_PREFIX.db_DEFAULT= ${LOCALBASE}
BUILDLINK_FILES.db= include/db2/*
BUILDLINK_FILES.db+= lib/libdb2.*
BUILDLINK_CPPFLAGS.db= -I${BUILDLINK_PREFIX.db}/include/db2
BUILDLINK_TRANSFORM+= l:db:db2
.endif
CPPFLAGS+= ${BUILDLINK_CPPFLAGS.db}
BUILDLINK_TARGETS+= db-buildlink
db-buildlink: _BUILDLINK_USE
.endif # DB_BUILDLINK2_MK
|