1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-18 03:46:03 +00:00
freebsd-ports/ftp/py-curl/Makefile
Pav Lucistnik 8ae2d04c9e - Update to 7.16.1
PR:		ports/109905
Submitted by:	Li-Wen Hsu <lwhsu@lwhsu.org>
Approved by:	maintainer timeout (perky; 20 days)
2007-03-25 17:05:13 +00:00

42 lines
1015 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.16.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= ${TARGETDIR}/share/doc/py-curl
EXAMPLESDIR= ${TARGETDIR}/share/examples/py-curl
post-patch:
${REINPLACE_CMD} \
-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
pre-install:
.if defined(NOPORTDOCS)
${RM} -fr ${WRKSRC}/doc
.endif
.include <bsd.port.mk>