smlinux/base/perl/perl.SMBuild
PktSurf ced90762d9 Added preservestaticlibs variable in addition to converting base/curl's tarball to lzip format
Upgraded base/eudev to 3.2.11
Removed double quotes in mversion variable in base/faad2
Only copy LICENSE to base/libical
Upgraded base/lzip to 1.23 in addition to adding CXXFLAGS variable
Upgraded base/lzlib to 1.13 in addition to adding CFLAGS variable
Upgraded meson 0.63.2
Discarded CFLAGS and LDFLAGS variables and disabled building of static libraries in base/mpfr, converted source to lzip and updated SHA512 checksums
Uncommented fixbuilddirpermissions function call in base/mtools
Fixed code for compiling getconf, getent and iconv binaries in base/musl
Added subshell to compile library in base/nghttp2
Added OPTFLAGS and fixed miscellaneous code in base/p7zip
Added CFLAGS as an argument to make in base/pigz
Added CXXFLAGS as an argument to configure in base/plzip
Upgraded base/qpdf to 11.1.0
Only copy LICENSE to base/sed
Upgraded base/tarlz to 0.23
2022-10-04 20:35:22 +05:30

65 lines
1.8 KiB
Text
Executable file

app=perl
version=5.24.3
build=1sml
homepage="https://www.perl.org/"
download="https://www.cpan.org/src/5.0/perl-$version.tar.xz"
desc="High-level, general-purpose, interpreted, dynamic programming language"
requires="db"
build() {
mkandenterbuilddir
rm -rf $app-$version
tar xf $srcdir/$app-$version.tar.?z*
cd $app-$version
fixbuilddirpermissions
# /usr/local/include directory, if it contains any headers,
# might interfere with the compile because our GCC toolchain looks into that directory, in which case we abort.
if [ -d /usr/local/include ] ; then
echo "/usr/local/include directory may cause this perl compilation to fail. Kindly remove it. Aborting!"
exit 1
fi
sed '1i#define PERL_BUILD_DATE "01.01.18 00:00:00"' -i perl.c
sed -e 's;myuname=`$u;myuname="linux host" #`$u;' \
-e 's;cf_time=`;cf_time="01.01.18 00:00:00" #`;' \
-e 's;cf_by=`;cf_by=user #`;' \
-e "s;^myhostname='';myhostname=host;" \
-e "s;^phostname='';phostname=host;" \
-i Configure
sed -i 's,-fstack-protector,-fnostack-protector,g' ./Configure
./Configure -des \
-Accflags='$CFLAGS -D_BSD_SOURCE' \
-Dprefix="/" \
-Dvendorprefix="/" \
-Dsitelib="/lib/perl5/site_perl" \
-Dsitearch="/lib/perl5/site_perl" \
-Darchlib="/lib/perl5/core_perl" \
-Dprivlib="/lib/perl5/core_perl" \
-Dvendorlib="/lib/perl5/vendor_perl" \
-Dvendorarch="/lib/perl5/vendor_perl" \
-Dscriptdir='/bin' \
-Dbin='/bin' \
-Duseshrplib \
-Dusethreads \
-Ubincompat5005 \
-Uversiononly \
-Dcc="$CC"
make
make install DESTDIR=$pkg
rm -f $pkg/*.0
cp Artistic $pkgdocs/LICENSE
mkfinalpkg
}
sha512sums="
330bbcd4bc8fc25dd84f9170f8b56450fa3ab4cdd6f39ab85fbfc4b9b8b47c130f312839189f45e6e2d7ca557524a3ee2cbd06f4aeb3ac96b4dd4f70b466cec6 perl-5.24.3.tar.lz
"