freebsd-ports/archivers/py-liblzma/Makefile
Martin Wilke 304169c110 - Update to 0.5.3
PR:		148110
Submitted by:	David Naylor <naylor.b.david@gmail.com> (maintainer)
Feature safe:	yes
2010-06-27 04:50:29 +00:00

34 lines
921 B
Makefile

# New ports collection makefile for: py-liblzma
# Date created: 09 Dec 2008
# Whom: David Naylor <naylor.b.david@gmail.com>
#
# $FreeBSD$
PORTNAME= liblzma
PORTVERSION= 0.5.3
CATEGORIES= archivers python
MASTER_SITES= ${MASTER_SITE_CHEESESHOP}source/p/pyliblzma/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= ${PYDISTUTILS_PKGNAME}-${PORTVERSION}
MAINTAINER= naylor.b.david@gmail.com
COMMENT= Python binding for the LZMA compression library
BUILD_DEPENDS= pkg-config:${PORTSDIR}/devel/pkg-config
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.0:${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>