freebsd-ports/archivers/py-liblzma/Makefile
2013-04-23 14:20:25 +00:00

32 lines
838 B
Makefile

# Created by: David Naylor <naylor.b.david@gmail.com>
# $FreeBSD$
PORTNAME= liblzma
PORTVERSION= 0.5.3
PORTREVISION= 2
CATEGORIES= archivers python
MASTER_SITES= ${MASTER_SITE_CHEESESHOP}
MASTER_SITE_SUBDIR= source/p/py${PORTNAME}
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= ${PYDISTUTILS_PKGNAME}-${PORTVERSION}
MAINTAINER= dbn@FreeBSD.org
COMMENT= Python binding for the LZMA compression library
USES= pkgconfig
USE_BZIP2= yes
USE_PYTHON= 2.6+
USE_PYDISTUTILS=yes
PYDISTUTILS_PKGNAME= py${PORTNAME}
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 800505 || (${OSVERSION} >= 900000 && ${OSVERSION} < 900012)
LIB_DEPENDS+= lzma.5:${PORTSDIR}/archivers/xz
.else
post-patch:
@${REINPLACE_CMD} -e 's/pc_cflags = .*/pc_cflags = ""/' \
-e 's/pc_libs = .*/pc_libs = "-llzma"/' ${WRKSRC}/setup.py
.endif
.include <bsd.port.post.mk>