Update print/abcm2ps to version 8.12.3
[dports.git] / print / py-pycups / Makefile
1 # Created by: Michael Johnson <ahze@FreeBSD.org>
2 # $FreeBSD$
3
4 PORTNAME=       pycups
5 PORTVERSION=    1.9.73
6 PORTREVISION=   1
7 CATEGORIES=     print python
8 MASTER_SITES=   CHEESESHOP
9 PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}
10
11 MAINTAINER=     sunpoet@FreeBSD.org
12 COMMENT=        CUPS bindings for Python
13
14 LICENSE=        GPLv2 GPLv3
15 LICENSE_COMB=   dual
16
17 LIB_DEPENDS=    libcups.so:print/cups
18
19 USE_PYTHON=     autoplist concurrent distutils
20 USES=           iconv localbase python tar:bzip2
21
22 .include <bsd.port.pre.mk>
23
24 post-patch:
25         @${REINPLACE_CMD} -e 's|^\(VERSION=\).*$$|\1${PORTVERSION}|' ${WRKSRC}/Makefile
26 .if empty(ICONV_LIB)
27         @${REINPLACE_CMD} -e 's| or sys.platform.startswith("freebsd"):|:|' ${WRKSRC}/setup.py
28 .endif
29
30 pre-configure:
31         @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' ${WRKSRC}/cupsconnection.c
32         @${REINPLACE_CMD} -e 's|#ifdef __SVR4|#ifdef __FreeBSD__|' ${WRKSRC}/cupsppd.c
33
34 post-install:
35         ${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/cups.so
36
37 .include <bsd.port.post.mk>