freebsd-ports/net/libpcap/Makefile
Erwin Lansing 50513d5d52 Add support for DESTDIR part I.
This commit should largele be a NOOP as it only adds support
for DESTDIR undefined. This does allow us to start testing
ports with DESTDIR set, but this is as of yet not supported.

Although this has been extensively tested on pointyhat, this
is a very intrusive change and some cases may have been
overlooked. Please contact Gabor and me if you find any.

PR:             100555
Submitted by:   gabor
Sponsored by:   Google Summer of Code 2006
2006-08-04 12:34:50 +00:00

58 lines
1.2 KiB
Makefile

# New ports collection makefile for: libpcap
# Date created: 10 December 2003
# Whom: Bruce M Simpson <bms@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= libpcap
PORTVERSION= 0.9.4
CATEGORIES= net
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
.if defined(LIBPCAP_OVERWRITE_BASE)
PREFIX= /usr
PKGNAMESUFFIX= -overwrite-base
MANPREFIX= ${TARGETDIR}/share
CONFIGURE_ARGS+=--mandir=${MANPREFIX}/man
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 <bsd.port.pre.mk>
.if ${ARCH} == "amd64"
CFLAGS+= -fPIC
.endif
.include <bsd.port.post.mk>