tmk: new port - distro - linux distribution experiments
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
---
(DIR) commit b13aa97df15f586a08ee88cddd190c3ceeb557e6
(DIR) parent a3f0c55e8df2af76a4fa254ee5ce5ee4bd79286e
(HTM) Author: z3bra <contactatz3bradotorg>
Date: Tue, 30 Oct 2018 08:26:04 +0100
mk: new port
Diffstat:
A pkg/mk/mkfile | 8 ++++++++
A pkg/mk/patches/makefile-ldflags.di… | 10 ++++++++++
2 files changed, 18 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/pkg/mk/mkfile b/pkg/mk/mkfile
t@@ -0,0 +1,8 @@
+pkg = mk
+ver = 0.1
+url = http://swtch.com/plan9port/unix/$pkg.tgz
+
+<../build.mk
+
+CFLAGS = $CFLAGS -c -I. $LDFLAGS
+MAKEFLAGS = PREFIX=`{pwd}/.rootfs
(DIR) diff --git a/pkg/mk/patches/makefile-ldflags.diff b/pkg/mk/patches/makefile-ldflags.diff
t@@ -0,0 +1,10 @@
+diff -urN a/Makefile b/Makefile
+--- a/Makefile 2011-01-02 21:52:48.000000000 +0100
++++ b/Makefile 2016-10-25 11:02:27.079660855 +0200
+@@ -125,5 +125,5 @@
+ .phony: all clean nuke install tgz rpm ports
+
+ $(TARG): $(OFILES)
+- $(CC) -o $(TARG) $(OFILES) -L$(PREFIX)/lib -L../libutf -L../libfmt -L../libbio -L../libregexp -lregexp9 -lbio -lfmt -lutf
++ $(CC) -o $(TARG) $(OFILES) $(LDFLAGS) -L$(PREFIX)/lib -L../libutf -L../libfmt -L../libbio -L../libregexp -lregexp9 -lbio -lfmt -lutf
+