1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-11 02:50:24 +00:00
freebsd-ports/net/py-libnet/Makefile
Ying-Chieh Liao e28630ead2 Replace ${PERL} with ${REINPLACE_CMD}
PR:		39668
Submitted by:	Oliver Braun <obraun@informatik.unibw-muenchen.de>
2002-06-23 06:04:01 +00:00

38 lines
838 B
Makefile

# ex:ts=8
# Ports collection makefile for: py-libnet
# Date created: Jan 30, 2002
# Whom: ijliao
#
# $FreeBSD$
#
PORTNAME= libnet
PORTVERSION= 1.0
CATEGORIES= net python
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= pylibnet
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= pylibnet-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
BUILD_DEPENDS= swig:${PORTSDIR}/devel/SWIG \
${LOCALBASE}/lib/libnet.a:${PORTSDIR}/net/libnet
USE_REINPLACE= yes
USE_PYTHON= yes
USE_GMAKE= yes
WRKSRC= ${WRKDIR}/${DISTNAME}/src
post-patch:
@${REINPLACE_CMD} -e "s,^CC,#CC,g ; \
s,%%PYTHON_INCLUDEDIR%%,${PYTHON_INCLUDEDIR},g ; \
s,%%LOCALBASE%%,${LOCALBASE},g" ${WRKSRC}/Makefile
do-install:
.for file in libnet.py libnetcmodule.so
${INSTALL_DATA} ${WRKSRC}/${file} ${PYTHON_SITELIBDIR}
.endfor
.include <bsd.port.mk>