# New ports collection makefile for: libpcap # Date created: 10 December 2003 # Whom: Bruce M Simpson # # $FreeBSD$ # PORTNAME= libpcap PORTVERSION= 0.9.7 CATEGORIES= net ipv6 MASTER_SITES= http://www.tcpdump.org/release/ \ http://www.icrew.org/mirror/tcp_dump/tcpdump_3_9/ DISTNAME= ${PORTNAME}-${PORTVERSION} MAINTAINER= bms@FreeBSD.org COMMENT= Ubiquitous network traffic capture library WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} MAN3= pcap.3 GNU_CONFIGURE= yes USE_BISON= yes USE_LDCONFIG= yes .if defined(LIBPCAP_OVERWRITE_BASE) PREFIX= /usr PKGNAMESUFFIX= -overwrite-base MANPREFIX= ${PREFIX}/share PLIST_SUB+= NOTBASE="@comment " PLIST_SUB+= BASE="" EXTRA_PATCHES+= ${FILESDIR}/patchbase-Makefile.in PKGMESSAGE= ${FILESDIR}/pkg-message-base .else PLIST_SUB+= BASE="@comment " PLIST_SUB+= NOTBASE="" .endif .if !defined(WITHOUT_IPV6) CONFIGURE_ARGS+= --enable-ipv6 .endif .if !defined(WITH_DAG) CONFIGURE_ARGS+= --without-dag .endif .if defined(LIBPCAP_OVERWRITE_BASE) post-install: ${CAT} ${PKGMESSAGE} .endif .include .if ${ARCH} == "amd64" CFLAGS+= -fPIC .endif .include