2003-01-18 18:42:59 +01:00
|
|
|
# Ports collection makefile for: libnet-devel
|
2003-01-07 21:50:07 +01:00
|
|
|
# Date created: Jan 7, 2003
|
|
|
|
# Whom: smace@freebsd.org
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2003-12-16 23:21:57 +01:00
|
|
|
PORTNAME= libnet
|
2005-11-14 18:07:08 +01:00
|
|
|
PORTVERSION= 1.1.3.r1
|
2007-01-31 15:09:55 +01:00
|
|
|
PORTREVISION= 1
|
2003-01-07 21:50:07 +01:00
|
|
|
CATEGORIES= net
|
2005-11-14 18:07:08 +01:00
|
|
|
MASTER_SITES= http://www.packetfactory.net/libnet/dist/
|
2007-01-31 15:09:55 +01:00
|
|
|
PKGNAMESUFFIX= ${SHORT_VER}-devel
|
2005-11-14 18:07:08 +01:00
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION:S/.r1$//}-RC-01
|
2003-01-07 21:50:07 +01:00
|
|
|
|
2005-09-14 10:26:09 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= A C library for creating IP packets (development version)
|
2003-01-07 21:50:07 +01:00
|
|
|
|
2007-02-01 03:42:05 +01:00
|
|
|
USE_AUTOTOOLS= libtool:15
|
2007-01-31 15:09:55 +01:00
|
|
|
USE_LDCONFIG= yes
|
2003-12-16 23:21:57 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2007-01-31 15:09:55 +01:00
|
|
|
CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
|
2003-01-07 21:50:07 +01:00
|
|
|
|
2003-12-16 23:21:57 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
2007-01-31 15:09:55 +01:00
|
|
|
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}${SHORT_VER}
|
|
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/${PORTNAME}${SHORT_VER}
|
2003-12-16 23:21:57 +01:00
|
|
|
|
|
|
|
DOCS= README doc/BUGS doc/CHANGELOG doc/CONTRIB doc/COPYING \
|
|
|
|
doc/DESIGN_NOTES doc/MIGRATION doc/PACKET_BUILDING doc/PORTED \
|
2005-11-14 18:07:08 +01:00
|
|
|
doc/RAWSOCKET_NON_SEQUITUR doc/TODO
|
2003-12-16 23:21:57 +01:00
|
|
|
EXAMPLES= sample/*.c
|
2003-01-07 21:50:07 +01:00
|
|
|
|
2007-01-31 15:09:55 +01:00
|
|
|
SHORT_VER= 113
|
|
|
|
|
2003-01-07 21:50:07 +01:00
|
|
|
post-install:
|
2007-01-31 15:09:55 +01:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/libnet-config \
|
|
|
|
${PREFIX}/bin/libnet${SHORT_VER}-config
|
2003-12-16 23:21:57 +01:00
|
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${EXAMPLES} ${EXAMPLESDIR}
|
2007-01-31 15:09:55 +01:00
|
|
|
@cd ${PREFIX}/lib && \
|
|
|
|
${LN} -sf libnet${SHORT_VER}/libnet.so libnet-1.1.3.so.1 && \
|
|
|
|
${LN} -sf libnet-1.1.3.so.1 libnet-1.1.3.so
|
2003-12-16 23:21:57 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
|
|
|
|
.endif
|
2003-01-07 21:50:07 +01:00
|
|
|
|
2007-04-19 23:20:48 +02:00
|
|
|
.include <bsd.port.mk>
|