2002-01-30 03:32:10 +00:00
|
|
|
# ex:ts=8
|
|
|
|
# Ports collection makefile for: py-libnet
|
|
|
|
# Date created: Jan 30, 2002
|
|
|
|
# Whom: ijliao
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= libnet
|
|
|
|
PORTVERSION= 1.0
|
2004-02-04 05:10:27 +00:00
|
|
|
PORTREVISION= 1
|
2002-01-30 03:32:10 +00:00
|
|
|
CATEGORIES= net python
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= pylibnet
|
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
DISTNAME= pylibnet-${PORTVERSION}
|
|
|
|
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 19:00:52 +00:00
|
|
|
COMMENT= Python module for the libnet packet construction library
|
2002-01-30 03:32:10 +00:00
|
|
|
|
2002-10-30 13:25:25 +00:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/bin/swig1.1:${PORTSDIR}/devel/swig11 \
|
2002-01-30 03:32:10 +00:00
|
|
|
${LOCALBASE}/lib/libnet.a:${PORTSDIR}/net/libnet
|
|
|
|
|
2002-06-23 06:04:01 +00:00
|
|
|
USE_REINPLACE= yes
|
2002-01-30 03:32:10 +00:00
|
|
|
USE_PYTHON= yes
|
|
|
|
USE_GMAKE= yes
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/src
|
|
|
|
|
2004-03-14 05:23:16 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${ARCH} == "amd64"
|
|
|
|
BROKEN= "Does not compile on amd64 (tries to link non-PIC libnet.a into PIC shared library)"
|
|
|
|
.endif
|
|
|
|
|
2002-01-30 03:32:10 +00:00
|
|
|
post-patch:
|
2002-06-23 06:04:01 +00:00
|
|
|
@${REINPLACE_CMD} -e "s,^CC,#CC,g ; \
|
2002-01-30 03:32:10 +00:00
|
|
|
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
|
|
|
|
|
2004-03-14 05:23:16 +00:00
|
|
|
.include <bsd.port.post.mk>
|