GLUED: renamed packages to rules, cfg_dir_packages to cfg_dir_rules.
This commit is contained in:
59
rules/perl/default.bash
Normal file
59
rules/perl/default.bash
Normal file
@@ -0,0 +1,59 @@
|
||||
version=\
|
||||
(
|
||||
'5.10.0'
|
||||
)
|
||||
|
||||
url=\
|
||||
(
|
||||
"http://www.cpan.org/src/5.0/perl-$version.tar.gz"
|
||||
)
|
||||
|
||||
md5=\
|
||||
(
|
||||
'd2c39b002ebfd2c3c5dba589365c5a71'
|
||||
)
|
||||
|
||||
maintainer=\
|
||||
(
|
||||
'Ricardo Martins <rasm@fe.up.pt>'
|
||||
)
|
||||
|
||||
post_unpack()
|
||||
{
|
||||
chmod -v 644 Makefile.SH &&
|
||||
chmod -v 644 utils/Makefile.SH
|
||||
|
||||
patches=$(ls "$cfg_package_spec_dir"/patches-${version}/*.patch)
|
||||
if [ -n "$patches" ]; then
|
||||
cat $patches | patch -p1
|
||||
fi
|
||||
|
||||
sed 's/libs = $perllibs $cryptlib/libs = $perllibs $cryptlib -lm/g' Makefile.SH -i &&
|
||||
$cmd_cp -v Makefile.SH{,.orig} &&
|
||||
sed -e "s@pldlflags=''@pldlflags=\"\$cccdlflags\"@g" \
|
||||
-e "s@static_target='static'@static_target='static_pic'@g" Makefile.SH.orig > Makefile.SH
|
||||
}
|
||||
|
||||
build()
|
||||
{
|
||||
export CC="$cfg_target_canonical-gcc"
|
||||
export CXX="$cfg_target_canonical-g++"
|
||||
export AR="$cfg_target_canonical-ar"
|
||||
export AS="$cfg_target_canonical-as"
|
||||
export RANLIB="$cfg_target_canonical-ranlib"
|
||||
export LD="$cfg_target_canonical-ld"
|
||||
export STRIP="$cfg_target_canonical-strip"
|
||||
export HOSTCC="$cmd_host_cc"
|
||||
|
||||
|
||||
cd Cross &&
|
||||
$cmd_make ARCH=$cfg_target_linux CROSS_COMPILE="$cfg_target_canonical-"
|
||||
}
|
||||
|
||||
target_install()
|
||||
{
|
||||
$cmd_target_strip libperl.so &&
|
||||
$cmd_make DESTDIR="$cfg_dir_rootfs" install &&
|
||||
sed "s%/usr/lib/perl5/%$cfg_dir_rootfs/usr/lib/perl5/%g" \
|
||||
"$cfg_dir_rootfs/usr/lib/perl5/5.10.0/"*-linux-thread-multi/Config.pm -i
|
||||
}
|
5608
rules/perl/patches-5.10.0/000-cross-compile.patch
Normal file
5608
rules/perl/patches-5.10.0/000-cross-compile.patch
Normal file
File diff suppressed because it is too large
Load Diff
28
rules/perl/patches-5.10.0/001-generate-uudmap.patch
Normal file
28
rules/perl/patches-5.10.0/001-generate-uudmap.patch
Normal file
@@ -0,0 +1,28 @@
|
||||
diff -Nru perl-5.10.0.ori/Makefile.SH perl-5.10.0/Makefile.SH
|
||||
--- perl-5.10.0.ori/Makefile.SH 2011-02-26 16:03:47.000000000 +0000
|
||||
+++ perl-5.10.0/Makefile.SH 2011-02-26 16:14:31.000000000 +0000
|
||||
@@ -481,8 +481,8 @@
|
||||
uudmap.h: generate_uudmap\$(EXE_EXT)
|
||||
\$(RUN) ./generate_uudmap\$(EXE_EXT) >uudmap.h
|
||||
|
||||
-generate_uudmap\$(EXE_EXT): generate_uudmap\$(OBJ_EXT)
|
||||
- \$(CC) -o generate_uudmap \$(LDFLAGS) generate_uudmap\$(OBJ_EXT) \$(libs)
|
||||
+generate_uudmap\$(EXE_EXT):
|
||||
+ \$(HOSTCC) -o generate_uudmap \$(LDFLAGS) generate_uudmap.c \$(libs)
|
||||
|
||||
!GROK!THIS!
|
||||
$spitshell >>Makefile <<'!NO!SUBS!'
|
||||
@@ -919,11 +919,11 @@
|
||||
INSTALL_DEPENDENCE = all
|
||||
|
||||
install.perl: $(INSTALL_DEPENDENCE) installperl
|
||||
- $(LDLIBPTH) $(RUN) ./perl installperl --destdir=$(DESTDIR) $(INSTALLFLAGS) $(STRIPFLAGS)
|
||||
+ $(LDLIBPTH) $(RUN) ./miniperl-cross installperl --destdir=$(DESTDIR) $(INSTALLFLAGS) $(STRIPFLAGS)
|
||||
-@test ! -s extras.lst || $(MAKE) extras.install
|
||||
|
||||
install.man: all installman
|
||||
- $(LDLIBPTH) $(RUN) ./perl installman --destdir=$(DESTDIR) $(INSTALLFLAGS)
|
||||
+ $(LDLIBPTH) $(RUN) echo installman --destdir=$(DESTDIR) $(INSTALLFLAGS)
|
||||
|
||||
# XXX Experimental. Hardwired values, but useful for testing.
|
||||
# Eventually Configure could ask for some of these values.
|
12
rules/perl/patches-5.10.0/002-miniperl-cross.patch
Normal file
12
rules/perl/patches-5.10.0/002-miniperl-cross.patch
Normal file
@@ -0,0 +1,12 @@
|
||||
diff -Nru perl-5.10.0.ori/utils/Makefile.SH perl-5.10.0/utils/Makefile.SH
|
||||
--- perl-5.10.0.ori/utils/Makefile.SH 2007-12-18 10:47:08.000000000 +0000
|
||||
+++ perl-5.10.0/utils/Makefile.SH 2011-02-26 16:30:24.000000000 +0000
|
||||
@@ -28,7 +28,7 @@
|
||||
rm -f Makefile
|
||||
cat >Makefile <<!GROK!THIS!
|
||||
|
||||
-PERL = ../miniperl
|
||||
+PERL = ../miniperl-cross
|
||||
REALPERL = ../perl
|
||||
RUN = $run # Used mainly cross-compilation setups.
|
||||
|
Reference in New Issue
Block a user