freebsd-ports/net-mgmt/py-yapsnmp/Makefile
Dmitry Marakasov 6f6fbe4bdf - Add LDFLAGS to CONFIGURE_ENV and MAKE_ENV (as it was done with LDFLAGS)
- Fix all ports that add {CPP,LD}FLAGS to *_ENV to modify flags instead

PR:		157936
Submitted by:	myself
Exp-runs by:	pav
Approved by:	pav
2011-09-23 22:26:39 +00:00

40 lines
894 B
Makefile

# New ports collection makefile for: py-yapsnmp
# Date created: 2005-01-07
# Whom: arved
#
# $FreeBSD$
PORTNAME= yapsnmp
PORTVERSION= 0.7.8
PORTREVISION= 7
CATEGORIES= net-mgmt python
MASTER_SITES= SF
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= arved@FreeBSD.org
COMMENT= Python SNMP module based on net-snmp
LIB_DEPENDS= netsnmp.30:${PORTSDIR}/net-mgmt/net-snmp
LICENSE= LGPL21
LICENSE_FILE= ${WRKSRC}/COPYING
USE_AUTOTOOLS= libtool
USE_GMAKE= yes
USE_PYTHON= yes
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>