Lines 6-34
Link Here
|
6 |
# $MCom: ports/print/py-cups/Makefile,v 1.3 2009/12/29 16:01:46 ahze Exp $ |
6 |
# $MCom: ports/print/py-cups/Makefile,v 1.3 2009/12/29 16:01:46 ahze Exp $ |
7 |
|
7 |
|
8 |
PORTNAME= cups |
8 |
PORTNAME= cups |
9 |
PORTVERSION= 1.9.47 |
9 |
PORTVERSION= 1.9.51 |
10 |
CATEGORIES= print python |
10 |
CATEGORIES= print python |
11 |
MASTER_SITES= http://cyberelk.net/tim/data/pycups/ |
11 |
MASTER_SITES= http://cyberelk.net/tim/data/pycups/ \ |
|
|
12 |
http://sunpoet.net/distfiles/ |
12 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
13 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
13 |
DISTNAME= py${PORTNAME}-${PORTVERSION} |
14 |
DISTNAME= py${PORTNAME}-${PORTVERSION} |
14 |
|
15 |
|
15 |
MAINTAINER= ports@FreeBSD.org |
16 |
MAINTAINER= sunpoet@sunpoet.net |
16 |
COMMENT= CUPS bindings for Python |
17 |
COMMENT= CUPS bindings for Python |
17 |
|
18 |
|
18 |
LIB_DEPENDS= cups.2:${PORTSDIR}/print/cups-client |
19 |
LIB_DEPENDS= cups.2:${PORTSDIR}/print/cups-client |
19 |
|
20 |
|
20 |
USE_PYTHON= yes |
|
|
21 |
USE_ICONV= yes |
22 |
USE_BZIP2= yes |
23 |
USE_PYDISTUTILS= yes |
24 |
CFLAGS+= -I${LOCALBASE}/include -DVERSION=\\\"${PORTVERSION}\\\" |
21 |
CFLAGS+= -I${LOCALBASE}/include -DVERSION=\\\"${PORTVERSION}\\\" |
25 |
LDFLAGS+= -L${LOCALBASE}/lib -liconv |
22 |
LDFLAGS+= -L${LOCALBASE}/lib -liconv |
26 |
MAKE_ENV= LDFLAGS="${LDFLAGS}" |
23 |
MAKE_ENV= LDFLAGS="${LDFLAGS}" |
27 |
PYDISTUTILS_EGGINFO=${PORTNAME}-1.0-py${PYTHON_VER}.egg-info |
24 |
USE_BZIP2= yes |
|
|
25 |
USE_ICONV= yes |
26 |
USE_PYDISTUTILS= yes |
27 |
USE_PYTHON= yes |
28 |
|
28 |
PLIST_FILES= %%PYTHON_SITELIBDIR%%/cups.so |
29 |
PLIST_FILES= %%PYTHON_SITELIBDIR%%/cups.so |
|
|
30 |
PYDISTUTILS_EGGINFO=py${PORTNAME}-${PORTVERSION}-py${PYTHON_VER}.egg-info |
29 |
|
31 |
|
30 |
pre-configure: |
32 |
pre-configure: |
31 |
${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \ |
33 |
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \ |
32 |
${WRKSRC}/cupsconnection.c |
34 |
${WRKSRC}/cupsconnection.c |
|
|
35 |
@${REINPLACE_CMD} -e 's|#ifdef __SVR4|#ifdef __FreeBSD__|' ${WRKSRC}/cupsppd.c |
33 |
|
36 |
|
34 |
.include <bsd.port.mk> |
37 |
.include <bsd.port.mk> |