]> git.cameronkatri.com Git - mandoc.git/commitdiff
Initial NetBSD pkgsrc.
authorKristaps Dzonsons <kristaps@bsd.lv>
Fri, 27 Feb 2009 17:24:30 +0000 (17:24 +0000)
committerKristaps Dzonsons <kristaps@bsd.lv>
Fri, 27 Feb 2009 17:24:30 +0000 (17:24 +0000)
Makefile
Makefile.netbsd [new file with mode: 0644]
Makefile.openbsd [moved from Makefile.port with 100% similarity]

index 9ce3deaeafae8def92d190f8e499eb4211665b28..5c96bf96ee94f824b3e6530bbd1fd027d82d84e2 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -51,8 +51,8 @@ BINS  = mdocterm mdoctree mdoclint
 CLEAN  = $(BINS) $(LNS) $(LLNS) $(LIBS) $(OBJS) $(HTMLS) \
          $(TARGZS)
 
 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 \
 
 FAIL   = regress/test.empty \
          regress/test.prologue.00 \
@@ -133,7 +133,7 @@ cleanlint:
 
 dist:  mdocml-$(VERSION).tar.gz
 
 
 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)
 
 
 www:   $(HTMLS) $(TARGZS)
 
@@ -223,9 +223,30 @@ mmain.h: mdoc.h
 
 term.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
        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
                .dist/mdocml/Makefile
        md5 mdocml-$(VERSION).tar.gz > .dist/mdocml/distinfo
        rmd160 mdocml-$(VERSION).tar.gz >> .dist/mdocml/distinfo
diff --git a/Makefile.netbsd b/Makefile.netbsd
new file mode 100644 (file)
index 0000000..7ca475c
--- /dev/null
@@ -0,0 +1,16 @@
+# $NetBSD$
+
+COMMENT=               mdoc macro compiler
+
+DISTNAME=              mdocml-@VERSION@
+CATEGORIES=            devel
+
+HOMEPAGE=              http://mdocml.bsd.lv/
+
+MAINTAINER=            Kristaps Dzonsons <kristaps@kth.se>
+
+MASTER_SITES=          http://mdocml.bsd.lv/snapshots/
+
+WANTLIB=               c
+
+.include "../../mk/bsd.pkg.mk"
similarity index 100%
rename from Makefile.port
rename to Makefile.openbsd