Files
haikuports/dev-libs/nfd/nfd-1.0.recipe
waddlesplash 4f180bdb94 Utilize the new "all" ARCHITECTURES keyword in most recipes. (#6189)
x86_64 is used as a baseline: the "x86_64" entry, whatever status it has,
is transformed into "all", and then the other entries in ARCHITECTURES
either dropped or rearranged appropriately.
2021-09-15 15:40:18 -04:00

46 lines
854 B
Bash

SUMMARY="Native File Dialog"
DESCRIPTION="A tiny, neat C library that portably invokes native file open and \
save dialogs."
HOMEPAGE="https://www.frogtoss.com"
COPYRIGHT="2014 Frogtoss Games"
LICENSE="Zlib-generic"
REVISION="4"
SOURCE_URI="https://github.com/puckipedia/nativefiledialog/archive/39ecf6a1.zip"
CHECKSUM_SHA256="6c4eff1c0d5f2d3165192710cb1c844ec9e63d4fe7c4e2238cf5c6ddcb0da648"
SOURCE_DIR="nativefiledialog-39ecf6a1d8c8cfa3a6f1c6795765911245809833"
ARCHITECTURES="all"
PROVIDES="
nfd = $portVersion
devel:libnfd = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
"
BUILD_PREREQUIRES="
cmd:gcc
cmd:scons
"
BUILD()
{
cd src/
scons debug=0
}
INSTALL()
{
cd src/
mkdir -p $libDir
cp libnfd.a $libDir/libnfd.a
cd include/
mkdir -p $includeDir
cp ./nfd.h $includeDir/nfd.h
prepareInstalledDevelLib libnfd
}