aboutsummaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authorSteve Wills <swills@FreeBSD.org>2018-09-02 15:34:17 +0000
committerSteve Wills <swills@FreeBSD.org>2018-09-02 15:34:17 +0000
commit2b6ec734ba433d6af1069806eb4b2be318896306 (patch)
tree420ce097a1a493cbc72b67b436784d8cd2da59ae /textproc
parent31051d8ecaad7a6d9db9d6a4a89823fe6d6c0d27 (diff)
downloadports-2b6ec734ba433d6af1069806eb4b2be318896306.tar.gz
ports-2b6ec734ba433d6af1069806eb4b2be318896306.zip
Notes
Diffstat (limited to 'textproc')
-rw-r--r--textproc/ml1/Makefile20
-rw-r--r--textproc/ml1/distinfo5
-rw-r--r--textproc/ml1/pkg-message9
-rw-r--r--textproc/ml1/pkg-plist6
4 files changed, 28 insertions, 12 deletions
diff --git a/textproc/ml1/Makefile b/textproc/ml1/Makefile
index ea0337fa3a6c..829af7fbf3ce 100644
--- a/textproc/ml1/Makefile
+++ b/textproc/ml1/Makefile
@@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= ml1
-PORTVERSION= 4.11
+PORTVERSION= 4.12
CATEGORIES= textproc
MASTER_SITES= http://www.ml1.org.uk/distfiles/ \
http://www.ancientgeek.org.uk/distfiles/
@@ -12,11 +12,25 @@ COMMENT= Original general purpose macro processor
LICENSE= BSD3CLAUSE
-PLIST_FILES= bin/ml1 man/man1/ml1.1.gz
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.pre.mk>
+
+post-patch:
+.if ${ARCH} == amd64
+ @${REINPLACE_CMD} \
+ -e '/^#define FBSD32/s/1/0/' \
+ -e '/^#define FBSD64/s/0/1/'\
+ ${WRKSRC}/ml1.h
+.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/ml1 ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/ml1.1.gz \
${STAGEDIR}${MANPREFIX}/man/man1
-.include <bsd.port.mk>
+do-install-DOCS-on:
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ (cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
+
+.include <bsd.port.post.mk>
diff --git a/textproc/ml1/distinfo b/textproc/ml1/distinfo
index 50c3123272ec..a41d181833ce 100644
--- a/textproc/ml1/distinfo
+++ b/textproc/ml1/distinfo
@@ -1,2 +1,3 @@
-SHA256 (ml1-4.11.tar.gz) = d52cf77df8340f944f9cfa7d3ed37d37f19ac648db86feceda2175c915d1615d
-SIZE (ml1-4.11.tar.gz) = 37706
+TIMESTAMP = 1535887237
+SHA256 (ml1-4.12.tar.gz) = 69d7d80b8f72f031412ac17e12ca54d8d962f6a297cbb9ca104594666678ad52
+SIZE (ml1-4.12.tar.gz) = 587730
diff --git a/textproc/ml1/pkg-message b/textproc/ml1/pkg-message
index 3c8ddf00c581..19931dbebdaf 100644
--- a/textproc/ml1/pkg-message
+++ b/textproc/ml1/pkg-message
@@ -1,7 +1,2 @@
-================================================================================
-
- ML/I documentation (in HTML and PDF) can be found at:
-
- http://www.ml1.org.uk
-
-================================================================================
+Additional ML/I documentation (in HTML and PDF) can be found at:
+ http://www.ml1.org.uk
diff --git a/textproc/ml1/pkg-plist b/textproc/ml1/pkg-plist
new file mode 100644
index 000000000000..e3c35ef1ed1d
--- /dev/null
+++ b/textproc/ml1/pkg-plist
@@ -0,0 +1,6 @@
+bin/ml1
+man/man1/ml1.1.gz
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%%%DOCSDIR%%/ml1sig.pdf
+%%PORTDOCS%%%%DOCSDIR%%/ml1tut.pdf
+%%PORTDOCS%%%%DOCSDIR%%/ml1user.pdf