1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-13 07:34:50 +00:00
freebsd-ports/net-mgmt/py-yapsnmp/Makefile
Marcus von Appen f850cf2ff0 - Convert ports of net-im/, net-mgmt/ and net-p2p/ to new USES=python
Approved by:	portmgr (implicit)
2014-10-24 16:29:51 +00:00

36 lines
793 B
Makefile

# Created by: arved
# $FreeBSD$
PORTNAME= yapsnmp
PORTVERSION= 0.7.8
PORTREVISION= 8
CATEGORIES= net-mgmt python
MASTER_SITES= SF
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= arved@FreeBSD.org
COMMENT= Python SNMP module based on net-snmp
LIB_DEPENDS= libnetsnmp.so:${PORTSDIR}/net-mgmt/net-snmp
LICENSE= LGPL21
LICENSE_FILE= ${WRKSRC}/COPYING
USES= gmake libtool python
GNU_CONFIGURE= yes
CPPFLAGS+= -I${LOCALBASE}/include -I${PYTHON_INCLUDEDIR}
LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ARGS+=--enable-site-packages-prefix=${PREFIX}
.include <bsd.port.pre.mk>
.if (${OSVERSION} >= 800000) && (${ARCH} == "i386")
CPPFLAGS+= -fstack-protector -I${LOCALBASE}/include
.endif
post-patch:
${REINPLACE_CMD} -e "s,-lsnmp,-lnetsnmp," \
${WRKSRC}/configure
.include <bsd.port.post.mk>