mkports

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

commit faa649e76ab6e33f6657d3b29116b8a948495fb1
parent 693bf046081c47db6aacf30dbfed164b9072c010
Author: z3bra <contactatz3bradotorg>
Date:   Wed Feb 15 22:35:59 +0000

libtermkey: new pack

Diffstat:
libtermkey/mkfile | 7+++++++
libtermkey/patches/000-makefile-fix-install.diff | 31+++++++++++++++++++++++++++++++
2 files changed, 38 insertions(+), 0 deletions(-)
diff --git a/libtermkey/mkfile b/libtermkey/mkfile @@ -0,0 +1,7 @@ +pkg=libtermkey +ver=0.17 +url=http://www.leonerd.org.uk/code/libtermkey/libtermkey-0.17.tar.gz + +<../default.mk +pkgconfig = /bin/false +LDFLAGS = $LDFLAGS -lncursesw diff --git a/libtermkey/patches/000-makefile-fix-install.diff b/libtermkey/patches/000-makefile-fix-install.diff @@ -0,0 +1,31 @@ +diff -urN a/Makefile b/Makefile +--- a/Makefile 2014-01-06 18:03:51.000000000 +0000 ++++ b/Makefile 2017-02-14 07:41:26.248000465 +0000 +@@ -102,18 +102,20 @@ + $(LIBTOOL) --mode=finish $(DESTDIR)$(LIBDIR) + + install-inc: termkey.h +- install -d $(DESTDIR)$(INCDIR) +- install -m644 termkey.h $(DESTDIR)$(INCDIR) +- install -d $(DESTDIR)$(LIBDIR)/pkgconfig ++ mkdir -p $(DESTDIR)$(INCDIR) ++ cp termkey.h $(DESTDIR)$(INCDIR) ++ chmod 644 $(DESTDIR)$(INCDIR)/termkey.h ++ mkdir -p $(DESTDIR)$(LIBDIR)/pkgconfig + sed "s,@LIBDIR@,$(LIBDIR),;s,@INCDIR@,$(INCDIR)," <termkey.pc.in >$(DESTDIR)$(LIBDIR)/pkgconfig/termkey.pc + + install-lib: $(LIBRARY) +- install -d $(DESTDIR)$(LIBDIR) +- $(LIBTOOL) --mode=install install libtermkey.la $(DESTDIR)$(LIBDIR)/libtermkey.la ++ mkdir -p $(DESTDIR)$(LIBDIR) ++ cp .libs/libtermkey.a $(DESTDIR)$(LIBDIR)/libtermkey.a ++ chmod 644 $(DESTDIR)$(LIBDIR)/libtermkey.a + + install-man: +- install -d $(DESTDIR)$(MAN3DIR) +- install -d $(DESTDIR)$(MAN7DIR) ++ mkdir -p $(DESTDIR)$(MAN3DIR) ++ mkdir -p $(DESTDIR)$(MAN7DIR) + for F in man/*.3; do \ + gzip <$$F >$(DESTDIR)$(MAN3DIR)/$${F#man/}.gz; \ + done