pkgsrc/databases/lmdb/Makefile

34 lines
967 B
Makefile

# $NetBSD: Makefile,v 1.3 2015/10/07 10:00:20 fhajny Exp $
VERSION= 0.9.14
DISTNAME= mdb-${VERSION}
PKGNAME= lmdb-${VERSION}
PKGREVISION= 1
CATEGORIES= databases
MASTER_SITES= http://ftp.NetBSD.org/pub/pkgsrc/distfiles/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://symas.com/mdb/
COMMENT= Symas Lightning Memory-Mapped Database
USE_TOOLS+= gmake
INSTALLATION_DIRS+= man/man1
INSTALLATION_DIRS+= lib
INSTALLATION_DIRS+= bin
INSTALLATION_DIRS+= include
LICENSE= modified-bsd
WRKSRC= ${WRKDIR}/mdb-mdb
BUILD_DIRS= libraries/liblmdb
USE_GCC_RUNTIME= yes
SUBST_CLASSES+= makefile
SUBST_STAGE.makefile= pre-configure
SUBST_MESSAGE.makefile= Fixing CFLAGS and PREFIX
SUBST_FILES.makefile= libraries/liblmdb/Makefile
SUBST_SED.makefile= -e 's,/usr/local,${PREFIX},g'
SUBST_SED.makefile+= -e 's,XCFLAGS),XCFLAGS) -D_SEM_SEMUN_UNDEFINED ,g'
SUBST_SED.makefile+= -e 's,gcc,${CC},g'
SUBST_SED.makefile+= -e 's,do cp,do install,g'
.include "../../mk/bsd.pkg.mk"