From d6e9bda7d1dc21655d5ef29e34c29ec20c28fbf3 Mon Sep 17 00:00:00 2001 From: hometue Date: Fri, 22 Jan 2016 18:03:48 +0800 Subject: [PATCH] Add recipe for Native File Dialog --- dev-libs/nfd/licenses/Zlib-generic | 16 +++++++++++ dev-libs/nfd/nfd-1.0.recipe | 44 ++++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 dev-libs/nfd/licenses/Zlib-generic create mode 100644 dev-libs/nfd/nfd-1.0.recipe diff --git a/dev-libs/nfd/licenses/Zlib-generic b/dev-libs/nfd/licenses/Zlib-generic new file mode 100644 index 000000000..3ab103c55 --- /dev/null +++ b/dev-libs/nfd/licenses/Zlib-generic @@ -0,0 +1,16 @@ +This software is provided 'as-is', without any express or implied +warranty. In no event will the authors be held liable for any damages +arising from the use of this software. + +Permission is granted to anyone to use this software for any purpose, +including commercial applications, and to alter it and redistribute it +freely, subject to the following restrictions: + +1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software + in a product, an acknowledgment in the product documentation would be + appreciated but is not required. +2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. +3. This notice may not be removed or altered from any source distribution. + diff --git a/dev-libs/nfd/nfd-1.0.recipe b/dev-libs/nfd/nfd-1.0.recipe new file mode 100644 index 000000000..bab13a3e0 --- /dev/null +++ b/dev-libs/nfd/nfd-1.0.recipe @@ -0,0 +1,44 @@ +SUMMARY="Native File Dialog" +DESCRIPTION="A tiny, neat C library that portably invokes native file open and \ +save dialogs." +HOMEPAGE="www.frogtoss.com" +COPYRIGHT="2014 Frogtoss Games" +LICENSE="Zlib-generic" +REVISION="1" +SOURCE_URI="https://github.com/puckipedia/nativefiledialog/archive/39ecf6a1.zip" +CHECKSUM_SHA256="6c4eff1c0d5f2d3165192710cb1c844ec9e63d4fe7c4e2238cf5c6ddcb0da648" +SOURCE_DIR="nativefiledialog-39ecf6a1d8c8cfa3a6f1c6795765911245809833" + +ARCHITECTURES="x86_gcc2 ?x86 ?x86_64" + +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 +}