mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-21 19:20:08 +02:00
59 lines
1.6 KiB
Bash
59 lines
1.6 KiB
Bash
SUMMARY="A cross-platform build utility based on Lua"
|
|
DESCRIPTION="What is Xmake?
|
|
1. Xmake is a cross-platform build utility based on the Lua scripting language.
|
|
2. Xmake is very lightweight and has no dependencies outside of the standard library.
|
|
3. Uses the \`xmake.lua\` file to maintain project builds with a simple and readable syntax.
|
|
Xmake can be used to directly build source code (like with Make or Ninja), or it can generate \
|
|
project source files like CMake or Meson. It also has a built-in package management system to help \
|
|
users integrate C/C++ dependencies."
|
|
HOMEPAGE="https://xmake.io/"
|
|
COPYRIGHT="2015-present TBOOX Open Source Group"
|
|
LICENSE="Apache v2"
|
|
REVISION="1"
|
|
SOURCE_URI="https://github.com/xmake-io/xmake/releases/download/v$portVersion/xmake-v$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="a31dbef8c303aea1268068b4b1ac1aec142ac4124c7cb7d9c7eeb57c414f8d15"
|
|
PATCHES="xmake-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
xmake$secondaryArchSuffix = $portVersion
|
|
cmd:xmake = $portVersion
|
|
cmd:xrepo = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libatomic$secondaryArchSuffix
|
|
lib:libncurses$secondaryArchSuffix >= 6
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libatomic$secondaryArchSuffix
|
|
devel:libncurses$secondaryArchSuffix >= 6
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:awk
|
|
cmd:find
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
runConfigure ./configure --omit-dirs binDir \
|
|
--bindir=$prefix/bin
|
|
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
mv -f $prefix/share $prefix/data
|
|
}
|