aboutsummaryrefslogtreecommitdiffstats
path: root/archivers/py-liblzma/Makefile
blob: 0dd30918e58a5218e60f77254a4ef14ff174f195 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# 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 python tar:bzip2
USE_PYTHON= distutils autoplist

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>