mkports

recipes for building multiple softwares with mk(1)
git clone git://z3bra.org/mkports
Log | Files | Refs

commit 2c7a6c1b3255c92eb1f49a7830c9315e53e6b57e
parent f4a643d347ec476b266bfb59cdac4ff375d04389
Author: z3bra <willyatmailoodotorg>
Date:   Sun Jan 24 01:21:26 2016

new ports: plan9 mk/make

Diffstat:
 deps.mk                              |  6 +++++-
 libbio/mkfile                        |  9 +++++++++
 libfmt/mkfile                        |  9 +++++++++
 libmpfr/blah                         |  7 -------
 libregexp9/mkfile                    |  9 +++++++++
 libutf/mkfile                        |  9 +++++++++
 libutf/patches/000-prefix-share.diff | 19 +++++++++++++++++++
 make/mkfile                          |  6 ++++++
 mk/.footprint                        | 30 ++++++++++++++++++++++++++++++
 mk/.md5sum                           |  3 +++
 mk/mkfile                            |  9 +++++++++
 mkfile                               |  3 +--
 12 files changed, 109 insertions(+), 10 deletions(-)

diff --git a/deps.mk b/deps.mk @@ -1,7 +1,11 @@ curl:V: libressl git:V: libz iputils:V: libressl +libarchive:V: libz +libbio:V: libutf libfmt +libfmt:V: libutf libmpfr:V: libgmp libmpc:V: libgmp libmpfr -libarchive:V: libz +libregexp9:V: libutf libfmt +mk:V: libutf libfmt libbio libregexp9 pm:V: libarchive libz bzip2 diff --git a/libbio/mkfile b/libbio/mkfile @@ -0,0 +1,9 @@ +pkg = libbio +ver = 2.0 +url = http://swtch.com/plan9port/unix/$pkg.tgz + +<../config.mk +<../default.mk + +CFLAGS = ${CFLAGS} -c -I. +MAKEFLAGS = PREFIX=$destdir diff --git a/libfmt/mkfile b/libfmt/mkfile @@ -0,0 +1,9 @@ +pkg = libfmt +ver = 2.0 +url = http://swtch.com/plan9port/unix/$pkg.tgz + +<../config.mk +<../default.mk + +CFLAGS = ${CFLAGS} -c -I. +MAKEFLAGS = PREFIX=$destdir diff --git a/libmpfr/blah b/libmpfr/blah @@ -1,7 +0,0 @@ -install:QV: build - if [ ! -d $destdir ]; then - mkdir -p $destdir - cd $pkg-$ver - make PREFIX= DESTDIR=$destdir install - find $destdir -name '*.la' -delete - fi diff --git a/libregexp9/mkfile b/libregexp9/mkfile @@ -0,0 +1,9 @@ +pkg = libregexp9 +ver = 2.0 +url = http://swtch.com/plan9port/unix/$pkg.tgz + +<../config.mk +<../default.mk + +CFLAGS = ${CFLAGS} -c -I. +MAKEFLAGS = PREFIX=$destdir diff --git a/libutf/mkfile b/libutf/mkfile @@ -0,0 +1,9 @@ +pkg = libutf +ver = 2.0 +url = http://swtch.com/plan9port/unix/$pkg.tgz + +<../config.mk +<../default.mk + +CFLAGS = ${CFLAGS} -c -I. +MAKEFLAGS = PREFIX=$destdir diff --git a/libutf/patches/000-prefix-share.diff b/libutf/patches/000-prefix-share.diff @@ -0,0 +1,19 @@ +diff -ruN a/Makefile b/Makefile +--- a/Makefile 2011-01-02 21:52:47.000000000 +0100 ++++ b/Makefile 2016-01-24 00:57:15.836684225 +0100 +@@ -55,11 +55,11 @@ + all: $(LIB) + + install: $(LIB) +- mkdir -p $(PREFIX)/share/man/man3 $(PREFIX)/man/man7 +- install -c -m 0644 isalpharune.3 $(PREFIX)/share/man/man3/isalpharune.3 ++ mkdir -p $(PREFIX)/man/man3 $(PREFIX)/man/man7 ++ install -c -m 0644 isalpharune.3 $(PREFIX)/man/man3/isalpharune.3 + install -c -m 0644 utf.7 $(PREFIX)/man/man7/utf.7 +- install -c -m 0644 rune.3 $(PREFIX)/share/man/man3/rune.3 +- install -c -m 0644 runestrcat.3 $(PREFIX)/share/man/man3/runestrcat.3 ++ install -c -m 0644 rune.3 $(PREFIX)/man/man3/rune.3 ++ install -c -m 0644 runestrcat.3 $(PREFIX)/man/man3/runestrcat.3 + mkdir -p $(PREFIX)/include + install -c -m 0644 utf.h $(PREFIX)/include/utf.h + mkdir -p $(PREFIX)/lib diff --git a/make/mkfile b/make/mkfile @@ -0,0 +1,6 @@ +pkg = make +ver = 4.1 +url = ftp://ftp.gnu.org/gnu/make/$pkg-$ver.tar.gz + +<../config.mk +<../default.mk diff --git a/mk/.footprint b/mk/.footprint @@ -0,0 +1,30 @@ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +-rwxr-xr-x root/root usr/bin/mk +drwxr-xr-x root/root usr/doc/ +-rw-r--r-- root/root usr/doc/mk.pdf +drwxr-xr-x root/root usr/include/ +-rw-r--r-- root/root usr/include/bio.h +-rw-r--r-- root/root usr/include/fmt.h +-rw-r--r-- root/root usr/include/regexp9.h +-rw-r--r-- root/root usr/include/utf.h +drwxr-xr-x root/root usr/lib/ +-rw-r--r-- root/root usr/lib/libbio.a +-rw-r--r-- root/root usr/lib/libfmt.a +-rw-r--r-- root/root usr/lib/libregexp9.a +-rw-r--r-- root/root usr/lib/libutf.a +drwxr-xr-x root/root usr/share/ +drwxr-xr-x root/root usr/share/man/ +drwxr-xr-x root/root usr/share/man/man1/ +-rw-r--r-- root/root usr/share/man/man1/mk.1.gz +drwxr-xr-x root/root usr/share/man/man3/ +-rw-r--r-- root/root usr/share/man/man3/bio.3.gz +-rw-r--r-- root/root usr/share/man/man3/fmtinstall.3.gz +-rw-r--r-- root/root usr/share/man/man3/isalpharune.3.gz +-rw-r--r-- root/root usr/share/man/man3/print.3.gz +-rw-r--r-- root/root usr/share/man/man3/regexp9.3.gz +-rw-r--r-- root/root usr/share/man/man3/rune.3.gz +-rw-r--r-- root/root usr/share/man/man3/runestrcat.3.gz +drwxr-xr-x root/root usr/share/man/man7/ +-rw-r--r-- root/root usr/share/man/man7/regexp9.7.gz +-rw-r--r-- root/root usr/share/man/man7/utf.7.gz diff --git a/mk/.md5sum b/mk/.md5sum @@ -0,0 +1,3 @@ +289d52ec2547f6d72e2aaa83441e720d 0000-destdir.diff +f8ed3466d25e2905c294e4c03dd38a21 0001-manprefix.diff +b4f5960b875258a08505e07f3404d639 mk-with-libs.tgz diff --git a/mk/mkfile b/mk/mkfile @@ -0,0 +1,9 @@ +pkg = mk +ver = 0.1 +url = http://swtch.com/plan9port/unix/$pkg.tgz + +<../config.mk +<../default.mk + +CFLAGS = $CFLAGS -c -I. +MAKEFLAGS = PREFIX=$destdir diff --git a/mkfile b/mkfile @@ -21,11 +21,10 @@ all:QV: ${ALL} cd $stem env -i PATH=$PATH mk env -i PATH=$PATH mk clean - for d in $prereq; do pm -d $d; done - clean:QV: for p in ${ALL}; do (cd $p; mk clean); done distclean:QV: + pm -d $(pm -i | cut -f1) for p in ${ALL}; do (cd $p; mk distclean); done