graphviz/graphviz-perl-set_rpath.patch

26 lines
1.0 KiB
Diff

Index: tclpkg/gv/Makefile.am
===================================================================
--- tclpkg/gv/Makefile.am.orig 2010-06-15 11:37:15.082918277 +0200
+++ tclpkg/gv/Makefile.am 2010-06-15 11:38:05.966918325 +0200
@@ -120,13 +120,18 @@ gv.cmxa: gv.cmx
ocamlopt -a -o gv.cmxa gv.cmx
gv.a: gv.cmxa
+PERL ?= perl
+PERL_CC = $(shell $(PERL) -MExtUtils::Embed -e ccopts)
+PERL_LD = $(shell $(PERL) -MExtUtils::Embed -e ldopts)
+VENDOR_ARCH = $(shell $(PERL) -MConfig -e 'print $$Config{installvendorarch};')
+
pkgperldir = $(pkglibdir)/perl
PERL_data = gv.pm
nodist_libgv_perl_la_SOURCES = gv_perl.cpp $(PERL_data)
libgv_perl_la_SOURCES = $(BASESOURCES) gv_dummy_init.c
libgv_perl_la_LIBADD = $(BASELIBS) $(PERL_LIBS)
-libgv_perl_la_LDFLAGS = -module -avoid-version
-libgv_perl_la_CPPFLAGS = $(BASECPPFLAGS) $(PERL_INCLUDES)
+libgv_perl_la_LDFLAGS = -module -avoid-version $(PERL_LD)
+libgv_perl_la_CPPFLAGS = $(AM_CPPFLAGS) $(PERL_CC)
$(PERL_data): gv_perl.cpp
gv_perl.cpp: gv.i
$(SWIG) -c++ -perl -o gv_perl.cpp $(srcdir)/gv.i