diff options
Diffstat (limited to 'net/echoping/Makefile')
-rw-r--r-- | net/echoping/Makefile | 36 |
1 files changed, 26 insertions, 10 deletions
diff --git a/net/echoping/Makefile b/net/echoping/Makefile index 865bfbd5fda5..39044e3d1bfe 100644 --- a/net/echoping/Makefile +++ b/net/echoping/Makefile @@ -1,28 +1,25 @@ PORTNAME= echoping PORTVERSION= 6.0.2 -PORTREVISION= 12 +PORTREVISION= 13 CATEGORIES= net -MAINTAINER= ports@FreeBSD.org +MAINTAINER= eugen@FreeBSD.org COMMENT= Ping-like program that uses TCP and/or HTTP WWW= https://framagit.org/bortzmeyer/echoping LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING -DEPRECATED= Unmaintained upstream as of 2015 and depends on deprecated libidn -EXPIRATION_DATE=2025-04-30 +LIB_DEPENDS= libpopt.so:devel/popt -LIB_DEPENDS= libpopt.so:devel/popt \ - libidn.so:dns/libidn - -USES= autoreconf cpe libtool pkgconfig ssl +USES= autoreconf cpe iconv libtool pkgconfig ssl CPE_VENDOR= echoping_project GNU_CONFIGURE= yes GNU_CONFIGURE_MANPREFIX=${PREFIX}/share CONFIGURE_ARGS= --enable-http --enable-icp --enable-smtp --with-ssl \ - --enable-ttcp --enable-tos --with-libidn=${LOCALBASE} \ + --enable-ttcp --enable-tos \ + --with-popt=${LOCALBASE} \ --enable-plugin="${PING_PLUGINS}" INSTALL_TARGET= install-strip @@ -35,9 +32,14 @@ GL_TAGNAME= ccf3c95d9249d3065db3853486f41c852d20101e WRKSRC_SUBDIR= SRC OPTIONS_DEFINE= LDAP PGSQL -OPTIONS_DEFAULT=LDAP +OPTIONS_DEFAULT=LDAP IDN +OPTIONS_SINGLE= LIBIDN +OPTIONS_SINGLE_LIBIDN=IDN IDN2 OPTIONS_SUB= yes +IDN_DESC= Use GNU libidn +IDN2_DESC= Use GNU libidn2 + LDAP_USES= ldap LDAP_VARS= PING_PLUGINS+=ldap @@ -51,4 +53,18 @@ pre-configure: ${MV} configure.ac.tmp configure.ac' \; ${REINPLACE_CMD} '/^echoping_LDADD =/s/$$/ -lm/' ${WRKSRC}/Makefile.am +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MIDN2} +CONFIGURE_ARGS+= --with-libidn2=${LOCALBASE} +LIB_DEPENDS+= libidn2.so:dns/libidn2 +EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-idn2-acinclude.m4 \ + ${PATCHDIR}/extra-patch-idn2-configure.ac \ + ${PATCHDIR}/extra-patch-idn2-echoping.c \ + ${PATCHDIR}/extra-patch-idn2-echoping.h +.else +CONFIGURE_ARGS+= --with-libidn=${LOCALBASE} +LIB_DEPENDS+= libidn.so:dns/libidn +.endif + .include <bsd.port.mk> |