aboutsummaryrefslogtreecommitdiff
path: root/comms/libmodbus/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'comms/libmodbus/Makefile')
-rw-r--r--comms/libmodbus/Makefile20
1 files changed, 13 insertions, 7 deletions
diff --git a/comms/libmodbus/Makefile b/comms/libmodbus/Makefile
index 01038c936540..00ac1fb92c56 100644
--- a/comms/libmodbus/Makefile
+++ b/comms/libmodbus/Makefile
@@ -1,8 +1,7 @@
PORTNAME= libmodbus
-PORTVERSION= 3.1.7
-PORTREVISION= 2
+DISTVERSIONPREFIX= v
+DISTVERSION= 3.1.11
CATEGORIES= comms
-MASTER_SITES= https://libmodbus.org/releases/
MAINTAINER= bofh@FreeBSD.org
COMMENT= Modbus library
@@ -11,11 +10,12 @@ WWW= https://libmodbus.org/
LICENSE= LGPL21+
LICENSE_FILE= ${WRKSRC}/COPYING.LESSER
-USES= cpe gmake libtool pathfix
+USES= autoreconf cpe gmake libtool
+USE_GITHUB= yes
+GH_ACCOUNT= stephane
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
-GNU_CONFIGURE_MANPREFIX=${PREFIX}/share
INSTALL_TARGET= install-strip
@@ -23,7 +23,13 @@ OPTIONS_DEFINE= DOCS MANPAGES
OPTIONS_DEFAULT= MANPAGES
OPTIONS_SUB= yes
-MANPAGES_BUILD_DEPENDS= a2x:textproc/asciidoc \
- xmlto:textproc/xmlto
+MANPAGES_BUILD_DEPENDS= go-md2man:textproc/go-md2man
+
+post-install-MANPAGES-on:
+ go-md2man -in docs/index.md | ${GZIP_CMD} > ${STAGEDIR}${PREFIX}/share/man/man7/libmodbus.7.gz
+ for files in `${FIND} ${WRKSRC}/docs -type f -name 'modbus*.md'`; do \
+ basefiles=`basename $${files} .md`; \
+ go-md2man -in $${files} | ${GZIP_CMD} > ${STAGEDIR}${PREFIX}/share/man/man3/$${basefiles}.3.gz; \
+ done
.include <bsd.port.mk>