freebsd-ports/databases/py-leveldb/Makefile
Vanilla I. Shu 28775aff66 Upgrade snappy to 1.1.1, and bump all related PORTREVISION to chase shared library version.
PR:		ports/190409
Submitted by:	ports at robakdesign.com
Approved by:	portmgr@ (for NO_STAGE)
2014-06-03 14:34:06 +00:00

30 lines
742 B
Makefile

# Created by: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
# $FreeBSD$
PORTNAME= leveldb
PORTVERSION= 0.1.20130428
PORTREVISION= 2
CATEGORIES= databases python
MASTER_SITES= LOCAL/sunpoet
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= py-${PORTNAME}-${PORTVERSION}
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Thread-safe Python binding for LevelDB
LICENSE= BSD3CLAUSE
LIB_DEPENDS= libleveldb.so:${PORTSDIR}/databases/leveldb
PYDISTUTILS_AUTOPLIST= yes
USE_PYDISTUTILS=yes
USE_PYTHON= yes
USES= tar:xz
post-patch:
@${REINPLACE_CMD} \
-e "s|^\(extra_compile_args = \).*$$|\1\['-I${LOCALBASE}/include'\]|" \
-e "s|^\(extra_link_args = \).*$$|\1\['-L${LOCALBASE}/lib', '-lleveldb'\]|" \
${WRKSRC}/${PYSETUP}
.include <bsd.port.mk>