mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-04 01:48:54 +00:00
36 lines
847 B
Makefile
36 lines
847 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= 0.4.5
|
|
CATEGORIES= ftp python
|
|
MASTER_SITES= http://pycurl.sourceforge.net/
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
DISTNAME= py${PORTNAME}-${PORTVERSION}
|
|
|
|
MAINTAINER= perky@fallin.lv
|
|
|
|
LIB_DEPENDS= curl.2:${PORTSDIR}/ftp/curl
|
|
|
|
USE_PYTHON= yes
|
|
USE_PYDISTUTILS= yes
|
|
PLIST_SUB+= PYTHON_SITELIBDIR="lib/${PYTHON_VERSION}/site-packages"
|
|
|
|
post-patch:
|
|
.for file in ${REPATCHFILES}
|
|
${PERL} -pi -e 's@"include"@"${LOCALBASE}/include"],library_dirs=["${LOCALBASE}/lib"@' \
|
|
${WRKSRC}/setup.py
|
|
.endfor
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
post-install:
|
|
${MKDIR} ${PREFIX}/share/examples/py-curl
|
|
cd ${WRKSRC} && ${INSTALL_DATA} tests/* ${PREFIX}/share/examples/py-curl
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|