pkgsrc/devel/libnet/Makefile
jlam e2afa97f51 Merge changes in packages from the buildlink2 branch that have
buildlink2.mk files back into the main trunk.  This provides sufficient
buildlink2 infrastructure to start merging other packages from the
buildlink2 branch that have already been converted to use the buildlink2
framework.
2002-08-25 18:38:05 +00:00

35 lines
1 KiB
Makefile

# $NetBSD: Makefile,v 1.10 2002/08/25 18:38:31 jlam Exp $
#
DISTNAME= libnet-1.0.1b
CATEGORIES= devel net
MASTER_SITES= http://www.packetfactory.net/libnet/dist/
MAINTAINER= sakamoto@netbsd.org
HOMEPAGE= http://www.packetfactory.net/libnet/
COMMENT= C library for portable packet creation and injection
USE_BUILDLINK2= # defined
USE_LIBTOOL= # defined
GNU_CONFIGURE= # defined
CONFIGURE_ENV+= LIBNET_CONFIG_CFLAGS="-I${PREFIX}/include" \
LIBNET_CONFIG_LIBS="${LDFLAGS}"
WRKSRC= ${WRKDIR}/${DISTNAME:C/l/L/}
PLIST_SRC= ${WRKDIR}/PLIST
DOCDIR= share/doc/libnet
post-install:
@${INSTALL_DATA_DIR} ${PREFIX}/share/doc/libnet
@(cd ${WRKSRC}/doc/html; ${GTAR} cf - *.html *.gif */*.c | \
(cd ${PREFIX}/${DOCDIR};${GTAR} xf -))
@${LN} -s ${PREFIX}/share/doc/libnet/examples \
${PREFIX}/share/examples/libnet
@${CP} ${PKGDIR}/PLIST ${PLIST_SRC}
@(cd ${PREFIX}; \
${FIND} ${DOCDIR} -type f >> ${PLIST_SRC}; \
${FIND} ${DOCDIR} -type d| ${SED} -e 's|^|@dirrm |' | ${SORT} -r \
>> ${PLIST_SRC})
.include "../../mk/bsd.pkg.mk"