2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-11-16 03:30:23 -07:00
repo/extra/perl/build

44 lines
1.1 KiB
Plaintext
Raw Normal View History

2019-05-14 14:05:50 -06:00
#!/bin/sh -e
2019-05-13 08:32:56 -06:00
2019-08-30 12:54:18 -06:00
export BUILD_ZLIB=0
export BUILD_BZIP2=0
2019-09-06 09:32:21 -06:00
export LDFLAGS="$LDFLAGS -pthread"
export CFLAGS="$CFLAGS -DNO_POSIX_2008_LOCALE -D_GNU_SOURCE"
2019-05-10 09:16:22 -06:00
./Configure \
-des \
-Dprefix=/usr \
-Dvendorprefix=/usr \
2019-09-06 09:32:21 -06:00
-Dusevendorprefix \
2019-05-10 09:16:22 -06:00
-Duseshrplib \
2019-09-06 09:32:21 -06:00
-Dusesoname \
-Dusethreads \
-Dinc_version_list=none \
-Dd_sockaddr_in6=define \
-Dcccdlflags=-fPIC \
-Dccflags="$CFLAGS" \
-Dlddlflags="-shared $LDFLAGS" \
-Dldflags="$LDFLAGS" \
-Doptimize="-Wall $CFLAGS" \
2020-02-11 23:51:48 -07:00
-Dcc="${CC:-cc}" \
2019-10-08 12:51:31 -06:00
-Dar="${AR:-ar}" \
-Dnm="${NM:-nm}" \
-Dranlib="${RANLIB:-ranlib}" \
2020-02-11 23:51:48 -07:00
-Dperl_static_inline="static __inline__" \
2019-09-06 09:32:21 -06:00
-Dd_static_inline
2019-05-10 09:16:22 -06:00
make
make DESTDIR="$1" install
2019-06-19 06:22:24 -06:00
2019-09-06 09:32:21 -06:00
# Remove all unneeded files.
2020-03-27 03:51:24 -06:00
find "$1" -name \*.pod -exec rm -f {} +
find "$1" -name .packlist -exec rm -f {} +
find "$1" -name README\* -exec rm -f {} +
find "$1" -name TODO\* -exec rm -f {} +
find "$1" -name Change\* -exec rm -f {} +
find "$1" -name \*.bs -exec rm -f {} +
find "$1" -name \*.0 -type f -exec rm -f {} +
2019-09-08 07:13:59 -06:00
# Fix permissions.
find "$1/usr/lib" -type f -exec chmod 644 {} \;