blob: 53655708e4e26f27aba42b8be413f1f73ee33906 (
plain)
1
2
3
4
5
6
7
8
9
10
|
pkg:extract
VERSION="$(cat "${PKG_DATA}/_metadata/version")"
cp -af perl-cross*/. perl-5*/
cd perl-5*/
pkg:patch
PREFIX="$(cat "${PKG_BASE}/arch/${PKG_ARCH}/${PKG_CFTARG}/prefix")"
CFLAGS='-DPERL_DARWIN' ./configure --build="$(${PKG_BASE}/util/config.guess)" --target="${PKG_TARG}" --prefix="${PREFIX}" -Duseshrplib -Dusevendorprefix --vendorprefix="${PREFIX}" -Dusethreads \
-Dvendorlib="${PREFIX}/share/perl5" -Dvendorarch="${PREFIX}/lib/perl5/${VERSION}"
make -j16
make install.perl DESTDIR="${PKG_DEST}"
|