1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-23 09:10:43 +00:00
freebsd-ports/databases/lmdb/Makefile
Mathieu Arnold 7427bdad4f Add soname and cleanup
Using soname allows pkg(8) to register the library, and it helps on
upgrades.
Use WRKSRC_SUBDIR
Use MAKE_ARGS instead of MAKE_ENV so the patch can be simplified.

PR:		211700
Submitted by:	mat
Approved by:	delphij (maintainer)
Sponsored by:	Absolight
2016-08-09 21:28:45 +00:00

34 lines
910 B
Makefile

# Created by: Xin Li <delphij@FreeBSD.org>
# $FreeBSD$
PORTNAME= lmdb
PORTVERSION= 0.9.18
PORTREVISION= 1
DISTVERSIONPREFIX= ${PORTNAME:tu}_
CATEGORIES= databases
MAINTAINER= delphij@FreeBSD.org
COMMENT= OpenLDAP Lightning Memory-Mapped Database
LICENSE= OPENLDAP
LICENSE_NAME= OpenLDAP Public License
LICENSE_FILE= ${WRKSRC}/LICENSE
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
# XXX FreeBSD does not implement O_DSYNC and fdatasync at this time.
CFLAGS+= -DMDB_DSYNC=O_SYNC -Dfdatasync=fsync
WRKSRC_SUBDIR= libraries/liblmdb
MAKE_ARGS+= CC="${CC}"
MAKE_ARGS+= prefix="${PREFIX}" INSTALL_PROGRAM="${INSTALL_PROGRAM}"
MAKE_ARGS+= INSTALL_LIB="${INSTALL_LIB}" INSTALL_DATA="${INSTALL_DATA}" INSTALL_MAN="${INSTALL_MAN}"
USE_LDCONFIG= yes
USE_GITHUB= yes
GH_ACCOUNT= ${PORTNAME:tu}
post-install:
${LN} -sf liblmdb.so.0 ${STAGEDIR}${PREFIX}/lib/liblmdb.so
.include <bsd.port.mk>