libmpack-1.0.5-libtool.patch 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. https://bugs.gentoo.org/778899
  2. Author: orbea <orbea@riseup.net>
  3. Date: Fri Jun 17 17:29:51 2022 -0700
  4. configure: Add minimal configure.ac for libtool
  5. diff --git a/Makefile b/Makefile.in
  6. similarity index 92%
  7. rename from Makefile
  8. rename to Makefile.in
  9. index 76cfd35..2c05a99 100644
  10. --- a/Makefile
  11. +++ b/Makefile.in
  12. @@ -4,11 +4,9 @@
  13. config ?= debug
  14. SYSTEM ?= $(shell uname -s)
  15. -ifeq ($(SYSTEM),Darwin)
  16. - LIBTOOL ?= glibtool
  17. -else
  18. - LIBTOOL ?= libtool
  19. -endif
  20. +top_builddir = @top_builddir@
  21. +
  22. +LIBTOOL := @LIBTOOL@
  23. ifneq ($(VERBOSE),1)
  24. LIBTOOL += --quiet
  25. @@ -33,11 +31,11 @@ else
  26. XCFLAGS += -std=c99
  27. endif
  28. -NAME := mpack
  29. -MAJOR := 1
  30. -MINOR := 0
  31. -PATCH := 3
  32. -VERSION := $(MAJOR).$(MINOR).$(PATCH)
  33. +NAME := @PACKAGE_NAME@
  34. +MAJOR := @MAJOR@
  35. +MINOR := @MINOR@
  36. +PATCH := @PATCH@
  37. +VERSION := @PACKAGE_VERSION@
  38. LT_REVISION=0
  39. LT_CURRENT=0
  40. @@ -130,6 +128,11 @@ clean:
  41. $(TOBJ): XCFLAGS := $(filter-out $(TEST_FILTER_OUT),$(XCFLAGS)) \
  42. -std=gnu99 -Wno-conversion -Wno-unused-parameter
  43. +$(OUTDIR)/.tag:
  44. + @mkdir -p $(OUTDIR)/$(SRCDIR)
  45. + @mkdir -p $(OUTDIR)/$(TESTDIR)/deps/tap
  46. + @touch $@
  47. +
  48. $(COVOUT): $(SRC) $(TSRC)
  49. find $(OUTDIR) -type f -name '*.gcda' -print0 | xargs -0 rm -f
  50. $(MAKE) CFLAGS='-DNDEBUG -g --coverage' LDFLAGS=--coverage config=$(config) test
  51. @@ -142,7 +145,7 @@ $(PROFOUT): $(SRC) $(TSRC)
  52. gprof $(OUTDIR)/run-tests gmon.out > $@
  53. rm gmon.out
  54. -$(OUTDIR)/%.lo: %.c $(AMALG)
  55. +$(OUTDIR)/%.lo: %.c $(AMALG) $(OUTDIR)/.tag
  56. @echo compile $< =\> $@
  57. @$(LIBTOOL) --mode=compile --tag=CC $(CC) $(XCFLAGS) $(CFLAGS) -o $@ -c $<
  58. diff --git a/configure.ac b/configure.ac
  59. new file mode 100644
  60. index 0000000..d2f02e7
  61. --- /dev/null
  62. +++ b/configure.ac
  63. @@ -0,0 +1,16 @@
  64. +m4_define([MAJOR], [1])
  65. +m4_define([MINOR], [0])
  66. +m4_define([PATCH], [5])
  67. +
  68. +AC_INIT([mpack], [MAJOR.MINOR.PATCH])
  69. +AC_CONFIG_FILES([Makefile])
  70. +
  71. +LT_INIT
  72. +
  73. +AC_SUBST([top_builddir], [$abs_builddir])
  74. +
  75. +AC_SUBST([MAJOR], [MAJOR])
  76. +AC_SUBST([MINOR], [MINOR])
  77. +AC_SUBST([PATCH], [PATCH])
  78. +
  79. +AC_OUTPUT