1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-17 03:25:46 +00:00
freebsd-ports/print/py-cups/Makefile
Sunpoet Po-Chuan Hsieh b921a795b2 - Update to 1.9.53
Changes:
- cupsmodule.h: Declare new function get_TLS and its data structure.
- cupsmodule.c: Implement it.
- cupsmodule.c, cupsconnection.c: Use thread-local storage for CUPS password
  callback (bug #662805).
2010-12-26 17:27:25 +00:00

38 lines
1.0 KiB
Makefile

# New ports collection makefile for: py-cups
# Date created: 2008-03-20
# Whom: Michael Johnson <ahze@FreeBSD.org>
#
# $FreeBSD$
# $MCom: ports/print/py-cups/Makefile,v 1.3 2009/12/29 16:01:46 ahze Exp $
PORTNAME= cups
PORTVERSION= 1.9.53
CATEGORIES= print python
MASTER_SITES= http://cyberelk.net/tim/data/pycups/ \
LOCAL/sunpoet
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= py${PORTNAME}-${PORTVERSION}
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= CUPS bindings for Python
LIB_DEPENDS= cups.2:${PORTSDIR}/print/cups-client
CFLAGS+= -I${LOCALBASE}/include -DVERSION=\\\"${PORTVERSION}\\\"
LDFLAGS+= -L${LOCALBASE}/lib -liconv
MAKE_ENV= LDFLAGS="${LDFLAGS}"
USE_BZIP2= yes
USE_ICONV= yes
USE_PYDISTUTILS= yes
USE_PYTHON= yes
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>