OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
2.3 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../exact-image/exact-image-0.8.7-perl-install.patch
  5. # Copyright (C) 2012 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. Description: Install perl modules into correct locations
  17. It is common practise that architecture-dependent and architecture-independent
  18. files are installed in different locations.
  19. Besides that we are using the 'vendor_perl' directories because, according to
  20. http://search.cpan.org/dist/perl/INSTALL#Installation_Directories this is the
  21. right place for distributions which build binary packages of perl add-on
  22. modules.
  23. --- exact-image-0.8.7/api/perl/Makefile.orig 2008-12-09 10:42:19.000000000 +0100
  24. +++ exact-image-0.8.7/api/perl/Makefile 2012-08-01 15:23:13.317027601 +0200
  25. @@ -4,6 +4,13 @@
  26. BINARY_EXT = $(X_DYNEXT)
  27. DEPS = $(lib_BINARY) $(bardecode_BINARY) $(codecs_BINARY) $(api_BINARY) $($(X_MODULE)_OUTPUT)/api-perl-wrap.cc
  28. +# perl interpreter
  29. +PERL := /usr/bin/perl
  30. +# Directory to install architecture-dependent perl files into
  31. +PERL_ARCH := $(shell $(PERL) -MConfig -e 'print $$Config{installvendorarch}')
  32. +# Directory to install architecture-independent perl files into
  33. +PERL_LIB := $(shell $(PERL) -MConfig -e 'print $$Config{installvendorlib}')
  34. +
  35. objdir/api/perl/CXXFLAGS := -I api $(PERLINCS)
  36. $($(X_MODULE)_OUTPUT)/api-perl-wrap.cc: $(X_MODULE)/../api.hh $(X_MODULE)/../api-swig.hh
  37. @@ -20,5 +27,7 @@
  38. all:: $($(X_MODULE)_BINARY)
  39. install:: $($(X_MODULE)_BINARY)
  40. $(Q)echo "INSTALL PERL module $^"
  41. - $(Q)mkdir -p $(DESTDIR)$(libdir)/perl5/site_perl/
  42. - $(Q)install $^ $(dir $^)/ExactImage.pm $(DESTDIR)$(libdir)/perl5/site_perl/
  43. + $(Q)mkdir -p $(DESTDIR)$(PERL_ARCH)
  44. + $(Q)install $^ $(DESTDIR)$(PERL_ARCH)/
  45. + $(Q)mkdir -p $(DESTDIR)$(PERL_LIB)
  46. + $(Q)install $(dir $^)/ExactImage.pm $(DESTDIR)$(PERL_LIB)/