diff options
author | olgeni <olgeni@FreeBSD.org> | 2010-10-04 18:32:45 +0800 |
---|---|---|
committer | olgeni <olgeni@FreeBSD.org> | 2010-10-04 18:32:45 +0800 |
commit | 14db9611825c2ec80d861d45c20ae0b279a3ceb1 (patch) | |
tree | bc27f7154a38f22b9ae33bd890c27af91ed2fa65 | |
parent | cd806196d3412bbd9f6a679f79d155af0a98842a (diff) | |
download | freebsd-ports-gnome-14db9611825c2ec80d861d45c20ae0b279a3ceb1.tar.gz freebsd-ports-gnome-14db9611825c2ec80d861d45c20ae0b279a3ceb1.tar.zst freebsd-ports-gnome-14db9611825c2ec80d861d45c20ae0b279a3ceb1.zip |
Add jzmq, Java bindings for the ZeroMQ message queue library (devel/zmq).
-rw-r--r-- | devel/Makefile | 1 | ||||
-rw-r--r-- | devel/jzmq/Makefile | 39 | ||||
-rw-r--r-- | devel/jzmq/distinfo | 3 | ||||
-rw-r--r-- | devel/jzmq/files/patch-configure.in | 15 | ||||
-rw-r--r-- | devel/jzmq/files/patch-src_Makefile.am | 12 | ||||
-rw-r--r-- | devel/jzmq/pkg-descr | 3 |
6 files changed, 73 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile index 5cfa87bbda95..ce95146e0827 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -679,6 +679,7 @@ SUBDIR += jtag SUBDIR += jude-community SUBDIR += judy + SUBDIR += jzmq SUBDIR += k8048 SUBDIR += kBuild SUBDIR += kaptain diff --git a/devel/jzmq/Makefile b/devel/jzmq/Makefile new file mode 100644 index 000000000000..d22fac252981 --- /dev/null +++ b/devel/jzmq/Makefile @@ -0,0 +1,39 @@ +# New ports collection makefile for: jzmq +# Date created: 2010-10-03 +# Whom: Jimmy Olgeni <olgeni@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= jzmq +PORTVERSION= 2010.08.17 +CATEGORIES= devel java +MASTER_SITES= LOCAL/olgeni +DISTNAME= zeromq-${PORTNAME}-${PORTVERSION} + +MAINTAINER= olgeni@FreeBSD.org +COMMENT= Java bindings for ZeroMQ + +LIB_DEPENDS= zmq.0:${PORTSDIR}/devel/zmq + +USE_AUTOTOOLS= autoconf:267 libtool:22 automake:110 +USE_GMAKE= yes +USE_GNOME= pkgconfig +USE_JAVA= 1.4+ +USE_LDCONFIG= yes + +CONFIGURE_ARGS= --with-zeromq=${LOCALBASE} +CONFIGURE_ENV= JAVA_HOME=${JAVA_HOME} LDFLAGS=${PTHREAD_LIBS} +GNU_CONFIGURE= yes + +PLIST_FILES= %%JAVAJARDIR%%/zmq.jar \ + %%LIB32DIR%%/libjzmq.a \ + %%LIB32DIR%%/libjzmq.la \ + %%LIB32DIR%%/libjzmq.so \ + %%LIB32DIR%%/libjzmq.so.0 + +pre-configure: + @${MKDIR} ${WRKSRC}/config + @cd ${WRKSRC} && ${AUTORECONF} --install --force --verbose -I config + +.include <bsd.port.mk> diff --git a/devel/jzmq/distinfo b/devel/jzmq/distinfo new file mode 100644 index 000000000000..ffe08f520f0d --- /dev/null +++ b/devel/jzmq/distinfo @@ -0,0 +1,3 @@ +MD5 (zeromq-jzmq-2010.08.17.tar.gz) = b7225fe5ed949463f9d36c04bc581c92 +SHA256 (zeromq-jzmq-2010.08.17.tar.gz) = f815a216ec9ed66dd6a03c60e6a69494d23cb12e3ef00c23915c407e3acb48db +SIZE (zeromq-jzmq-2010.08.17.tar.gz) = 28497 diff --git a/devel/jzmq/files/patch-configure.in b/devel/jzmq/files/patch-configure.in new file mode 100644 index 000000000000..39edd12cbb7b --- /dev/null +++ b/devel/jzmq/files/patch-configure.in @@ -0,0 +1,15 @@ + +$FreeBSD$ + +--- configure.in.orig ++++ configure.in +@@ -107,6 +107,9 @@ + *darwin*) + # Darwin does not need an extra -I path + ;; ++ *freebsd*) ++ CPPFLAGS="$CPPFLAGS -I${JAVA_HOME}/include/freebsd" ++ ;; + *) + AC_MSG_ERROR([don't know how to find jni_md.h on this platform]) + ;; diff --git a/devel/jzmq/files/patch-src_Makefile.am b/devel/jzmq/files/patch-src_Makefile.am new file mode 100644 index 000000000000..f83055b374a7 --- /dev/null +++ b/devel/jzmq/files/patch-src_Makefile.am @@ -0,0 +1,12 @@ + +$FreeBSD$ + +--- src/Makefile.am.orig ++++ src/Makefile.am +@@ -1,5 +1,5 @@ + jarfile = zmq.jar +-jardir = $(datadir)/java ++jardir = $(datadir)/java/classes + + JZMQ_JAVA_FILES = \ + org/zeromq/ZMQ.java diff --git a/devel/jzmq/pkg-descr b/devel/jzmq/pkg-descr new file mode 100644 index 000000000000..a8be65337959 --- /dev/null +++ b/devel/jzmq/pkg-descr @@ -0,0 +1,3 @@ +Java bindings for the ZeroMQ message queue library. + +WWW: http://github.com/zeromq/jzmq |