summaryrefslogtreecommitdiff
path: root/www/cadaver/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'www/cadaver/Makefile')
-rw-r--r--www/cadaver/Makefile59
1 files changed, 18 insertions, 41 deletions
diff --git a/www/cadaver/Makefile b/www/cadaver/Makefile
index 097dc53c64ef..058df485f76a 100644
--- a/www/cadaver/Makefile
+++ b/www/cadaver/Makefile
@@ -1,6 +1,5 @@
PORTNAME= cadaver
-PORTVERSION= 0.24
-PORTREVISION= 1
+DISTVERSION= 0.26
CATEGORIES= www
MASTER_SITES= https://notroj.github.io/cadaver/
@@ -8,54 +7,32 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= Commandline client for DAV
WWW= https://notroj.github.io/cadaver/
-LIB_DEPENDS= libneon.so:www/neon
+LICENSE= GPLv2
+LICENSE_FILE= ${WRKSRC}/COPYING
-USES= ssl
-GNU_CONFIGURE= yes
-CONFIGURE_ARGS= --enable-netrc --with-ssl
-GNU_CONFIGURE_MANPREFIX= ${PREFIX}/share
+LIB_DEPENDS= libexpat.so:textproc/expat2 \
+ libneon.so:www/neon
-PLIST_FILES= bin/cadaver \
- share/man/man1/cadaver.1.gz
+USES= cpe localbase:ldflags pkgconfig ssl
+CPE_VENDOR= webdav
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS= --enable-netrc \
+ --with-ssl
# Neither expat nor libneon are needed at all, but the configure
# script breaks if it can not find the Makefile* in them. Exclude
# them to be sure, a stray .h is not included instead of what's
# found under PREFIX (installed by the neon port):
-EXTRACT_AFTER_ARGS= \
- --exclude '${PORTNAME}-${PORTVERSION}/lib/expat/*.[ch]' \
- --exclude '${PORTNAME}-${PORTVERSION}/lib/intl/*.[ch]' \
- --exclude '${PORTNAME}-${PORTVERSION}/lib/neon/*.[ch]' \
- --exclude 'glob.[ch]' --exclude 'mkstemp.[ch]' \
- --exclude 'tempname.[ch]' --exclude 'basename.[ch]'
-
-CPPFLAGS+= -I${LOCALBASE}/include
-LDFLAGS+= -L${LOCALBASE}/lib
-
-USES+= cpe
-CPE_VENDOR= webdav
+EXTRACT_AFTER_ARGS= --exclude '${PORTNAME}-${DISTVERSION}/lib/expat/*.[ch]' \
+ --exclude '${PORTNAME}-${DISTVERSION}/lib/intl/*.[ch]' \
+ --exclude '${PORTNAME}-${DISTVERSION}/lib/neon/*.[ch]' \
+ --exclude 'glob.[ch]' --exclude 'mkstemp.[ch]' \
+ --exclude 'tempname.[ch]' --exclude 'basename.[ch]'
OPTIONS_DEFINE= NLS
+OPTIONS_SUB= yes
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MNLS}
-USES+= gettext iconv
-CONFIGURE_ARGS+=${ICONV_CONFIGURE_ARG} \
- --with-libintl-prefix=${LOCALBASE}
-LANGS=en@quot es
-.for lang in ${LANGS}
-PLIST_FILES+= share/locale/${lang}/LC_MESSAGES/cadaver.mo
-.endfor
-.else
-CONFIGURE_ARGS+=--disable-nls \
- --without-libiconv-prefix \
- --without-libintl-prefix
-.endif
-
-NEON_VERSION= 31 32
-
-post-patch:
- @${REINPLACE_CMD} 's,27 28 29,& ${NEON_VERSION},' ${WRKSRC}/configure
+NLS_USES= gettext iconv
+NLS_CONFIGURE_ENABLE= nls
.include <bsd.port.mk>