developer is officially maintaining the package. The rationale for changing this from "tech-pkg" to "pkgsrc-users" is that it implies that any user can try to maintain the package (by submitting patches to the mailing list). Since the folks most likely to care about the package are the folks that want to use it or are already using it, this would leverage the energy of users who aren't developers.
63 lines
1.9 KiB
Makefile
63 lines
1.9 KiB
Makefile
# $NetBSD: Makefile,v 1.45 2006/03/04 21:29:08 jlam Exp $
|
|
|
|
DISTNAME= db-4.4.20
|
|
PKGNAME= ${DISTNAME:S/db/db4/}
|
|
CATEGORIES= databases
|
|
MASTER_SITES= http://downloads.sleepycat.com/ \
|
|
ftp://ftp.sleepycat.com/releases/
|
|
|
|
PATCHFILES= patch.4.4.20.1 patch.4.4.20.2
|
|
PATCH_SITES= http://www.sleepycat.com/update/4.4.20/
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://www.sleepycat.com/
|
|
COMMENT= Berkeley DB version 4 from Sleepycat Software
|
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
|
|
|
DIST_SUBDIR= ${PKGNAME_NOREV}
|
|
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-compat185
|
|
CONFIGURE_ARGS+= --includedir=${PREFIX}/include/db4
|
|
CONFIGURE_ARGS+= --program-transform-name=s,db_,db4_,
|
|
|
|
# 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:Q}
|
|
|
|
# Along with a hack in patch-ab, this forces shlib detection via
|
|
# the pkgsrc-supplied libtool only.
|
|
CONFIGURE_ENV+= LIBTOOL_PROG="${LIBTOOL} ${LIBTOOL_FLAGS}"
|
|
|
|
OPSYSVARS+= LIBSO_LIBS
|
|
LIBSO_LIBS.Interix+= -lrpclib
|
|
LIBS.Interix+= -lrpclib # needed for in-tree programs, too
|
|
LIBSO_LIBS.SunOS+= -lnsl -lrt
|
|
CONFIGURE_ENV+= LIBSO_LIBS=${LIBSO_LIBS:Q}
|
|
|
|
# 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)
|
|
CONFIGURE_ENV+= ac_cv_lib_pthread_main=no
|
|
.else
|
|
PTHREAD_OPTS+= native
|
|
. include "../../mk/pthread.buildlink3.mk"
|
|
.endif
|
|
|
|
post-install:
|
|
${CHOWN} -R ${DOCOWN}:${DOCGRP} ${PREFIX}/share/doc/db4
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|