1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-16 03:24:07 +00:00
freebsd-ports/net/netembryo/Makefile
John Marino 639bdf6a36 net/netembryo: Add 2 new options, SCTP and IPv6
DragonFly does not support SCTP.  This was detected fine in the configure
script, but check-plist failed due to an SCTP file that didn't get
installed.  The configure script takes options for SCTP and IPv6, so turn
those into options.  Use the brand-new OPTIONS_EXCLUDE_DragonFly feature
to allow SCTP to be on by default for FreeBSD and not even an option for
DragonFly.
2015-03-26 18:10:43 +00:00

48 lines
1.1 KiB
Makefile

# Created by: Emmanuel Richiardone (err@tollari.org)
# $FreeBSD$
PORTNAME= netembryo
PORTVERSION= 0.1.1
PORTREVISION= 2
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_LOCAL} \
http://pkgs.fedoraproject.org/repo/pkgs/netembryo/netembryo-0.1.1.tar.bz2/d5a3c96b37fe3e4fb1c49df1f7a4a16f/ \
http://lscube.org/files/downloads/netembryo/
MASTER_SITE_SUBDIR= rakuco
MAINTAINER= ports@FreeBSD.org
COMMENT= Network abstraction library
LICENSE= LGPL21
OPTIONS_DEFINE= OPENSSL SCTP IPV6
OPTIONS_DEFAULT= OPENSSL SCTP
OPTIONS_SUB= yes
SCTP_DESC= Stream Control Transmission Protocol support
OPTIONS_EXCLUDE_DragonFly= SCTP
IPV6_CONFIGURE_ENABLE= ipv6
SCTP_CONFIGURE_ENABLE= sctp
USES= gmake libtool pathfix pkgconfig tar:bzip2
USE_GNOME= glib20
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-silent-rules
INSTALL_TARGET= install-strip
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MOPENSSL}
USE_OPENSSL= yes
CONFIGURE_ENV+= OPENSSL_CFLAGS="-I${OPENSSLINC}" \
OPENSSL_LIBS="-L${OPENSSLLIB}"
.else
CONFIGURE_ARGS+=--without-openssl
.endif
post-patch:
@${REINPLACE_CMD} '/_XOPEN_SOURCE/d' ${WRKSRC}/configure
.include <bsd.port.mk>