2013-03-21 17:30:30 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.10 2013/03/21 21:30:30 pascal Exp $
|
2011-10-22 14:10:32 -04:00
|
|
|
|
2012-02-16 16:27:37 -05:00
|
|
|
#'atomic_pointer.h: error Please implement AtomicPointer for this platform' on other archs
|
|
|
|
ONLY_FOR_ARCHS= i386 amd64 arm
|
2011-08-19 02:44:00 -04:00
|
|
|
|
|
|
|
COMMENT= fast and lightweight key/value database library
|
|
|
|
|
2012-08-20 20:28:34 -04:00
|
|
|
DISTNAME= leveldb-1.5.0
|
|
|
|
SHARED_LIBS= leveldb 1.0
|
2011-08-19 02:44:00 -04:00
|
|
|
CATEGORIES= databases
|
2013-03-21 17:30:30 -04:00
|
|
|
REVISION= 1
|
2011-08-19 02:44:00 -04:00
|
|
|
|
|
|
|
HOMEPAGE= http://leveldb.googlecode.com/
|
|
|
|
|
|
|
|
# BSD3
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
|
2012-08-21 09:51:12 -04:00
|
|
|
WANTLIB += c m pthread stdc++
|
2011-08-19 02:44:00 -04:00
|
|
|
|
2012-08-21 09:51:12 -04:00
|
|
|
MASTER_SITES= http://leveldb.googlecode.com/files/
|
2011-08-19 02:44:00 -04:00
|
|
|
|
|
|
|
USE_GMAKE= Yes
|
2012-08-21 09:51:12 -04:00
|
|
|
MAKE_ENV+= CXX=${CXX} OPT="${CXXFLAGS}" \
|
2012-08-20 20:28:34 -04:00
|
|
|
SHARED_MAJOR=${LIBleveldb_VERSION:R} \
|
|
|
|
SHARED_MINOR=${LIBleveldb_VERSION:E}
|
2011-08-19 02:44:00 -04:00
|
|
|
|
2013-03-10 22:52:04 -04:00
|
|
|
TEST_TARGET= check
|
2011-08-19 02:44:00 -04:00
|
|
|
|
|
|
|
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}
|
2012-03-18 08:56:56 -04:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/include/leveldb/
|
|
|
|
cd ${WRKSRC}/include/ && tar cf - . | tar xf - -C ${PREFIX}/include/
|
2011-08-19 02:44:00 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|