mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
mxml, bump version, rename to mxml (#4410)
This commit is contained in:
committed by
Jérôme Duval
parent
f91c073848
commit
0ed8473a41
16
dev-libs/mxml/licenses/Mini-XML
Normal file
16
dev-libs/mxml/licenses/Mini-XML
Normal file
@@ -0,0 +1,16 @@
|
||||
Mini-XML
|
||||
|
||||
Copyright © 2003-2019 by Michael R Sweet
|
||||
|
||||
|
||||
Exceptions to the Apache 2.0 License:
|
||||
=====================================
|
||||
|
||||
In addition, if you combine or link compiled forms of this Software with
|
||||
software that is licensed under the GPLv2 or LGPLv2 (“Combined Software”) and if
|
||||
a court of competent jurisdiction determines that the patent provision (Section
|
||||
3), the indemnity provision (Section 9) or other Section of the License
|
||||
conflicts with the conditions of the GPLv2 or LGPLv2, you may retroactively and
|
||||
prospectively choose to deem waived or otherwise exclude such Section(s) of the
|
||||
License, but only in their entirety and only with respect to the Combined
|
||||
Software.
|
||||
72
dev-libs/mxml/mxml-3.1.recipe
Normal file
72
dev-libs/mxml/mxml-3.1.recipe
Normal file
@@ -0,0 +1,72 @@
|
||||
SUMMARY="Minimum XML Library"
|
||||
DESCRIPTION="Mini-XML is a small XML parsing library that you can \
|
||||
use to read XML and XML-like data files in your application without \
|
||||
requiring large non-standard libraries."
|
||||
HOMEPAGE="https://www.msweet.org/mxml/
|
||||
https://github.com/michaelrsweet/mxml"
|
||||
COPYRIGHT="2003-2019 Michael R Sweet"
|
||||
LICENSE="Mini-XML
|
||||
Apache v2
|
||||
GNU LGPL v2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/michaelrsweet/mxml/archive/v$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="0a50cbb42ad078e51589208997858c8d86ea95f255d61e4af5b3d635d2659603"
|
||||
SOURCE_FILENAME="mxml-v$portVersion.tar.gz"
|
||||
PATCHES="mxml-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="?x86_gcc2 ?x86 ?x86_64"
|
||||
SECONDARY_ARCHITECTURES="?x86_gcc2 ?x86"
|
||||
|
||||
libVersion="1.6"
|
||||
libVersionCompat="$libVersion compat >= ${libVersion%.*}"
|
||||
|
||||
PROVIDES="
|
||||
mxml$secondaryArchSuffix = $portVersion
|
||||
cmd:mxmldoc$secondaryArchSuffix = $portVersion
|
||||
lib:libmxml$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
mxml${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libmxml$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES_devel="
|
||||
mxml${secondaryArchSuffix}_devel == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:autoconf
|
||||
cmd:gcc${secondaryArchSuffix}
|
||||
cmd:libtoolize$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:mkdepend
|
||||
"
|
||||
|
||||
defineDebugInfoPackage mini_xml$secondaryArchSuffix \
|
||||
"$libDir"/libmxml.so.$libVersion
|
||||
|
||||
BUILD()
|
||||
{
|
||||
libtoolize -fci
|
||||
autoconf
|
||||
runConfigure ./configure --enable-shared
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
|
||||
prepareInstalledDevelLibs libmxml
|
||||
fixPkgconfig
|
||||
|
||||
packageEntries devel \
|
||||
$developDir \
|
||||
$manDir
|
||||
}
|
||||
28
dev-libs/mxml/patches/mxml-3.1.patchset
Normal file
28
dev-libs/mxml/patches/mxml-3.1.patchset
Normal file
@@ -0,0 +1,28 @@
|
||||
From b31124071358fcbfd979ceeddf6d479564ab2987 Mon Sep 17 00:00:00 2001
|
||||
From: begasus <begasus@gmail.com>
|
||||
Date: Sat, 30 Nov 2019 11:31:57 +0100
|
||||
Subject: Enable shared library
|
||||
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 455537a..70d2c38 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -206,6 +206,14 @@ if test x$enable_shared != xno; then
|
||||
LDFLAGS="$LDFLAGS -Wl,-R\$(libdir)"
|
||||
;;
|
||||
|
||||
+ haiku*)
|
||||
+ AC_MSG_RESULT(yes)
|
||||
+ LIBMXML="libmxml.so.1.6"
|
||||
+ DSO="\$(CC)"
|
||||
+ DSOFLAGS="$DSOFLAGS -Wl,-soname,libmxml.so.1,-R\$(libdir) -shared \$(OPTIM)"
|
||||
+ LDFLAGS="$LDFLAGS -Wl,-R\$(libdir)"
|
||||
+ ;;
|
||||
+
|
||||
darwin)
|
||||
AC_MSG_RESULT(yes)
|
||||
LIBMXML="libmxml.1.dylib"
|
||||
--
|
||||
2.24.0
|
||||
|
||||
Reference in New Issue
Block a user