ec373bbc2f
Notified by: koobs, wg
28 lines
716 B
Makefile
28 lines
716 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
|
|
|
|
USE_PYTHON= autoplist distutils
|
|
USES= python 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}/setup.py
|
|
|
|
.include <bsd.port.mk>
|