mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
committed by
GitHub
parent
06fe90e947
commit
d8697212c5
18
dev-libs/irrxml/additional-files/Makefile.am
Normal file
18
dev-libs/irrxml/additional-files/Makefile.am
Normal file
@@ -0,0 +1,18 @@
|
||||
AM_CPPFLAGS = -I./src
|
||||
ACLOCAL_AMFLAGS= -I m4
|
||||
|
||||
check_PROGRAMS = irrxml
|
||||
irrxml_SOURCES = example/test.cpp
|
||||
irrxml_LDADD = libirrxml.la
|
||||
|
||||
pkginclude_HEADERS = \
|
||||
src/CXMLReaderImpl.h src/fast_atof.h src/heapsort.h src/irrArray.h \
|
||||
src/irrString.h src/irrTypes.h src/irrXML.h
|
||||
|
||||
lib_LTLIBRARIES = libirrxml.la
|
||||
libirrxml_la_SOURCES = src/irrXML.cpp
|
||||
libirrxml_la_LDFLAGS = -no-undefined -shared
|
||||
libirrxml_la_CPPFLAGS = -fPIC
|
||||
|
||||
pkgconfigdir = $(libdir)/pkgconfig
|
||||
pkgconfig_DATA = irrxml.pc
|
||||
31
dev-libs/irrxml/additional-files/configure.ac
Normal file
31
dev-libs/irrxml/additional-files/configure.ac
Normal file
@@ -0,0 +1,31 @@
|
||||
AC_PREREQ([2.69])
|
||||
AC_INIT([irrxml], [1.2], [], , [https://www.ambiera.com/irrxml])
|
||||
AC_CONFIG_SRCDIR([example/test.cpp])
|
||||
AC_CONFIG_HEADERS([config.h])
|
||||
AM_INIT_AUTOMAKE
|
||||
|
||||
LT_INIT
|
||||
|
||||
AC_CONFIG_MACRO_DIRS([m4])
|
||||
|
||||
AM_INIT_AUTOMAKE([foreign])
|
||||
|
||||
# Checks for programs.
|
||||
AC_PROG_CXX
|
||||
AC_PROG_CC
|
||||
AC_PROG_CPP
|
||||
|
||||
# Checks for libraries.
|
||||
|
||||
# Checks for header files.
|
||||
AC_CHECK_HEADERS([stdlib.h])
|
||||
|
||||
# Checks for typedefs, structures, and compiler characteristics.
|
||||
AC_CHECK_HEADER_STDBOOL
|
||||
AC_C_INLINE
|
||||
|
||||
# Checks for library functions.
|
||||
AC_CHECK_FUNCS([pow strtol])
|
||||
|
||||
AC_CONFIG_FILES([irrxml.pc Makefile])
|
||||
AC_OUTPUT
|
||||
10
dev-libs/irrxml/additional-files/irrxml.pc.in
Normal file
10
dev-libs/irrxml/additional-files/irrxml.pc.in
Normal file
@@ -0,0 +1,10 @@
|
||||
prefix=@prefix@
|
||||
exec_prefix=@exec_prefix@
|
||||
libdir=@libdir@
|
||||
includedir=@includedir@
|
||||
|
||||
Name: irrxml
|
||||
Description: Simple and fast open source xml parser for C++
|
||||
Version: @VERSION@
|
||||
Libs: -L${libdir} -lirrxml
|
||||
Cflags: -I${includedir}/irrxml
|
||||
82
dev-libs/irrxml/irrxml-1.2.recipe
Normal file
82
dev-libs/irrxml/irrxml-1.2.recipe
Normal file
@@ -0,0 +1,82 @@
|
||||
SUMMARY="Simple, fast, open source XML parser for C++"
|
||||
DESCRIPTION="irrXML is a simple and fast open source xml parser for C++. \
|
||||
Why another xml parser? The strenghts of irrXML are its speed and its simplicity. \
|
||||
It ideally fits into realtime projects which need to read xml data without overhead, \
|
||||
like games. irrXML was originally written as part of the Irrlicht Engine \
|
||||
but after it has become quite mature it now has become a separate project."
|
||||
HOMEPAGE="https://www.ambiera.com/irrxml"
|
||||
COPYRIGHT="2002-2007 Nikolaus Gebhardt"
|
||||
LICENSE="irrXML"
|
||||
REVISION="1"
|
||||
SOURCE_URI="http://prdownloads.sourceforge.net/irrlicht/irrxml-$portVersion.zip"
|
||||
CHECKSUM_SHA256="9b4f80639b2dee3caddbf75862389de684747df27bea7d25f96c7330606d7079"
|
||||
ADDITIONAL_FILES="
|
||||
configure.ac
|
||||
irrxml.pc.in
|
||||
Makefile.am
|
||||
"
|
||||
|
||||
ARCHITECTURES="x86_gcc2 x86_64 ?arm ?ppc ?sparc"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
libVersion="0.0.0"
|
||||
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
||||
|
||||
PROVIDES="
|
||||
irrxml$secondaryArchSuffix = $portVersion
|
||||
lib:libirrxml$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
irrxml${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libirrxml$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES_devel="
|
||||
irrxml$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:aclocal
|
||||
cmd:autoreconf
|
||||
cmd:awk
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:libtoolize$secondaryArchSuffix
|
||||
cmd:make
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cp "$portDir"/additional-files/*.* .
|
||||
|
||||
mkdir -p m4
|
||||
autoreconf -vfi
|
||||
runConfigure configure
|
||||
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
|
||||
rm $libDir/libirrxml.la
|
||||
|
||||
prepareInstalledDevelLib libirrxml
|
||||
fixPkgconfig
|
||||
|
||||
# devel package
|
||||
packageEntries devel $developDir
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
export LIBRARY_PATH=$LIBRARY_PATH:$sourceDir
|
||||
|
||||
make check
|
||||
}
|
||||
25
dev-libs/irrxml/licenses/irrXML
Normal file
25
dev-libs/irrxml/licenses/irrXML
Normal file
@@ -0,0 +1,25 @@
|
||||
The license of irrXML is based on the zlib/libpng license.
|
||||
Even though this license does not require you to mention that you are
|
||||
using the Irrlicht Engine in your product, an acknowledgement
|
||||
would be highly appreciated.
|
||||
|
||||
The irrXML License
|
||||
===========================
|
||||
|
||||
Copyright (C) 2002-2005 Nikolaus Gebhardt
|
||||
|
||||
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.
|
||||
Reference in New Issue
Block a user