diff options
author | Pawel Pekala <pawel@FreeBSD.org> | 2013-02-17 14:08:11 +0000 |
---|---|---|
committer | Pawel Pekala <pawel@FreeBSD.org> | 2013-02-17 14:08:11 +0000 |
commit | 0ad73f737a3c3c3c5e695cba2c893a299468d026 (patch) | |
tree | 4504a3c8e3a4f0ce558214b39cd3f692c996a248 /devel/libxs/Makefile | |
parent | 44b1891e9949bab8cd31df2b905ae6ac4db550b7 (diff) | |
download | ports-0ad73f737a3c3c3c5e695cba2c893a299468d026.tar.gz ports-0ad73f737a3c3c3c5e695cba2c893a299468d026.zip |
Notes
Diffstat (limited to 'devel/libxs/Makefile')
-rw-r--r-- | devel/libxs/Makefile | 110 |
1 files changed, 110 insertions, 0 deletions
diff --git a/devel/libxs/Makefile b/devel/libxs/Makefile new file mode 100644 index 000000000000..644921b337d8 --- /dev/null +++ b/devel/libxs/Makefile @@ -0,0 +1,110 @@ +# Created by: Gvozdikov Veniamin <g.veniamin@googlemail.com> +# $FreeBSD$ + +PORTNAME= libxs +PORTVERSION= 1.2.0 +CATEGORIES= devel +MASTER_SITES= http://download.crossroads.io/ + +MAINTAINER= g.veniamin@googlemail.com +COMMENT= Open source lightweight messaging layer + +GNU_CONFIGURE= yes +USE_PKGCONFIG= build +USE_GNOME= gnomehack +USE_LDCONFIG= yes + +OPTIONS_DEFINE= DEBUG DOCS PLUGINS ZMQ +EXTERNAL_DESC= PGM extension from ports +INTERNAL_DESC= PGM extension +PLUGINS_DESC= Additional plugins +ZMQ_DESC= Compatibility with ZMQ +OPTIONS_RADIO= PGM +OPTIONS_RADIO_PGM= INTERNAL EXTERNAL +OPTIONS_DEFAULT=PLUGINS + +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MDEBUG} +CONFIGURE_ARGS+= --enable-debug +.endif + +.if ${PORT_OPTIONS:MDOCS} +BUILD_DEPENDS= asciidoc:${PORTSDIR}/textproc/asciidoc \ + xmlto:${PORTSDIR}/textproc/xmlto + +MAN3= \ + xs_bind.3 \ + xs_close.3 \ + xs_connect.3 \ + xs_errno.3 \ + xs_getmsgopt.3 \ + xs_getsockopt.3 \ + xs_init.3 \ + xs_msg_close.3 \ + xs_msg_copy.3 \ + xs_msg_data.3 \ + xs_msg_init.3 \ + xs_msg_init_data.3 \ + xs_msg_init_size.3 \ + xs_msg_move.3 \ + xs_msg_size.3 \ + xs_poll.3 \ + xs_recv.3 \ + xs_recvmsg.3 \ + xs_send.3 \ + xs_sendmsg.3 \ + xs_setctxopt.3 \ + xs_setsockopt.3 \ + xs_shutdown.3 \ + xs_socket.3 \ + xs_strerror.3 \ + xs_term.3 \ + xs_version.3 + +MAN7= \ + xs.7 \ + xs_inproc.7 \ + xs_ipc.7 \ + xs_pgm.7 \ + xs_tcp.7 \ + xs_zmq.7 +.else +CONFIGURE_ARGS+= --without-documentation +.endif + +.if ${PORT_OPTIONS:MINTERNAL} +CONFIGURE_ARGS+= --with-pgm +USE_PERL5= yes +CFLAGS+= -fPIC +.endif + +.if ${PORT_OPTIONS:MEXTERNAL} +CONFIGURE_ARGS+= --with-system-pgm +LIB_DEPENDS+= pgm:${PORTSDIR}/net/openpgm +.endif + +.if ${PORT_OPTIONS:MPLUGINS} +CONFIGURE_ARGS+= --enable-plugins=yes +.else +CONFIGURE_ARGS+= --enable-plugins=no +.endif + +.if ${PORT_OPTIONS:MZMQ} +CONFIGURE_ARGS+= --enable-libzmq +CONFLICTS= zmq-* +PLIST_SUB+= ZMQ="" +.else +PLIST_SUB+= ZMQ="@comment " +.endif + +pre-configure: +# fix for clang build + @${REINPLACE_CMD} "/^libxs_werror=/ s|yes|no|" \ + ${WRKSRC}/configure +.if ${PORT_OPTIONS:MEXTERNAL} + ${REINPLACE_CMD} "s|openpgm-5.1|openpgm-5.2|g" \ + ${WRKSRC}/configure +.endif + +.include <bsd.port.mk> |