changeset 4667:c338241afed1

build-perl: new package
author John W. Eaton <jwe@octave.org>
date Thu, 19 Apr 2018 17:21:35 -0400
parents bb748339b351
children a11736295721
files dist-files.mk octave-wrapper.in src/build-perl.mk
diffstat 3 files changed, 29 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/dist-files.mk	Thu Apr 19 17:17:45 2018 -0400
+++ b/dist-files.mk	Thu Apr 19 17:21:35 2018 -0400
@@ -37,6 +37,7 @@
   build-mako.mk \
   build-markupsafe.mk \
   build-msvctools.mk \
+  build-perl.mk \
   build-pkg-config-1-fixes.patch \
   build-pkg-config.mk \
   build-python.mk \
--- a/octave-wrapper.in	Thu Apr 19 17:17:45 2018 -0400
+++ b/octave-wrapper.in	Thu Apr 19 17:21:35 2018 -0400
@@ -27,6 +27,8 @@
 
 LIBGL_DRIVERS_PATH="$OCTAVE_HOME/lib/dri"
 
+PERL5LIB="$OCTAVE_HOME/lib/perl5"
+
 QT_PLUGIN_PATH="$OCTAVE_HOME/plugins"
 
 export OCTAVE_HOME
@@ -39,6 +41,7 @@
 export GNUPLOT_SHARE_DIR
 export GNUPLOT_PS_DIR
 export LIBGL_DRIVERS_PATH
+export PERL5LIB
 export QT_PLUGIN_PATH
 
 exec "$OCTAVE_HOME/bin/@PROGRAM_NAME@-@OCTAVE_VERSION@.real" "$@"
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/build-perl.mk	Thu Apr 19 17:21:35 2018 -0400
@@ -0,0 +1,25 @@
+# This file is part of MXE.
+# See index.html for further information.
+
+PKG             := build-perl
+$(PKG)_IGNORE   :=
+$(PKG)_VERSION  := 5.26.1
+$(PKG)_CHECKSUM := 
+$(PKG)_SUBDIR   := perl-$($(PKG)_VERSION)
+$(PKG)_FILE     := perl-$($(PKG)_VERSION).tar.gz
+$(PKG)_URL      := http://www.cpan.org/src/5.0/$($(PKG)_FILE)
+
+$(PKG)_DEPS     := 
+
+ifeq ($(MXE_WINDOWS_BUILD),yes)
+  define $(PKG)_BUILD
+  endef
+else
+  define $(PKG)_BUILD
+    cd '$(1)' && $($(PKG)_CONFIGURE_ENV) './Configure' -s -d -e -Dprefix='$(HOST_PREFIX)' \
+        -D $(CONFIGURE_CPPFLAGS) -D $(CONFIGURE_LDFLAGS) \
+        && $(CONFIGURE_POST_HOOK)
+
+    $(MAKE) -C '$(1)' -j '$(JOBS)' install DESTDIR='$(3)'
+  endef
+endif