pkgsrc/databases/db5/Makefile
bsiegert faf632c573 Fix build of db{4,46,5} on MirBSD.
The build does not create all those unnecessary shlib symlinks on MirBSD
(I believe this is due to a patch I sent in years ago), so add separate
PLIST.MirBSD files that do not contain these files.

(BTW, I would be grateful to learn how I can achieve the same effect
without copying PLISTs, but this works.)
2013-11-30 16:25:12 +00:00

58 lines
1.7 KiB
Makefile

# $NetBSD: Makefile,v 1.13 2013/11/30 16:25:12 bsiegert Exp $
#
# NOTE:
# When updating this package, a change in the minor (5.n -> 5.(n+1))
# usually incurs a shlib name change. Please make sure to update the
# ABI depends in buildlink3.mk and bump PKGREVISIONs for all dependencies.
# In particular, take care to include BDB_ACCEPTED=db5 packages.
DISTNAME= db-5.3.21
PKGNAME= ${DISTNAME:S/db/db5/}
CATEGORIES= databases
MASTER_SITES= http://download.oracle.com/berkeley-db/ \
http://download-uk.oracle.com/berkeley-db/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.oracle.com/database/berkeley-db/db/index.html
COMMENT= Berkeley DB version 5 from Oracle
LICENSE= sleepycat-public
# NOTE: it is NOT a modified BSD in a common sense:
#LICENSE=
PKG_INSTALLATION_TYPES= overwrite pkgviews
USE_LANGUAGES= c c++
USE_LIBTOOL= yes
USE_TOOLS+= pax
GNU_CONFIGURE= yes
CONFIGURE_DIRS= build_unix
CONFIGURE_SCRIPT= ../dist/configure
CONFIGURE_ARGS+= --enable-compat185
CONFIGURE_ARGS+= --enable-cxx
CONFIGURE_ARGS+= --includedir=${PREFIX}/include/db5
CONFIGURE_ARGS+= --program-transform-name=s,db_,db5_,
OPSYSVARS+= LIBSO_LIBS
LIBSO_LIBS.SunOS+= -lnsl -lrt
CONFIGURE_ENV+= LIBSO_LIBS=${LIBSO_LIBS:Q}
CHECK_PORTABILITY_SKIP= test/xa/*/*.sh
# DB5 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.
PTHREAD_OPTS+= native
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "MirBSD"
PLIST_SRC= PLIST.${OPSYS}
.endif
INSTALLATION_DIRS= include/db5 lib share/doc/db5
post-install:
chown -R ${DOCOWN}:${DOCGRP} ${DESTDIR}${PREFIX}/share/doc/db5
.include "../../mk/bsd.pkg.mk"