2008-03-23 12:19:06 -04:00
|
|
|
# New ports collection makefile for: py-cups
|
|
|
|
# Date created: 2008-03-20
|
|
|
|
# Whom: Michael Johnson <ahze@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
2011-02-25 01:38:38 -05:00
|
|
|
#
|
2008-03-23 12:19:06 -04:00
|
|
|
|
|
|
|
PORTNAME= cups
|
2012-08-05 03:08:11 -04:00
|
|
|
PORTVERSION= 1.9.62
|
2008-12-28 05:54:08 -05:00
|
|
|
CATEGORIES= print python
|
2012-08-05 03:08:11 -04:00
|
|
|
MASTER_SITES= CHEESESHOP
|
2008-03-23 12:19:06 -04:00
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
DISTNAME= py${PORTNAME}-${PORTVERSION}
|
|
|
|
|
2010-09-22 13:10:26 -04:00
|
|
|
MAINTAINER= sunpoet@FreeBSD.org
|
2008-03-23 12:19:06 -04:00
|
|
|
COMMENT= CUPS bindings for Python
|
|
|
|
|
2012-08-05 03:08:11 -04:00
|
|
|
LIB_DEPENDS= cups:${PORTSDIR}/print/cups-client
|
2008-03-23 12:19:06 -04:00
|
|
|
|
|
|
|
CFLAGS+= -I${LOCALBASE}/include -DVERSION=\\\"${PORTVERSION}\\\"
|
2008-04-05 10:13:27 -04:00
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib -liconv
|
2010-07-28 09:43:32 -04:00
|
|
|
USE_BZIP2= yes
|
|
|
|
USE_ICONV= yes
|
|
|
|
USE_PYDISTUTILS= yes
|
2011-03-24 09:39:34 -04:00
|
|
|
USE_PYTHON= -2.7
|
2010-07-28 09:43:32 -04:00
|
|
|
|
2008-03-23 12:19:06 -04:00
|
|
|
PLIST_FILES= %%PYTHON_SITELIBDIR%%/cups.so
|
2010-07-28 09:43:32 -04:00
|
|
|
PYDISTUTILS_EGGINFO=py${PORTNAME}-${PORTVERSION}-py${PYTHON_VER}.egg-info
|
2008-03-23 12:19:06 -04:00
|
|
|
|
2009-06-20 15:42:12 -04:00
|
|
|
pre-configure:
|
2010-07-28 09:43:32 -04:00
|
|
|
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \
|
2009-06-20 15:42:12 -04:00
|
|
|
${WRKSRC}/cupsconnection.c
|
2010-07-28 09:43:32 -04:00
|
|
|
@${REINPLACE_CMD} -e 's|#ifdef __SVR4|#ifdef __FreeBSD__|' ${WRKSRC}/cupsppd.c
|
2009-06-20 15:42:12 -04:00
|
|
|
|
2008-03-23 12:19:06 -04:00
|
|
|
.include <bsd.port.mk>
|