27f191cabf
- Change MASTER_SITES to CHEESESHOP - Pet portlint: remove ABI version number from LIB_DEPENDS - Update WWW Note that tarball on CHEESESHOP differs from that on author's page [1] but the contents are identical. [1] http://cyberelk.net/tim/data/pycups/ Changes: http://git.fedorahosted.org/cgit/pycups.git/tree/ChangeLog http://git.fedorahosted.org/cgit/pycups.git/tree/NEWS
36 lines
906 B
Makefile
36 lines
906 B
Makefile
# New ports collection makefile for: py-cups
|
|
# Date created: 2008-03-20
|
|
# Whom: Michael Johnson <ahze@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= cups
|
|
PORTVERSION= 1.9.62
|
|
CATEGORIES= print python
|
|
MASTER_SITES= CHEESESHOP
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
DISTNAME= py${PORTNAME}-${PORTVERSION}
|
|
|
|
MAINTAINER= sunpoet@FreeBSD.org
|
|
COMMENT= CUPS bindings for Python
|
|
|
|
LIB_DEPENDS= cups:${PORTSDIR}/print/cups-client
|
|
|
|
CFLAGS+= -I${LOCALBASE}/include -DVERSION=\\\"${PORTVERSION}\\\"
|
|
LDFLAGS+= -L${LOCALBASE}/lib -liconv
|
|
USE_BZIP2= yes
|
|
USE_ICONV= yes
|
|
USE_PYDISTUTILS= yes
|
|
USE_PYTHON= -2.7
|
|
|
|
PLIST_FILES= %%PYTHON_SITELIBDIR%%/cups.so
|
|
PYDISTUTILS_EGGINFO=py${PORTNAME}-${PORTVERSION}-py${PYTHON_VER}.egg-info
|
|
|
|
pre-configure:
|
|
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \
|
|
${WRKSRC}/cupsconnection.c
|
|
@${REINPLACE_CMD} -e 's|#ifdef __SVR4|#ifdef __FreeBSD__|' ${WRKSRC}/cupsppd.c
|
|
|
|
.include <bsd.port.mk>
|