freebsd-ports/print/py-pycups/Makefile
Sunpoet Po-Chuan Hsieh 90dcc9ae9e - Move print/py-cups to print/py-pycups
- Bump PORTREVISION for dependent ports
2015-12-11 10:02:18 +00:00

36 lines
946 B
Makefile

# Created by: Michael Johnson <ahze@FreeBSD.org>
# $FreeBSD$
PORTNAME= pycups
PORTVERSION= 1.9.73
CATEGORIES= print python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= CUPS bindings for Python
LICENSE= GPLv2 GPLv3
LICENSE_COMB= dual
LIB_DEPENDS= libcups.so:${PORTSDIR}/print/cups-client
USE_PYTHON= autoplist concurrent distutils
USES= iconv localbase python tar:bzip2
.include <bsd.port.pre.mk>
post-patch:
@${REINPLACE_CMD} -e 's|^\(VERSION=\).*$$|\1${PORTVERSION}|' ${WRKSRC}/Makefile
.if empty(ICONV_LIB)
@${REINPLACE_CMD} -e 's| or sys.platform.startswith("freebsd"):|:|' ${WRKSRC}/setup.py
.endif
pre-configure:
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' ${WRKSRC}/cupsconnection.c
@${REINPLACE_CMD} -e 's|#ifdef __SVR4|#ifdef __FreeBSD__|' ${WRKSRC}/cupsppd.c
post-install:
${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/cups.so
.include <bsd.port.post.mk>