summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-11-24 09:49:16 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-11-24 09:49:16 +0000
commit35561e74c549c4b65a19fd52b8845b9427b5fc48 (patch)
tree6184299fddb17f9dce6e8932dd6c738927ebb23e
parentcbb32d16c4aae19ba65df6e0a16bfd2ca433c634 (diff)
- fix microperl uconfig and pass the target cflags in properly.
-rw-r--r--package/microperl/microperl.mk23
1 files changed, 18 insertions, 5 deletions
diff --git a/package/microperl/microperl.mk b/package/microperl/microperl.mk
index c9dc955a7..cab17811a 100644
--- a/package/microperl/microperl.mk
+++ b/package/microperl/microperl.mk
@@ -3,7 +3,8 @@
# microperl
#
#############################################################
-MICROPERL_VER=5.8.8
+MICROPERL_MAJ=5
+MICROPERL_VER=$(MICROPERL_MAJ).8.8
MICROPERL_SOURCE=perl-$(MICROPERL_VER).tar.bz2
MICROPERL_CAT:=$(BZCAT)
MICROPERL_SITE=ftp://ftp.cpan.org/pub/CPAN/src/5.0
@@ -14,10 +15,22 @@ $(DL_DIR)/$(MICROPERL_SOURCE):
$(MICROPERL_DIR)/.source: $(DL_DIR)/$(MICROPERL_SOURCE)
$(MICROPERL_CAT) $(DL_DIR)/$(MICROPERL_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
- touch $(MICROPERL_DIR)/.source
-
-$(MICROPERL_DIR)/microperl: $(MICROPERL_DIR)/.source
- $(MAKE) -f Makefile.micro CC=$(TARGET_CC) -C $(MICROPERL_DIR)
+ touch $@
+
+$(MICROPERL_DIR)/.configured: $(MICROPERL_DIR)/.source
+ (cd $(MICROPERL_DIR) ; chmod u+w uconfig.h ; . ./uconfig.sh ; \
+ make -f Makefile.micro regen_uconfig ; \
+ $(SED) \
+ 's,PRIVLIB ".*,PRIVLIB "/usr/lib/perl$(MICROPERL_MAJ)/$(MICROPERL_VER)",' \
+ -e 's,PRIVLIB_EXP ".*,PRIVLIB_EXP "/usr/lib/perl$(MICROPERL_MAJ)/$(MICROPERL_VER)",' \
+ -e 's,BIN ".*,BIN "/usr/bin",' \
+ ./uconfig.h ; \
+ )
+ touch $@
+
+$(MICROPERL_DIR)/microperl: $(MICROPERL_DIR)/.configured
+ $(MAKE) -f Makefile.micro CC=$(TARGET_CC) \
+ OPTIMIZE="$(TARGET_CFLAGS)" -C $(MICROPERL_DIR)
$(TARGET_DIR)/usr/bin/microperl: $(MICROPERL_DIR)/microperl
cp -dpf $(MICROPERL_DIR)/microperl $(TARGET_DIR)/usr/bin/microperl