mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 20:20:06 +02:00
objfw: New recipe
This commit is contained in:
98
dev-libs/objfw/licenses/QPL
Normal file
98
dev-libs/objfw/licenses/QPL
Normal file
@@ -0,0 +1,98 @@
|
||||
THE Q PUBLIC LICENSE
|
||||
version 1.0
|
||||
|
||||
Copyright (C) 1999-2000 Trolltech AS, Norway.
|
||||
Everyone is permitted to copy and
|
||||
distribute this license document.
|
||||
|
||||
The intent of this license is to establish freedom to share and change the
|
||||
software regulated by this license under the open source model.
|
||||
|
||||
This license applies to any software containing a notice placed by the
|
||||
copyright holder saying that it may be distributed under the terms of
|
||||
the Q Public License version 1.0. Such software is herein referred to as
|
||||
the Software. This license covers modification and distribution of the
|
||||
Software, use of third-party application programs based on the Software,
|
||||
and development of free software which uses the Software.
|
||||
|
||||
Granted Rights
|
||||
|
||||
1. You are granted the non-exclusive rights set forth in this license
|
||||
provided you agree to and comply with any and all conditions in this
|
||||
license. Whole or partial distribution of the Software, or software
|
||||
items that link with the Software, in any form signifies acceptance of
|
||||
this license.
|
||||
|
||||
2. You may copy and distribute the Software in unmodified form provided
|
||||
that the entire package, including - but not restricted to - copyright,
|
||||
trademark notices and disclaimers, as released by the initial developer
|
||||
of the Software, is distributed.
|
||||
|
||||
3. You may make modifications to the Software and distribute your
|
||||
modifications, in a form that is separate from the Software, such as
|
||||
patches. The following restrictions apply to modifications:
|
||||
|
||||
a. Modifications must not alter or remove any copyright notices in
|
||||
the Software.
|
||||
|
||||
b. When modifications to the Software are released under this
|
||||
license, a non-exclusive royalty-free right is granted to the
|
||||
initial developer of the Software to distribute your modification
|
||||
in future versions of the Software provided such versions remain
|
||||
available under these terms in addition to any other license(s) of
|
||||
the initial developer.
|
||||
|
||||
4. You may distribute machine-executable forms of the Software or
|
||||
machine-executable forms of modified versions of the Software, provided
|
||||
that you meet these restrictions:
|
||||
|
||||
a. You must include this license document in the distribution.
|
||||
|
||||
b. You must ensure that all recipients of the machine-executable forms
|
||||
are also able to receive the complete machine-readable source code
|
||||
to the distributed Software, including all modifications, without
|
||||
any charge beyond the costs of data transfer, and place prominent
|
||||
notices in the distribution explaining this.
|
||||
|
||||
c. You must ensure that all modifications included in the
|
||||
machine-executable forms are available under the terms of this
|
||||
license.
|
||||
|
||||
5. You may use the original or modified versions of the Software to
|
||||
compile, link and run application programs legally developed by you
|
||||
or by others.
|
||||
|
||||
6. You may develop application programs, reusable components and other
|
||||
software items that link with the original or modified versions of the
|
||||
Software. These items, when distributed, are subject to the following
|
||||
requirements:
|
||||
|
||||
a. You must ensure that all recipients of machine-executable forms of
|
||||
these items are also able to receive and use the complete
|
||||
machine-readable source code to the items without any charge
|
||||
beyond the costs of data transfer.
|
||||
|
||||
b. You must explicitly license all recipients of your items to use
|
||||
and re-distribute original and modified versions of the items in
|
||||
both machine-executable and source code forms. The recipients must
|
||||
be able to do so without any charges whatsoever, and they must be
|
||||
able to re-distribute to anyone they choose.
|
||||
|
||||
c. If the items are not available to the general public, and the
|
||||
initial developer of the Software requests a copy of the items,
|
||||
then you must supply one.
|
||||
|
||||
Limitations of Liability
|
||||
|
||||
In no event shall the initial developers or copyright holders be liable
|
||||
for any damages whatsoever, including - but not restricted to - lost
|
||||
revenue or profits or other direct, indirect, special, incidental or
|
||||
consequential damages, even if they have been advised of the possibility
|
||||
of such damages, except to the extent invariable law, if any, provides
|
||||
otherwise.
|
||||
|
||||
No Warranty
|
||||
|
||||
The Software and this license document are provided AS IS with NO WARRANTY
|
||||
OF ANY KIND, INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS
|
||||
FOR A PARTICULAR PURPOSE.
|
||||
128
dev-libs/objfw/objfw-1.0.3.recipe
Normal file
128
dev-libs/objfw/objfw-1.0.3.recipe
Normal file
@@ -0,0 +1,128 @@
|
||||
SUMMARY="Portable, lightweight framework for the Objective-C language"
|
||||
DESCRIPTION="ObjFW is a portable, lightweight framework for the Objective-C \
|
||||
language. It enables you to write an application in Objective-C that will run \
|
||||
on any platform supported by ObjFW without having to worry about differences \
|
||||
between operating systems or various frameworks you would otherwise need if \
|
||||
you want to be portable."
|
||||
HOMEPAGE="https://objfw.nil.im/"
|
||||
COPYRIGHT="2008-2023 Jonathan Schleifer"
|
||||
LICENSE="QPL
|
||||
GNU GPL v2
|
||||
GNU GPL v3"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://objfw.nil.im/downloads/objfw-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="1c81d7d03578b2d9084fc5d8722d4eaa4bdc2f3f09ce41231e7ceab8212fae17"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
libobjfwVersion="1.0.1"
|
||||
libobjfwVersionCompat="$libobjfwVersion compat >= 1.0"
|
||||
libobjfwrtVersion="1.0.0"
|
||||
libobjfwrtVersionCompat="$libobjfwrtVersion compat >= 1.0"
|
||||
libobjfwtlsVersion="1.0.1"
|
||||
libobjfwtlsVersionCompat="$libobjfwrtVersion compat >= 1.0"
|
||||
|
||||
PROVIDES="objfw$secondaryArchSuffix = $portVersion"
|
||||
REQUIRES="
|
||||
objfw_libs$secondaryArchSuffix == $portVersion
|
||||
objfw_tls$secondaryArchSuffix == $portVersion
|
||||
objfw_utils$secondaryArchSuffix == $portVersion
|
||||
objfw_devel$secondaryArchSuffix == $portVersion
|
||||
"
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libssl$secondaryArchSuffix
|
||||
llvm12_clang$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:awk
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:make
|
||||
"
|
||||
|
||||
PROVIDES_libs="
|
||||
objfw_libs$secondaryArchSuffix = $portVersion
|
||||
lib:libobjfw$secondaryArchSuffix = $libobjfwVersionCompat
|
||||
lib:libobjfwrt$secondaryArchSuffix = $libobjfwrtVersionCompat
|
||||
"
|
||||
REQUIRES_libs="
|
||||
haiku$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_tls="
|
||||
objfw_tls$secondaryArchSuffix = $portVersion
|
||||
lib:libobjfwtls$secondaryArchSuffix = $libobjfwtlsVersionCompat
|
||||
"
|
||||
REQUIRES_tls="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libobjfw$secondaryArchSuffix == $libobjfwVersionCompat
|
||||
lib:libobjfwrt$secondaryArchSuffix == $libobjfwrtVersionCompat
|
||||
lib:libcrypto$secondaryArchSuffix
|
||||
lib:libssl$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_utils="
|
||||
objfw_utils$secondaryArchSuffix = $portVersion
|
||||
cmd:ofarc$secondaryArchSuffix = $portVersion compat >= 1.0
|
||||
cmd:ofdns$secondaryArchSuffix = $portVersion compat >= 1.0
|
||||
cmd:ofhash$secondaryArchSuffix = $portVersion compat >= 1.0
|
||||
cmd:ofhttp$secondaryArchSuffix = $portVersion compat >= 1.0
|
||||
"
|
||||
REQUIRES_utils="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libobjfw$secondaryArchSuffix == $libobjfwVersionCompat
|
||||
lib:libobjfwrt$secondaryArchSuffix == $libobjfwrtVersionCompat
|
||||
lib:libobjfwtls$secondaryArchSuffix == $libobjfwtlsVersionCompat
|
||||
lib:libcrypto$secondaryArchSuffix
|
||||
lib:libssl$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
objfw_devel$secondaryArchSuffix = $portVersion
|
||||
cmd:objfw_compile$secondaryArchSuffix = $portVersion compat >= 1.0
|
||||
cmd:objfw_config$secondaryArchSuffix = $portVersion compat >= 1.0
|
||||
cmd:objfw_embed$secondaryArchSuffix = $portVersion compat >= 1.0
|
||||
cmd:objfw_new$secondaryArchSuffix = $portVersion compat >= 1.0
|
||||
devel:libobjfw$secondaryArchSuffix = $libobjfwVersionCompat
|
||||
devel:libobjfwrt$secondaryArchSuffix = $libobjfwrtVersionCompat
|
||||
devel:libobjfwtls$secondaryArchSuffix = $libobjfwtlsVersionCompat
|
||||
"
|
||||
REQUIRES_devel="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libobjfw$secondaryArchSuffix == $libobjfwVersionCompat
|
||||
lib:libobjfwrt$secondaryArchSuffix == $libobjfwrtVersionCompat
|
||||
lib:libobjfwtls$secondaryArchSuffix == $libobjfwtlsVersionCompat
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
runConfigure ./configure
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
|
||||
packageEntries libs \
|
||||
$libDir/libobjfw.so* \
|
||||
$libDir/libobjfwrt.so*
|
||||
packageEntries tls $libDir/libobjfwtls.so*
|
||||
packageEntries utils \
|
||||
$binDir/ofarc $dataDir/ofarc \
|
||||
$binDir/ofdns $dataDir/ofdns \
|
||||
$binDir/ofhash $dataDir/ofhash \
|
||||
$binDir/ofhttp $dataDir/ofhttp
|
||||
packageEntries devel \
|
||||
$binDir/objfw-compile \
|
||||
$binDir/objfw-config \
|
||||
$binDir/objfw-embed \
|
||||
$binDir/objfw-new \
|
||||
$developDir
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
make check
|
||||
}
|
||||
Reference in New Issue
Block a user