summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-06-16 21:59:00 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2014-06-16 21:59:10 +0200
commit77ba10826a6c8387db4921b86548824b31840003 (patch)
treefb9755fc2ad8a1a12a5e05f888f9550af3ea1132 /mk
parent09cd05404a941c07e5c9e16c38d3e0079661abba (diff)
fix p5-xml-parser package, add basic perl module infrastructure (based on buildroot perl stuff)
Diffstat (limited to 'mk')
-rw-r--r--mk/perl.mk17
-rw-r--r--mk/pkg-bottom.mk7
2 files changed, 23 insertions, 1 deletions
diff --git a/mk/perl.mk b/mk/perl.mk
index 34b4742f9..dc16bcb00 100644
--- a/mk/perl.mk
+++ b/mk/perl.mk
@@ -1,2 +1,17 @@
PERL_VERSION=5.18.1
-PERL_SITEDIR:=/usr/lib/perl5/site_perl/$(PERL_VERSION)/$(ADK_TARGET_CPU_ARCH)-linux
+PERL_ARCHNAME:=$(ADK_TARGET_CPU_ARCH)-linux
+PERL_SITEDIR:=/usr/lib/perl5/site_perl/$(PERL_VERSION)
+PERL_ENV:= AR="$(TARGET_AR)" \
+ FULL_AR="$(TARGET_AR)" \
+ CC="$(TARGET_CC)" \
+ CCFLAGS="$(TARGET_CFLAGS)" \
+ LD="$(TARGET_CC)" \
+ LDDLFLAGS="-shared $(TARGET_LDFLAGS)" \
+ LDFLAGS="$(TARGET_LDFLAGS)" \
+ PERL_INC=$(STAGING_TARGET_DIR)/usr/lib/perl5/$(PERL_VERSION)/$(PERL_ARCHNAME)/CORE \
+ DESTDIR=$(WRKINST) \
+ INSTALLDIRS=vendor \
+ INSTALLVENDORLIB=$(PERL_SITEDIR) \
+ INSTALLVENDORARCH=$(PERL_SITEDIR)/$(PERL_ARCHNAME) \
+ INSTALLVENDORBIN=/usr/bin \
+ INSTALLVENDORSCRIPT=/usr/bin
diff --git a/mk/pkg-bottom.mk b/mk/pkg-bottom.mk
index 2972ffcfe..cc17c1202 100644
--- a/mk/pkg-bottom.mk
+++ b/mk/pkg-bottom.mk
@@ -53,6 +53,13 @@ else ifneq ($(filter minimal,${CONFIG_STYLE}),)
env ${CONFIGURE_ENV} \
${BASH} ${WRKSRC}/${CONFIGURE_PROG} \
${CONFIGURE_ARGS} $(MAKE_TRACE)
+else ifneq ($(filter perl,${CONFIG_STYLE}),)
+ @$(CMD_TRACE) "configuring perl module... "
+ cd ${WRKBUILD}; \
+ PATH='${HOST_PATH}' \
+ PERL_MM_USE_DEFAULT=1 \
+ PERL_AUTOINSTALL=--skipdeps \
+ perl Makefile.PL $(PERL_ENV)
else ifeq ($(strip ${CONFIG_STYLE}),)
@$(CMD_TRACE) "configuring... "
cd ${WRKBUILD}; rm -f config.{cache,status}; \