freebsd-ports/devel/py-coro/Makefile
Kelly Yancey e4a2301f9b Update py-coro to latest version (2001.02.02).
PR:		28105
Submitted by:	Hye-Shik Chang <perky@python.or.kr>
2001-07-05 05:49:07 +00:00

61 lines
1.6 KiB
Makefile

# Ports collection Makefile for: py-coro
# Date created: 06/22/2000
# Whom: kbyanc@posi.net
#
# $FreeBSD$
#
PORTNAME= coro
PORTVERSION= 2001.02.02
CATEGORIES= devel python
MASTER_SITES= http://www.dotfunk.com/projects/coro/
PKGNAMEPREFIX= py-
DISTNAME= ${PORTNAME}_${PORTVERSION:S/./_/g}
MAINTAINER= kbyanc@posi.net
BUILD_DEPENDS= ${LOCALBASE}/lib/libcoro.a:${PORTSDIR}/devel/libcoro
USE_PYTHON= yes
PLIST_SUB+= PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR:S/^${LOCALBASE}\///g}
MAKE_ENV= PYTHON_VERSION=${PYTHON_VERSION:S/python//} \
EXTRA_INCLUDE="-I${LOCALBASE}/include" \
EXTRA_LIB="-L${LOCALBASE}/lib"
CONFIGURE_ARGS= installdir="${PREFIX}" \
PYTHON="${PYTHON_CMD}" \
prefix="${PREFIX}"
COROMOD_MAKE= cd ${WRKSRC}/coromodule && ${MAKE_ENV} ${MAKE}
CORO_PACKAGE= __init__ coro corodns coro_fd coro_subproc corodevice \
dnsclass dnslib dnsopcode dnstype fifo
CORO_EXAMPLES= backdoor coro_fd coro_subproc coro_ehttpd \
corohttpd
do-configure:
@${COROMOD_MAKE} -f Makefile.pre.in boot ${CONFIGURE_ARGS}
do-build:
@${COROMOD_MAKE}
@${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}
@${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}
do-install:
@${COROMOD_MAKE} install
${MKDIR} ${PYTHON_SITELIBDIR}
${MKDIR} ${PYTHON_SITELIBDIR}/coro
${MKDIR} ${PREFIX}/share/examples/py-coro
.for i in ${CORO_PACKAGE}
${INSTALL_DATA} ${WRKSRC}/${i}.py* \
${PYTHON_SITELIBDIR}/coro
.endfor
.if !defined(NOPORTDOCS)
.for i in ${CORO_EXAMPLES}
${INSTALL_DATA} ${WRKSRC}/${i}.py* \
${PREFIX}/share/examples/py-coro
.endfor
.endif
.include <bsd.port.mk>