summaryrefslogtreecommitdiff
path: root/repo/system/perl.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-03-01 21:25:54 +0000
committerdavidovski <david@davidovski.xyz>2022-03-01 21:25:54 +0000
commite8213fac46bfcb8068a883cb88b2bb1587f190f9 (patch)
tree8ec5946d18961404efb12700267e10cffffa6db7 /repo/system/perl.xibuild
parent79c82d8fc0a4f6618429a0373bb832afd105543e (diff)
made packages work with musl
Diffstat (limited to 'repo/system/perl.xibuild')
-rw-r--r--repo/system/perl.xibuild31
1 files changed, 27 insertions, 4 deletions
diff --git a/repo/system/perl.xibuild b/repo/system/perl.xibuild
index ac52519..821a1f5 100644
--- a/repo/system/perl.xibuild
+++ b/repo/system/perl.xibuild
@@ -1,7 +1,7 @@
#!/bin/sh
-MAKEDEPS="make"
-DEPS="gdbm musl libxcrypt bzip2 zlib"
+MAKEDEPS="make sed"
+DEPS="gdbm musl bzip2 zlib tar"
PKG_VER=5.34.0
SOURCE=https://www.cpan.org/src/5.0/perl-$PKG_VER.tar.gz
@@ -10,12 +10,34 @@ DESC="The Practical Extraction and Report Language"
prepare () {
export BUILD_ZLIB=False
export BUILD_BZIP2=0
+ export CF_OLD=$CFLAGS
+ export CFLAGS+=" -DNO_POSIX_2008_LOCALE"
+ export CFLAGS+=" -D_GNU_SOURCE"
- sh Configure -des -Dprefix=/usr -Dlibs=-lm -Uloclibpth -Ulocincpth
+ rm -rf cpan/Compress-Raw-Zlib/zlib-src
+ sed -i '/\(bzip2\|zlib\)-src/d' MANIFEST
+
+ rm -rf cpan/Compress-Raw-Bzip2/bzip2-src
+ sed -i '/\(bzip2\|zzz\)-src/d' MANIFEST
+
+ sh Configure -des -Dprefix=/usr \
+ -Dvendorprefix=/usr \
+ -Dprivlib=/usr/lib/perl5/5.34/core_perl \
+ -Darchlib=/usr/lib/perl5/5.34/core_perl \
+ -Dsitelib=/usr/lib/perl5/5.34/site_perl \
+ -Dsitearch=/usr/lib/perl5/5.34/site_perl \
+ -Dvendorlib=/usr/lib/perl5/5.34/vendor_perl \
+ -Dvendorarch=/usr/lib/perl5/5.34/vendor_perl \
+ -Dman1dir=/usr/share/man/man1 \
+ -Dman3dir=/usr/share/man/man3 \
+ -Dpager="/usr/bin/less -isR" \
+ -Duseshrplib \
+ -Dusethreads \
+ -Dcccdlflags='-fPIC' -Dccdlflags='-rdynamic'
}
build () {
- make
+ make
}
check () {
@@ -27,3 +49,4 @@ package () {
for f in $(find /export -maxdepth 1 -type f); do echo $f; rm $f; done
unset BUILD_ZLIB BUILD_BZIP2
}
+