mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-28 01:06:17 +00:00
4a4ec28d37
Since FreeBSD 8.4 and FreeBSD 9.1 make(1) do support :tu and :tl as a replacement for :U and :L (which has been marked as deprecated) bmake which is the default on FreeBSD 10+ only support by default :tu/:tl a hack has been added at the time to support :U and :L to ease migration. This hack is now not necessary anymore Note that this makes the ports tree incompatible with make(1) from FreeBSD 8.3 or earlier With hat: portmgr
40 lines
1.3 KiB
Makefile
40 lines
1.3 KiB
Makefile
# Created by: Xin Li <delphij@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= lmdb
|
|
PORTVERSION= 0.9.11
|
|
CATEGORIES= databases
|
|
MASTER_SITES= https://gitorious.org/${GO_ACCOUNT}/${GO_PROJECT}/archive/${GO_TAGNAME}.tar.gz?dummy= \
|
|
LOCAL/delphij
|
|
|
|
MAINTAINER= delphij@FreeBSD.org
|
|
COMMENT= OpenLDAP Lightning Memory-Mapped Database
|
|
|
|
# XXX FreeBSD does not implement O_DSYNC and fdatasync at this time.
|
|
CFLAGS+= -DMDB_DSYNC=O_SYNC -Dfdatasync=fsync
|
|
WRKSRC= ${WRKDIR}/mdb-mdb/libraries/liblmdb
|
|
MAKE_ENV+= CC="${CC}"
|
|
MAKE_ENV+= XCFLAGS="${CFLAGS} ${PTHREAD_LIBS}" prefix="${PREFIX}" INSTALL_PROGRAM="${INSTALL_PROGRAM}"
|
|
MAKE_ENV+= INSTALL_LIB="${INSTALL_LIB}" INSTALL_DATA="${INSTALL_DATA}" INSTALL_MAN="${INSTALL_MAN}"
|
|
|
|
USE_LDCONFIG= yes
|
|
|
|
GO_ACCOUNT= mdb
|
|
GO_PROJECT= mdb
|
|
GO_TAGNAME= ${PORTNAME:tu}_${PORTVERSION}
|
|
FETCH_ARGS?= -o ${DISTDIR}/${DISTFILES}
|
|
|
|
do-install:
|
|
${INSTALL_LIB} ${WRKSRC}/liblmdb.a ${STAGEDIR}${PREFIX}/lib/
|
|
${INSTALL_LIB} ${WRKSRC}/liblmdb.so ${STAGEDIR}${PREFIX}/lib/liblmdb.so.0
|
|
${LN} -sf liblmdb.so.0 ${STAGEDIR}${PREFIX}/lib/liblmdb.so
|
|
.for f in mdb_stat mdb_copy
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${f} ${STAGEDIR}${PREFIX}/bin
|
|
.endfor
|
|
${INSTALL_DATA} ${WRKSRC}/lmdb.h ${STAGEDIR}${PREFIX}/include
|
|
.for f in mdb_stat.1 mdb_copy.1
|
|
${INSTALL_MAN} ${WRKSRC}/${f} ${STAGEDIR}${PREFIX}/man/man1
|
|
.endfor
|
|
|
|
.include <bsd.port.mk>
|