aboutsummaryrefslogtreecommitdiffstats
path: root/community/libtermkey/build-static-lib.patch
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2017-05-13 00:15:31 +0200
committerJakub Jirutka <jakub@jirutka.cz>2017-05-13 00:17:17 +0200
commit00279f93a8b4f1fcc44fa69d4f64edd17f44d032 (patch)
tree4c972033c4ad72a24b00b2a7b8f9f2e8f122c307 /community/libtermkey/build-static-lib.patch
parentb539a1ce400d046843af298622ca3413dff66ce5 (diff)
downloadaports-00279f93a8b4f1fcc44fa69d4f64edd17f44d032.tar.gz
aports-00279f93a8b4f1fcc44fa69d4f64edd17f44d032.tar.bz2
aports-00279f93a8b4f1fcc44fa69d4f64edd17f44d032.tar.xz
community/libtermkey: build static library and add it to -dev
Diffstat (limited to 'community/libtermkey/build-static-lib.patch')
-rw-r--r--community/libtermkey/build-static-lib.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/community/libtermkey/build-static-lib.patch b/community/libtermkey/build-static-lib.patch
new file mode 100644
index 0000000000..842d9ac199
--- /dev/null
+++ b/community/libtermkey/build-static-lib.patch
@@ -0,0 +1,24 @@
+--- a/Makefile
++++ b/Makefile
+@@ -70,6 +70,9 @@
+ $(LIBRARY): $(OBJECTS)
+ $(LIBTOOL) --mode=link --tag=CC $(CC) -rpath $(LIBDIR) -version-info $(VERSION_CURRENT):$(VERSION_REVISION):$(VERSION_AGE) $(LDFLAGS) -o $@ $^
+
++libtermkey.a: $(OBJECTS)
++ $(LIBTOOL) --mode=link $(CC) -o $@ $^
++
+ demo: $(LIBRARY) demo.lo
+ $(LIBTOOL) --mode=link --tag=CC $(CC) -o $@ $^
+
+@@ -112,9 +115,10 @@
+ install -d $(DESTDIR)$(LIBDIR)/pkgconfig
+ sed "s,@LIBDIR@,$(LIBDIR),;s,@INCDIR@,$(INCDIR)," <termkey.pc.in >$(DESTDIR)$(LIBDIR)/pkgconfig/termkey.pc
+
+-install-lib: $(LIBRARY)
++install-lib: $(LIBRARY) libtermkey.a
+ install -d $(DESTDIR)$(LIBDIR)
+ $(LIBTOOL) --mode=install install libtermkey.la $(DESTDIR)$(LIBDIR)/libtermkey.la
++ $(LIBTOOL) --mode=install install libtermkey.a $(DESTDIR)$(LIBDIR)/libtermkey.a
+
+ install-man:
+ install -d $(DESTDIR)$(MAN3DIR)