74add3b300
Add a new USE_LIBTOOL definition that uses the libtool package instead of pkglibtool which is now considered outdated. USE_PKGLIBTOOL is available for backwards compatibility with old packages but is deprecated for new packages.
33 lines
955 B
Makefile
33 lines
955 B
Makefile
# $NetBSD: Makefile,v 1.3 2000/06/01 11:23:22 rh Exp $
|
|
#
|
|
|
|
DISTNAME= libnet-1.0
|
|
CATEGORIES= devel net
|
|
MASTER_SITES= http://www.packetfactory.net/libnet/dist/
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
MAINTAINER= sakamoto@netbsd.org
|
|
HOMEPAGE= http://www.packetfactory.net/libnet/
|
|
|
|
USE_PKGLIBTOOL= yes
|
|
GNU_CONFIGURE= yes
|
|
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"
|