31 lines
744 B
Makefile
31 lines
744 B
Makefile
# Created by: David Naylor <naylor.b.david@gmail.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= liblzma
|
|
PORTVERSION= 0.5.3
|
|
PORTREVISION= 4
|
|
CATEGORIES= archivers python
|
|
MASTER_SITES= ${MASTER_SITE_CHEESESHOP}
|
|
MASTER_SITE_SUBDIR= source/p/py${PORTNAME}
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
DISTNAME= py${PORTNAME}-${PORTVERSION}
|
|
|
|
MAINTAINER= dbn@FreeBSD.org
|
|
COMMENT= Python binding for the LZMA compression library
|
|
|
|
LICENSE= LGPL3
|
|
|
|
USES= pkgconfig
|
|
USE_BZIP2= yes
|
|
USE_PYTHON= yes
|
|
USE_PYDISTUTILS= yes
|
|
PYDISTUTILS_AUTOPLIST= yes
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's/pc_cflags = .*/pc_cflags = ""/' \
|
|
-e 's/pc_libs = .*/pc_libs = "-llzma"/' ${WRKSRC}/setup.py
|
|
|
|
post-install:
|
|
${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/lzma.so
|
|
|
|
.include <bsd.port.mk>
|