diff options
Diffstat (limited to 'print/py-cups/Makefile')
-rw-r--r-- | print/py-cups/Makefile | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/print/py-cups/Makefile b/print/py-cups/Makefile new file mode 100644 index 000000000..017d90fbb --- /dev/null +++ b/print/py-cups/Makefile @@ -0,0 +1,34 @@ +# New ports collection makefile for: py-cups +# Date created: 2008-03-20 +# Whom: Michael Johnson <ahze@FreeBSD.org> +# +# $FreeBSD$ +# $MCom$ + +PORTNAME= cups +PORTVERSION= 1.9.47 +CATEGORIES= print python +MASTER_SITES= http://cyberelk.net/tim/data/pycups/ +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= py${PORTNAME}-${PORTVERSION} + +MAINTAINER= ahze@FreeBSD.org +COMMENT= CUPS bindings for Python + +LIB_DEPENDS= cups.2:${PORTSDIR}/print/cups-client + +USE_PYTHON= yes +USE_ICONV= yes +USE_BZIP2= yes +USE_PYDISTUTILS= yes +CFLAGS+= -I${LOCALBASE}/include -DVERSION=\\\"${PORTVERSION}\\\" +LDFLAGS+= -L${LOCALBASE}/lib -liconv +MAKE_ENV= LDFLAGS="${LDFLAGS}" +PYDISTUTILS_EGGINFO=${PORTNAME}-1.0-py${PYTHON_VER}.egg-info +PLIST_FILES= %%PYTHON_SITELIBDIR%%/cups.so + +pre-configure: + ${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \ + ${WRKSRC}/cupsconnection.c + +.include <bsd.port.mk> |