diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-07-25 08:55:56 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-07-25 08:55:56 +0100 |
commit | bf2c6ad6782df5963101bc3e73c0d31d65e0829f (patch) | |
tree | 576f80a009b285b5cfedf66ecadc7182810684e7 /dev-libs/libvterm/files/libvterm-0.2-slibtool.patch | |
parent | aeb34c47a1042b074096bacb85205617c8a14d3a (diff) |
gentoo auto-resync : 25:07:2022 - 08:55:56
Diffstat (limited to 'dev-libs/libvterm/files/libvterm-0.2-slibtool.patch')
-rw-r--r-- | dev-libs/libvterm/files/libvterm-0.2-slibtool.patch | 103 |
1 files changed, 103 insertions, 0 deletions
diff --git a/dev-libs/libvterm/files/libvterm-0.2-slibtool.patch b/dev-libs/libvterm/files/libvterm-0.2-slibtool.patch new file mode 100644 index 000000000000..5f6356da2761 --- /dev/null +++ b/dev-libs/libvterm/files/libvterm-0.2-slibtool.patch @@ -0,0 +1,103 @@ +From: orbea <orbea@riseup.net> +Date: Thu, 14 Jul 2022 13:18:26 -0700 +Subject: [PATCH] build: Add a minimal configures script + +When building libvterm with slibtool using the rlibtool symlink the +build will fail when the generated libtool is not found. This file is +required with rlibtool so that the build can determine if the build +should be shared, static or both. + +This can be solved by adding a minimal configure script. + +The build steps are now: + +autoreconf -fi +./configure +make +make install + +diff --git a/Makefile b/Makefile.in +similarity index 90% +rename from Makefile +rename to Makefile.in +index e3c1c39..70e7ca2 100644 +--- a/Makefile ++++ b/Makefile.in +@@ -1,13 +1,13 @@ +-ifeq ($(shell uname),Darwin) +- LIBTOOL ?= glibtool +-else +- LIBTOOL ?= libtool +-endif ++top_builddir = @top_builddir@ ++ ++LIBTOOL = @LIBTOOL@ + + ifneq ($(VERBOSE),1) + LIBTOOL +=--quiet + endif + ++CC = @CC@ ++ + override CFLAGS +=-Wall -Iinclude -std=c99 -Wpedantic + + ifeq ($(shell uname),SunOS) +@@ -36,20 +36,21 @@ INCFILES=$(TBLFILES:.tbl=.inc) + + HFILES_INT=$(sort $(wildcard src/*.h)) $(HFILES) + +-VERSION_MAJOR=0 +-VERSION_MINOR=2 ++VERSION_MAJOR=@VERSION_MAJOR@ ++VERSION_MINOR=@VERSION_MINOR@ + + VERSION_CURRENT=0 + VERSION_REVISION=0 + VERSION_AGE=0 + +-VERSION=$(VERSION_MAJOR).$(VERSION_MINOR) ++VERSION=@PACKAGE_VERSION@ + +-PREFIX=/usr/local +-BINDIR=$(PREFIX)/bin +-LIBDIR=$(PREFIX)/lib +-INCDIR=$(PREFIX)/include +-MANDIR=$(PREFIX)/share/man ++prefix=@prefix@ ++exec_prefix=@exec_prefix@ ++BINDIR=@bindir@ ++LIBDIR=@libdir@ ++INCDIR=@includedir@ ++MANDIR=@mandir@ + MAN3DIR=$(MANDIR)/man3 + + all: $(LIBRARY) $(BINFILES) +@@ -73,7 +74,7 @@ src/encoding.lo: $(INCFILES) + + bin/%: bin/%.c $(LIBRARY) + @echo CC $< +- @$(LIBTOOL) --mode=link --tag=CC $(CC) $(CFLAGS) -o $@ $< -lvterm $(LDFLAGS) ++ @$(LIBTOOL) --mode=link --tag=CC $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) + + t/harness.lo: t/harness.c $(HFILES) + @echo CC $< +diff --git a/configure.ac b/configure.ac +new file mode 100644 +index 0000000..39f7767 +--- /dev/null ++++ b/configure.ac +@@ -0,0 +1,14 @@ ++m4_define([version_major], [0]) ++m4_define([version_minor], [2]) ++ ++AC_INIT([libvterm], [version_major.version_minor]) ++AC_CONFIG_FILES([Makefile]) ++ ++LT_INIT ++ ++AC_SUBST([top_builddir], [$abs_builddir]) ++ ++AC_SUBST([VERSION_MAJOR], [version_major]) ++AC_SUBST([VERSION_MINOR], [version_minor]) ++ ++AC_OUTPUT |