openbsd-ports/x11/lablgtk2/patches/patch-config_make_in
dcoppa 6e727b82a7 Support DESTDIR with findlib-install (this unbreaks systraced builds)
adapted from upstream git 58e15c3a33ee747e3e58a2c9687f22234f0055b6

OK sthen@, chrisz@
2013-01-31 21:20:32 +00:00

28 lines
918 B
Plaintext

$OpenBSD: patch-config_make_in,v 1.1 2013/01/31 21:20:32 dcoppa Exp $
Support DESTDIR with findlib-install; unbreak systraced builds
(adapted from upstream git 58e15c3a33ee747e3e58a2c9687f22234f0055b6)
--- config.make.in.orig Thu Aug 23 12:37:48 2012
+++ config.make.in Thu Jan 31 11:48:57 2013
@@ -9,6 +9,7 @@ OCAMLDOC=@OCAMLDOC@
CAMLMKTOP=@CAMLMKTOP@
CAMLMKLIB=@CAMLMKLIB@
CAMLP4O=@CAMLP4O@
+FINDLIBDIR=@FINDLIBDIR@
CAMLBEST=@OCAMLBEST@
CAMLWIN32=@OCAMLWIN32@
CAMLDEP=@OCAMLDEP@
@@ -56,9 +57,11 @@ BINDIR=$(DESTDIR)@bindir@
# where to install the man page
MANDIR=$(DESTDIR)@mandir@
+LABLGTKDIR=@LIBDIR@/lablgtk2
INSTALLDIR=$(DESTDIR)@LIBDIR@/lablgtk2
DLLDIR=$(DESTDIR)@LIBDIR@/stublibs
LABLGLDIR=@LABLGLDIR@
+FLINSTALLDIR=$(DESTDIR)$(FINDLIBDIR)/lablgtk2
FILT = -Wl,--export-dynamic
clean_libs = $(subst -pthread,-ldopt -pthread -ccopt -pthread,$(subst --rpath,-rpath,$(filter-out $(FILT),$(1))))