|
@@ -12,6 +12,37 @@ PERL_CMD:=$(STAGING_DIR_HOST)/usr/bin/perl5.20.0
|
12
|
12
|
# Module install prefix
|
13
|
13
|
PERL_SITELIB:=/usr/lib/perl5/5.20
|
14
|
14
|
|
|
15
|
+define perlmod/host/relink
|
|
16
|
+ rm -f $(1)/Makefile.aperl
|
|
17
|
+ $(MAKE) -C $(1) perl
|
|
18
|
+ $(CP) $(1)/perl $(PERL_CMD)
|
|
19
|
+ $(CP) $(1)/perl $(STAGING_DIR_HOST)/usr/bin/perl
|
|
20
|
+endef
|
|
21
|
+
|
|
22
|
+define perlmod/host/Configure
|
|
23
|
+ (cd $(HOST_BUILD_DIR); \
|
|
24
|
+ PERL_MM_USE_DEFAULT=1 \
|
|
25
|
+ $(2) \
|
|
26
|
+ $(PERL_CMD) Makefile.PL \
|
|
27
|
+ $(1) \
|
|
28
|
+ );
|
|
29
|
+endef
|
|
30
|
+
|
|
31
|
+define perlmod/host/Compile
|
|
32
|
+ $(2) \
|
|
33
|
+ $(MAKE) -C $(HOST_BUILD_DIR) \
|
|
34
|
+ $(1) \
|
|
35
|
+ install
|
|
36
|
+endef
|
|
37
|
+
|
|
38
|
+define perlmod/host/Install
|
|
39
|
+ $(2) \
|
|
40
|
+ $(MAKE) -C $(HOST_BUILD_DIR) \
|
|
41
|
+ $(1) \
|
|
42
|
+ install
|
|
43
|
+ $(call perlmod/host/relink,$(HOST_BUILD_DIR))
|
|
44
|
+endef
|
|
45
|
+
|
15
|
46
|
define perlmod/Configure
|
16
|
47
|
(cd $(PKG_BUILD_DIR); \
|
17
|
48
|
PERL_MM_USE_DEFAULT=1 \
|