mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
74 lines
1.8 KiB
Bash
74 lines
1.8 KiB
Bash
SUMMARY="Build external dependencies for use in CPAN"
|
|
DESCRIPTION="This module provides tools for building external (non-CPAN) dependencies for CPAN. \
|
|
It is mainly designed to be used at install time of a CPAN client, and work closely with \
|
|
Alien::Base which is used at runtime."
|
|
HOMEPAGE="https://metacpan.org/pod/Alien::Build"
|
|
COPYRIGHT="2011-2022 by Graham Ollis"
|
|
LICENSE="Artistic"
|
|
REVISION="2"
|
|
SOURCE_URI="https://cpan.metacpan.org/authors/id/P/PL/PLICEASE/Alien-Build-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="8e891fd3acbac39dd8fdc01376b9abff931e625be41e0910ca30ad59363b4477"
|
|
SOURCE_DIR="Alien-Build-$portVersion"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
# This package doesn't provide a normal suffix-less version on secondaryArch because it calls
|
|
# pkg-config at runtime. Using it in an "any" recipe would call the wrong version on x86. For
|
|
# Alien::Build plugins use 'alien_build_plugin'. For runtime dependencies of downstream packages,
|
|
# use 'alien_base'.
|
|
PROVIDES="
|
|
alien_build$secondaryArchSuffix = $portVersion
|
|
alien_base = $portVersion
|
|
alien_build_plugin = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
capture_tiny
|
|
ffi_checklib
|
|
file_chdir
|
|
file_which
|
|
path_tiny
|
|
vendor_perl
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
file_which
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:make
|
|
cmd:perl
|
|
"
|
|
|
|
TEST_REQUIRES="
|
|
capture_tiny
|
|
ffi_checklib
|
|
file_chdir
|
|
path_tiny
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
perl Makefile.PL PREFIX=$prefix
|
|
make
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make pure_install
|
|
|
|
# remove architecture-specific files (this would be an "any" arch package,
|
|
# but it isn't because of pkg-config, see above)
|
|
cd $prefix
|
|
rm -r $(perl -V:vendorarch | cut -d\' -f2 | cut -d/ -f5-)
|
|
# cut extracts the quoted string and strips the prefix (which is perl's and not ours)
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make test
|
|
}
|