repo/core/perl/build

46 lines
1.1 KiB
Plaintext
Raw Normal View History

2019-05-14 20:05:50 +00:00
#!/bin/sh -e
2019-05-13 14:32:56 +00:00
2019-08-30 18:54:18 +00:00
export BUILD_ZLIB=0
export BUILD_BZIP2=0
2019-09-04 15:24:07 +00:00
export CFLAGS="$CFLAGS -DNO_POSIX_2008_LOCALE"
2019-05-10 15:16:22 +00:00
./Configure \
-des \
-Dcccdlflags='-fPIC' \
-Dcccdlflags='-fPIC' \
-Dccdlflags='-rdynamic' \
-Dprefix=/usr \
-Dprivlib=/usr/share/perl5/core_perl \
-Darchlib=/usr/lib/perl5/core_perl \
-Dvendorprefix=/usr \
-Dvendorlib=/usr/share/perl5/vendor_perl \
-Dvendorarch=/usr/lib/perl5/vendor_perl \
-Dsiteprefix=/usr/local \
-Dsitelib=/usr/local/share/perl5/site_perl \
-Dsitearch=/usr/local/lib/perl5/site_perl \
-Dlocincpth=' ' \
-Doptimize="$CFLAGS" \
-Duselargefiles \
-Dusethreads \
-Duseshrplib \
-Dd_semctl_semun \
-Dman1dir=/usr/share/man/man1 \
-Dman3dir=/usr/share/man/man3 \
-Dinstallman1dir=/usr/share/man/man1 \
-Dinstallman3dir=/usr/share/man/man3 \
-Dman1ext='1' \
-Dman3ext='3pm' \
-Dcf_by='KISS' \
-Ud_csh \
-Dusenm
make
make DESTDIR="$1" install
2019-06-19 12:22:24 +00:00
2019-08-30 18:54:18 +00:00
# Remove all .pod/packlist files.
find "$1" -name "*.pod" -delete
2019-06-19 12:22:24 +00:00
find "$1" -name .packlist -delete
2019-08-30 18:54:18 +00:00
# Remove all documentation.
rm -rf "$1/usr/share/man"