summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-02-27 17:24:30 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-02-27 17:24:30 +0000
commit3ef341bdb93631c03af361e06ee30e4de1245957 (patch)
tree2f5ff82d468a0915537f065e48b33a8b17c18bcb /Makefile
parent69daad351ec2ab2069748a5a0139dae5f65642aa (diff)
downloadmandoc-3ef341bdb93631c03af361e06ee30e4de1245957.tar.gz
Initial NetBSD pkgsrc.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile31
1 files changed, 26 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 9ce3deae..5c96bf96 100644
--- a/Makefile
+++ b/Makefile
@@ -51,8 +51,8 @@ BINS = mdocterm mdoctree mdoclint
CLEAN = $(BINS) $(LNS) $(LLNS) $(LIBS) $(OBJS) $(HTMLS) \
$(TARGZS)
-INSTALL = $(SRCS) $(HEADS) Makefile Makefile.port DESCR $(MANS) \
- $(SGMLS) $(STATICS)
+INSTALL = $(SRCS) $(HEADS) Makefile DESCR $(MANS) $(SGMLS) \
+ $(STATICS) Makefile.netbsd Makefile.openbsd
FAIL = regress/test.empty \
regress/test.prologue.00 \
@@ -133,7 +133,7 @@ cleanlint:
dist: mdocml-$(VERSION).tar.gz
-port: mdocml-oport-$(VERSION).tar.gz
+port: mdocml-oport-$(VERSION).tar.gz mdocml-nport-$(VERSION).tar.gz
www: $(HTMLS) $(TARGZS)
@@ -223,9 +223,30 @@ mmain.h: mdoc.h
term.h: mdoc.h
-mdocml-oport-$(VERSION).tar.gz: mdocml-$(VERSION).tar.gz Makefile.port DESCR
+mdocml-nport-$(VERSION).tar.gz: mdocml-$(VERSION).tar.gz Makefile.netbsd DESCR
+ mkdir -p .dist/mdocml/
+ sed -e "s!@VERSION@!$(VERSION)!" Makefile.netbsd > \
+ .dist/mdocml/Makefile
+ md5 mdocml-$(VERSION).tar.gz > .dist/mdocml/distinfo
+ rmd160 mdocml-$(VERSION).tar.gz >> .dist/mdocml/distinfo
+ sha1 mdocml-$(VERSION).tar.gz >> .dist/mdocml/distinfo
+ install -m 0644 DESCR .dist/mdocml/
+ echo @comment $$NetBSD$$ > .dist/mdocml/PLIST
+ echo bin/mdocterm >> .dist/mdocml/PLIST
+ echo bin/mdoctree >> .dist/mdocml/PLIST
+ echo bin/mdoclint >> .dist/mdocml/PLIST
+ echo lib/libmdoc.a >> .dist/mdocml/PLIST
+ echo include/mdoc.h >> .dist/mdocml/PLIST
+ echo man/man1/mdoctree.1 >> .dist/mdocml/PLIST
+ echo man/man1/mdocterm.1 >> .dist/mdocml/PLIST
+ echo man/man1/mdoclint.1 >> .dist/mdocml/PLIST
+ echo man/man3/mdoc.3 >> .dist/mdocml/PLIST
+ ( cd .dist/ && tar zcf ../$@ mdocml/ )
+ rm -rf .dist/
+
+mdocml-oport-$(VERSION).tar.gz: mdocml-$(VERSION).tar.gz Makefile.openbsd DESCR
mkdir -p .dist/mdocml/pkg
- sed -e "s!@VERSION@!$(VERSION)!" Makefile.port > \
+ sed -e "s!@VERSION@!$(VERSION)!" Makefile.openbsd > \
.dist/mdocml/Makefile
md5 mdocml-$(VERSION).tar.gz > .dist/mdocml/distinfo
rmd160 mdocml-$(VERSION).tar.gz >> .dist/mdocml/distinfo