blob: a81e9ea93b0920ea5ef1fdf6a0d960643897471c (
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: Makefile,v 1.29 2004/11/17 18:47:19 jlam Exp $
DISTNAME= db-4.2.52
PKGNAME= ${DISTNAME:S/db/db4/}
PKGREVISION= 7
CATEGORIES= databases
MASTER_SITES= http://www.sleepycat.com/update/snapshot/
PATCHFILES= patch.4.2.52.1 patch.4.2.52.2
PATCH_SITES= http://www.sleepycat.com/update/4.2.52/
MAINTAINER= tech-pkg@NetBSD.org
HOMEPAGE= http://www.sleepycat.com/
COMMENT= Berkeley DB version 4 from Sleepycat Software
PKG_INSTALLATION_TYPES= overwrite pkgviews
USE_BUILDLINK3= yes
USE_LANGUAGES= c c++
USE_LIBTOOL= yes
GNU_CONFIGURE= yes
CONFIGURE_DIRS= ${WRKSRC}/build_unix
BUILD_DIRS= ${CONFIGURE_DIRS}
CONFIGURE_SCRIPT= ../dist/configure
CONFIGURE_ARGS+= --enable-cxx
CONFIGURE_ARGS+= --enable-rpc
CONFIGURE_ARGS+= --enable-shared
CONFIGURE_ARGS+= --enable-compat185
CONFIGURE_ARGS+= --includedir=${PREFIX}/include/db4
CONFIGURE_ARGS+= --program-transform-name=s,db_,db4_,
.include "../../mk/bsd.prefs.mk"
# NetBSD-sparc64-1.6*'s f77 makes configure failing and as f77 is not
# needed for this package the following does no harm on other platform.
CONFIGURE_ENV+= F77=${FALSE}
.if defined(WITH_JAVA) && (${WITH_JAVA} == "yes")
CONFIGURE_ARGS+= --enable-java
. include "../../mk/java-vm.mk"
.endif
OPSYSVARS+= LIBSO_LIBS
LIBSO_LIBS.SunOS+= -lnsl
CONFIGURE_ENV+= LIBSO_LIBS="${LIBSO_LIBS}"
# DB4 only want pthreads because it's really after POSIX 1003.1
# inter-process mutexes. In this case, we only care to use the native
# threads. We also only care if we're using a non-GCC compiler since
# we have code to use GCC assembly for mutexes instead of 1003.1
# mutexes.
#
.include "../../mk/compiler.mk"
.if empty(PKGSRC_COMPILER:Mgcc)
PTHREAD_OPTS+= native
. include "../../mk/pthread.buildlink3.mk"
.endif
post-install:
${CHOWN} -R ${DOCOWN}:${DOCGRP} ${PREFIX}/share/doc/html/db4
.include "../../mk/bsd.pkg.mk"
|