1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00
freebsd-ports/net/jpcap/Makefile
Baptiste Daroussin c5e3914c60 Fix master_site
2011-08-02 16:22:15 +00:00

63 lines
1.3 KiB
Makefile

# New ports collection makefile for: jpcap
# Date created: 10 February 2010
# Whom: bms
#
# $FreeBSD$
#
PORTNAME= jpcap
PORTVERSION= 0.7
PORTREVISION= 1
CATEGORIES= net devel java
MASTER_SITES= http://netresearch.ics.uci.edu/kfujii/Jpcap/
MAINTAINER= ports@FreeBSD.org
COMMENT= JNI wrapper around libpcap
LIB_DEPENDS= pcap.1:${PORTSDIR}/net/libpcap
USE_GMAKE= yes
USE_JAVA= yes
USE_LDCONFIG= yes
MAKE_JOBS_UNSAFE= yes
PKGMESSAGE= ${WRKDIR}/pkg-message
SUB_FILES+= pkg-message #pkg-install
SUB_LIST+= JAVAJARDIR="${JAVAJARDIR}"
MAKE_ENV= JAVA_HOME="${JAVA_HOME}" JAVA="${JAVA}" JAVAC="${JAVAC}" \
JAVAH="${JAVAH}" JAR_="${JAR}"
PLIST_FILES= %%JAVAJARDIR%%/jpcap.jar lib/libjpcap.so
# Build JNI .so only; install pre-compiled jar.
BUILD_WRKSRC= ${WRKSRC}/src/c
ALL_TARGET= # empty
.include <bsd.port.pre.mk>
.if ${ARCH} == "amd64" || ${ARCH} =="ia64" || ${ARCH} == "sparc64"
CFLAGS+= -fPIC
.else
CFLAGS+= -fpic
.endif
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
MAKE_ARGS+= CFLAGS="${CFLAGS}" \
CPPFLAGS="${CPPFLAGS}" \
LDFLAGS="${LDFLAGS}" \
PLATFORM="FreeBSD"
do-install:
${INSTALL_DATA} ${WRKSRC}/src/c/libjpcap.so ${PREFIX}/lib
${INSTALL_DATA} ${WRKSRC}/lib/jpcap.jar ${JAVAJARDIR}
# TODO: Install docs.
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>