2013-03-23 10:20:25 +01:00
|
|
|
# Created by: Michael Johnson <ahze@FreeBSD.org>
|
2008-03-23 17:19:06 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= cups
|
2013-03-23 10:20:25 +01:00
|
|
|
PORTVERSION= 1.9.63
|
2008-12-28 11:54:08 +01:00
|
|
|
CATEGORIES= print python
|
2012-08-05 09:08:11 +02:00
|
|
|
MASTER_SITES= CHEESESHOP
|
2008-03-23 17:19:06 +01:00
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
DISTNAME= py${PORTNAME}-${PORTVERSION}
|
|
|
|
|
2010-09-22 19:10:26 +02:00
|
|
|
MAINTAINER= sunpoet@FreeBSD.org
|
2008-03-23 17:19:06 +01:00
|
|
|
COMMENT= CUPS bindings for Python
|
|
|
|
|
2012-08-05 09:08:11 +02:00
|
|
|
LIB_DEPENDS= cups:${PORTSDIR}/print/cups-client
|
2008-03-23 17:19:06 +01:00
|
|
|
|
2013-03-23 10:20:25 +01:00
|
|
|
CFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2010-07-28 15:43:32 +02:00
|
|
|
USE_BZIP2= yes
|
2013-04-27 20:25:24 +02:00
|
|
|
USES= iconv
|
2013-09-07 19:53:23 +02:00
|
|
|
USE_PYDISTUTILS=yes
|
2011-03-24 14:39:34 +01:00
|
|
|
USE_PYTHON= -2.7
|
2010-07-28 15:43:32 +02:00
|
|
|
|
2008-03-23 17:19:06 +01:00
|
|
|
PLIST_FILES= %%PYTHON_SITELIBDIR%%/cups.so
|
2013-03-23 10:20:25 +01:00
|
|
|
PYDISTUTILS_EGGINFO= py${PORTNAME}-${PORTVERSION}-py${PYTHON_VER}.egg-info
|
|
|
|
|
2013-09-21 00:43:59 +02:00
|
|
|
NO_STAGE= yes
|
2013-09-04 20:06:07 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2013-03-23 10:20:25 +01:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|^\(VERSION=\).*$$|\1${PORTVERSION}|' ${WRKSRC}/Makefile
|
2013-09-04 20:06:07 +02:00
|
|
|
.if empty(ICONV_LIB)
|
|
|
|
@${REINPLACE_CMD} -e 's| or sys.platform.startswith("freebsd"):|:|' ${WRKSRC}/setup.py
|
|
|
|
.endif
|
2008-03-23 17:19:06 +01:00
|
|
|
|
2009-06-20 21:42:12 +02:00
|
|
|
pre-configure:
|
2013-03-23 10:20:25 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' ${WRKSRC}/cupsconnection.c
|
2010-07-28 15:43:32 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|#ifdef __SVR4|#ifdef __FreeBSD__|' ${WRKSRC}/cupsppd.c
|
2009-06-20 21:42:12 +02:00
|
|
|
|
2013-09-04 20:06:07 +02:00
|
|
|
.include <bsd.port.post.mk>
|