From b07cecc9e78022261e8ae4b5f9dcef7a3702a2fe Mon Sep 17 00:00:00 2001 From: Theodore Kokkoris Date: Sun, 8 Dec 2013 13:05:03 +0000 Subject: [PATCH 1/4] Added libsanta recipe --- haiku-libs/libsanta/libsanta-0.0.1.recipe | 54 +++++++++++++++++++++++ haiku-libs/libsanta/licenses/libsanta | 12 +++++ 2 files changed, 66 insertions(+) create mode 100644 haiku-libs/libsanta/libsanta-0.0.1.recipe create mode 100644 haiku-libs/libsanta/licenses/libsanta diff --git a/haiku-libs/libsanta/libsanta-0.0.1.recipe b/haiku-libs/libsanta/libsanta-0.0.1.recipe new file mode 100644 index 000000000..c53b5ce53 --- /dev/null +++ b/haiku-libs/libsanta/libsanta-0.0.1.recipe @@ -0,0 +1,54 @@ +SUMMARY="Custom widget library" +DESCRIPTION="libsanta has some useful custom widgets." +HOMEPAGE="https://github.com/HaikuArchives/SantasGiftBag" +COPYRIGHT="briant@timelinevista.com" +LICENSE="libsanta" +SRC_URI="git+https://github.com/HaikuArchives/SantasGiftBag#59b17aa" +REVISION="1" +ARCHITECTURES="x86_gcc2 ?x86 ?x86_64" +SECONDARY_ARCHITECTURES="x86_gcc2 ?x86" + +PROVIDES=" + libsanta$secondaryArchSuffix = $portVersion + lib:libsanta$secondaryArchSuffix = $portVersion + " + +REQUIRES=" + haiku$secondaryArchSuffix >= $haikuVersion + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel >= $haikuVersion + " +BUILD_PREREQUIRES=" + makefile_engine + cmd:gcc$secondaryArchSuffix + cmd:ld$secondaryArchSuffix + cmd:make + " + +BUILD() +{ + make BUILDHOME=`finddir B_SYSTEM_DEVELOP_DIRECTORY` +} + +INSTALL() +{ + mkdir -p $developLibDir + + cd objects.x86-gcc2-release + cp libsanta.a $developLibDir + + packageEntries devel \ + $developLibDir +} + +# ----- devel package ------------------------------------------------------- + +PROVIDES_devel=" + libsanta${secondaryArchSuffix}_devel = $portVersion + libsanta$secondaryArchSuffix = $portVersion + " +REQUIRES_devel=" + libsanta$secondaryArchSuffix == $portVersion base + " diff --git a/haiku-libs/libsanta/licenses/libsanta b/haiku-libs/libsanta/licenses/libsanta new file mode 100644 index 000000000..a528e5e41 --- /dev/null +++ b/haiku-libs/libsanta/licenses/libsanta @@ -0,0 +1,12 @@ +License + +The source code, object code, libraries, and the other components of Santa's Gift Bag are being made publicly available and free to use in freeware and shareware products with a price under $25 (I believe that shareware should be cheap). For overpriced shareware (hehehe) or commercial products, please contact me to negotiate a fee for use. After all, I did work hard on these classes and invested a lot of time into it. That being said, DON'T WORRY I don't want much. It totally depends on the sort of project you're working on and how much you expect to make off it. If someone makes money using my work, I'd like to get at least a little something for my contribution to that profit. + +If any of the components of Santa's Gift Bag are is used in a shareware or commercial product, I get a free copy. The source is made available so that you can improve and extend it as you need. In general it is best to customize these classes through inheritance, leaving the original Santa's Gift Bag source code unmodified, so that you can take advantage of enhancements and bug fixes as they become available. + +Feel free to distribute any components of this archive, but you are required to keep the documentation and license with it. If you wish to distribute modified source, also feel free to do so, but do so in such a manner that it is very clear what was modified, why, how, that it is not an official Santa's Gift Bag release, and you are also required to keep the documentation and license with any modified versions. + +I can be contacted at: +briant@timelinevista.com + +Thank you for using Santa's Gift Bag, and enjoy! \ No newline at end of file From aba55658e39d9004dd8eb2f686a0be4db8a05f9b Mon Sep 17 00:00:00 2001 From: Theodore Kokkoris Date: Sun, 8 Dec 2013 17:01:23 +0000 Subject: [PATCH 2/4] Removed hardcoded path --- haiku-libs/libsanta/libsanta-0.0.1.recipe | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/haiku-libs/libsanta/libsanta-0.0.1.recipe b/haiku-libs/libsanta/libsanta-0.0.1.recipe index c53b5ce53..93532b54b 100644 --- a/haiku-libs/libsanta/libsanta-0.0.1.recipe +++ b/haiku-libs/libsanta/libsanta-0.0.1.recipe @@ -29,14 +29,15 @@ BUILD_PREREQUIRES=" BUILD() { - make BUILDHOME=`finddir B_SYSTEM_DEVELOP_DIRECTORY` + make OBJ_DIR=build \ + BUILDHOME=`finddir B_SYSTEM_DEVELOP_DIRECTORY` } INSTALL() { mkdir -p $developLibDir - cd objects.x86-gcc2-release + cd build cp libsanta.a $developLibDir packageEntries devel \ From 42cc2d066ae2dc76353373e08da3551b19d077c7 Mon Sep 17 00:00:00 2001 From: Theodore Kokkoris Date: Mon, 9 Dec 2013 18:40:57 +0000 Subject: [PATCH 3/4] Added shared library building to the recipe file --- haiku-libs/libsanta/libsanta-0.0.1.recipe | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/haiku-libs/libsanta/libsanta-0.0.1.recipe b/haiku-libs/libsanta/libsanta-0.0.1.recipe index 93532b54b..2f6e3bf37 100644 --- a/haiku-libs/libsanta/libsanta-0.0.1.recipe +++ b/haiku-libs/libsanta/libsanta-0.0.1.recipe @@ -3,7 +3,7 @@ DESCRIPTION="libsanta has some useful custom widgets." HOMEPAGE="https://github.com/HaikuArchives/SantasGiftBag" COPYRIGHT="briant@timelinevista.com" LICENSE="libsanta" -SRC_URI="git+https://github.com/HaikuArchives/SantasGiftBag#59b17aa" +SRC_URI="git+https://github.com/HaikuArchives/SantasGiftBag#4b62541" REVISION="1" ARCHITECTURES="x86_gcc2 ?x86 ?x86_64" SECONDARY_ARCHITECTURES="x86_gcc2 ?x86" @@ -29,7 +29,12 @@ BUILD_PREREQUIRES=" BUILD() { - make OBJ_DIR=build \ + make TYPE=STATIC \ + OBJ_DIR=build \ + BUILDHOME=`finddir B_SYSTEM_DEVELOP_DIRECTORY` + + make TYPE=SHARED \ + OBJ_DIR=build \ BUILDHOME=`finddir B_SYSTEM_DEVELOP_DIRECTORY` } @@ -39,6 +44,7 @@ INSTALL() cd build cp libsanta.a $developLibDir + cp libsanta $developLibDir/libsanta.so packageEntries devel \ $developLibDir From 6bfdba51f69f287fb157f9274c6bff9e0a428599 Mon Sep 17 00:00:00 2001 From: Theodore Kokkoris Date: Mon, 9 Dec 2013 19:50:22 +0000 Subject: [PATCH 4/4] Shared library goes into $libDir, documentation goes into $developLibDir --- haiku-libs/libsanta/libsanta-0.0.1.recipe | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/haiku-libs/libsanta/libsanta-0.0.1.recipe b/haiku-libs/libsanta/libsanta-0.0.1.recipe index 2f6e3bf37..347c3bea7 100644 --- a/haiku-libs/libsanta/libsanta-0.0.1.recipe +++ b/haiku-libs/libsanta/libsanta-0.0.1.recipe @@ -40,11 +40,13 @@ BUILD() INSTALL() { - mkdir -p $developLibDir + mkdir -p $developLibDir $libDir + + cp -R Documentation $developLibDir cd build cp libsanta.a $developLibDir - cp libsanta $developLibDir/libsanta.so + cp libsanta $libDir/libsanta.so packageEntries devel \ $developLibDir