mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-28 10:08:24 +00:00
64e068d25c
Bump PORTREVISION of all dependent ports. Fix the build errors in the few ports that still use the long deprecated, and now obsoleted, cURL options. Thanks to everyone who took the time to look over the patch! Discussed on: -ports
38 lines
1003 B
Makefile
38 lines
1003 B
Makefile
# New ports collection makefile for: py-curl
|
|
# Date created: 2 July 2001
|
|
# Whom: Hye-Shik Chang <perky@python.or.kr>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= curl
|
|
PORTVERSION= 7.15.2
|
|
PORTREVISION= 1
|
|
CATEGORIES= ftp python
|
|
MASTER_SITES= http://pycurl.sourceforge.net/download/ \
|
|
http://pycurl.sourceforge.net/download/00-OLD-VERSIONS/
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
DISTNAME= py${PORTNAME}-${PORTVERSION}
|
|
|
|
MAINTAINER= perky@FreeBSD.org
|
|
COMMENT= Python interface to libcurl
|
|
|
|
LIB_DEPENDS= curl.4:${PORTSDIR}/ftp/curl
|
|
|
|
USE_PYTHON= yes
|
|
USE_PYDISTUTILS= yes
|
|
USE_OPENSSL= yes
|
|
|
|
DOCSDIR= ${PREFIX}/share/doc/py-curl
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/py-curl
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -e 's@\(curl-config --\)@${LOCALBASE}/bin/\1@g' \
|
|
-e 's@^\(include_dirs = \).*@\1["${LOCALBASE}/include"]@' \
|
|
-e 's@^\(PACKAGE = \).*@\1"py-curl"@' \
|
|
-e 's@\(os.path.join(\)datadir, "examples")@\1"share/examples/py-curl")@' \
|
|
-e 's@name=PACKAGE@name="pycurl"@' \
|
|
${WRKSRC}/setup.py
|
|
|
|
.include <bsd.port.mk>
|