openbsd-ports/databases/leveldb/Makefile
pascal e154215ad3 * Do not use SONAME, ok brad@ benoit@
* Fold PFRAG.shared into PLIST, ok benoit@
2013-03-21 21:30:30 +00:00

40 lines
1005 B
Makefile

# $OpenBSD: Makefile,v 1.10 2013/03/21 21:30:30 pascal Exp $
#'atomic_pointer.h: error Please implement AtomicPointer for this platform' on other archs
ONLY_FOR_ARCHS= i386 amd64 arm
COMMENT= fast and lightweight key/value database library
DISTNAME= leveldb-1.5.0
SHARED_LIBS= leveldb 1.0
CATEGORIES= databases
REVISION= 1
HOMEPAGE= http://leveldb.googlecode.com/
# BSD3
PERMIT_PACKAGE_CDROM= Yes
WANTLIB += c m pthread stdc++
MASTER_SITES= http://leveldb.googlecode.com/files/
USE_GMAKE= Yes
MAKE_ENV+= CXX=${CXX} OPT="${CXXFLAGS}" \
SHARED_MAJOR=${LIBleveldb_VERSION:R} \
SHARED_MINOR=${LIBleveldb_VERSION:E}
TEST_TARGET= check
DOC= ${PREFIX}/share/doc/leveldb/
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/libleveldb.{a,so.${LIBleveldb_VERSION}} \
${PREFIX}/lib/
${INSTALL_DATA_DIR} ${DOC}
cd ${WRKSRC}/doc/ && tar cf - . | tar xf - -C ${DOC}
${INSTALL_DATA_DIR} ${PREFIX}/include/leveldb/
cd ${WRKSRC}/include/ && tar cf - . | tar xf - -C ${PREFIX}/include/
.include <bsd.port.mk>