freebsd-ports/net/py-libnet/Makefile

51 lines
1.3 KiB
Makefile
Raw Normal View History

# ex:ts=8
# Ports collection makefile for: py-libnet
# Date created: Jan 30, 2002
# Whom: ijliao
#
# $FreeBSD$
#
PORTNAME= libnet
PORTVERSION= 1.0
PORTREVISION= 3
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 20:00:52 +01:00
COMMENT= Python module for the libnet packet construction library
2002-10-30 14:25:25 +01:00
BUILD_DEPENDS= ${LOCALBASE}/bin/swig1.1:${PORTSDIR}/devel/swig11 \
${LIBNET_CONFIG}:${PORTSDIR}/net/libnet10
USE_PYTHON= yes
WRKSRC= ${WRKDIR}/${DISTNAME}/src
2004-12-16 13:22:26 +01:00
MAKE_ARGS= SWIG=${LOCALBASE}/bin/swig1.1 \
LIBNET_INCLUDES=-I${LOCALBASE}/include \
PYTHON_INCLUDES=-I${PYTHON_INCLUDEDIR} \
CFLAGS="${CFLAGS} `${LIBNET_CONFIG} --defines` `${LIBNET_CONFIG} --cflags` -fPIC" \
LIBNET_LIB="`${LIBNET_CONFIG} --libs`" \
2004-12-16 13:22:26 +01:00
CC=${CC}
PLIST_FILES= lib/%%PYTHON_VERSION%%/site-packages/libnet.py \
lib/%%PYTHON_VERSION%%/site-packages/libnetcmodule.so
LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet10-config
.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
do-install:
.for file in libnet.py libnetcmodule.so
${INSTALL_DATA} ${WRKSRC}/${file} ${PYTHON_SITELIBDIR}
.endfor
.include <bsd.port.post.mk>