mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
21 lines
639 B
Plaintext
21 lines
639 B
Plaintext
name=perl
|
|
revision=1
|
|
from_source=perl
|
|
imagedeps="build-essential"
|
|
hostdeps="xgcc xbinutils perl-cross"
|
|
deps="base bzip2 libxcrypt zlib libintl gettext"
|
|
|
|
configure() {
|
|
cp -rp ${source_dir}/* .
|
|
cp -rp /usr/local/share/perl-cross/* .
|
|
CFLAGS="${CFLAGS} -DNO_LOCALE -Wno-error=implicit-function-declaration" ./configure --target=x86_64-astral --prefix=${prefix} -Dvendorprefix=${prefix} --target-tools-prefix=x86_64-astral- --mode=cross --targetarch=x86_64-astral --sysroot=${sysroot_dir}
|
|
}
|
|
|
|
build() {
|
|
CFLAGS="${CFLAGS} -DNO_LOCALE" make #-j${parallelism}
|
|
}
|
|
|
|
package() {
|
|
CFLAGS="${CFLAGS} -DNO_LOCALE" make install DESTDIR="${dest_dir}"
|
|
}
|