1 # $NetBSD: Makefile,v 1.60 2011/08/30 17:35:41 tron Exp $
4 # When updating this package, a change in the minor (4.n -> 4.(n+1))
5 # usually incurs a shlib name change. Please make sure to update the
6 # ABI depends in buildlink3.mk and bump PKGREVISIONs for all dependencies.
7 # In particular, take care to include BDB_ACCEPTED=db4 packages.
10 PKGNAME= ${DISTNAME:S/db/db4/}
12 MASTER_SITES= http://download.oracle.com/berkeley-db/ \
13 http://download-uk.oracle.com/berkeley-db/
15 #PATCHFILES= patch.4.8.30.1
16 #PATCH_SITES= http://www.oracle.com/technology/products/berkeley-db/db/update/4.8.30/
18 MAINTAINER= pkgsrc-users@NetBSD.org
19 HOMEPAGE= http://www.oracle.com/database/berkeley-db/db/index.html
20 COMMENT= Berkeley DB version 4 from Oracle
22 PKG_INSTALLATION_TYPES= overwrite pkgviews
23 PKG_DESTDIR_SUPPORT= user-destdir
29 CONFIGURE_DIRS= build_unix
30 CONFIGURE_SCRIPT= ../dist/configure
31 CONFIGURE_ARGS+= --enable-compat185
32 CONFIGURE_ARGS+= --enable-cxx
33 CONFIGURE_ARGS+= --includedir=${PREFIX}/include/db4
34 CONFIGURE_ARGS+= --program-transform-name=s,db_,db4_,
36 OPSYSVARS+= LIBSO_LIBS
37 LIBSO_LIBS.SunOS+= -lnsl -lrt
38 CONFIGURE_ENV+= LIBSO_LIBS=${LIBSO_LIBS:Q}
40 # DB4 only want pthreads because it's really after POSIX 1003.1
41 # inter-process mutexes. In this case, we only care to use the native
44 .include "../../mk/pthread.buildlink3.mk"
46 INSTALLATION_DIRS= include/db4 lib share/doc/db4
49 chown -R ${DOCOWN}:${DOCGRP} ${DESTDIR}${PREFIX}/share/doc/db4
51 .include "../../mk/bsd.pkg.mk"