summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-03-23 21:46:04 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-03-23 21:46:04 +0000
commitba499535bfa8d6f52738a826d21375506ad2115d (patch)
tree4eb8beb47befb7ce7ddf1f89c70099aba51d53c4 /Makefile
parent590f49184da28584f90d0b7e2c83d97121aa9900 (diff)
downloadmandoc-ba499535bfa8d6f52738a826d21375506ad2115d.tar.gz
Added FreeBSD port.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile21
1 files changed, 20 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 711a2deb..59d4b9d2 100644
--- a/Makefile
+++ b/Makefile
@@ -45,6 +45,7 @@ HTMLS = index.html
STATICS = style.css external.png
TARGZS = mdocml-$(VERSION).tar.gz \
mdocml-oport-$(VERSION).tar.gz \
+ mdocml-fport-$(VERSION).tar.gz \
mdocml-nport-$(VERSION).tar.gz
MANS = mandoc.1 mdoc.3 mdoc.7 manuals.7
BINS = mandoc
@@ -64,7 +65,9 @@ cleanlint:
dist: mdocml-$(VERSION).tar.gz
-port: mdocml-oport-$(VERSION).tar.gz mdocml-nport-$(VERSION).tar.gz
+port: mdocml-oport-$(VERSION).tar.gz \
+ mdocml-fport-$(VERSION).tar.gz \
+ mdocml-nport-$(VERSION).tar.gz
www: $(HTMLS) $(TARGZS)
@@ -76,6 +79,8 @@ installwww: www
install -m 0444 mdocml-oport-$(VERSION).tar.gz $(PREFIX)/ports-openbsd/mdocml.tar.gz
install -m 0444 mdocml-nport-$(VERSION).tar.gz $(PREFIX)/ports-netbsd/
install -m 0444 mdocml-nport-$(VERSION).tar.gz $(PREFIX)/ports-netbsd/mdocml.tar.gz
+ install -m 0444 mdocml-fport-$(VERSION).tar.gz $(PREFIX)/ports-freebsd/
+ install -m 0444 mdocml-fport-$(VERSION).tar.gz $(PREFIX)/ports-freebsd/mdocml.tar.gz
install:
mkdir -p $(BINDIR)
@@ -187,6 +192,20 @@ mdocml-oport-$(VERSION).tar.gz: mdocml-$(VERSION).tar.gz Makefile.openbsd DESCR
( cd .dist/ && tar zcf ../$@ mdocml/ )
rm -rf .dist/
+mdocml-fport-$(VERSION).tar.gz: mdocml-$(VERSION).tar.gz Makefile.freebsd DESCR
+ mkdir -p .dist/mdocml
+ sed -e "s!@VERSION@!$(VERSION)!" Makefile.freebsd > \
+ .dist/mdocml/Makefile
+ ( md5 mdocml-$(VERSION).tar.gz; \
+ sha1 mdocml-$(VERSION).tar.gz; \
+ echo -n "SIZE (mdocml-$(VERSION).tar.gz) = "; \
+ ls -l mdocml-$(VERSION).tar.gz | awk '{print $$5}' \
+ ) > .dist/mdocml/distinfo
+ install -m 0644 DESCR .dist/mdocml/pkg-descr
+ ( echo; echo "WWW: http://mdocml.bsd.lv/") >> .dist/mdocml/pkg-descr
+ ( cd .dist/ && tar zcf ../$@ mdocml/ )
+ rm -rf .dist/
+
mdocml-$(VERSION).tar.gz: $(INSTALL)
mkdir -p .dist/mdocml/mdocml-$(VERSION)/
install -m 0644 $(INSTALL) .dist/mdocml/mdocml-$(VERSION)/