mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-21 03:00:05 +02:00
Mini XML Library
This commit is contained in:
28
dev-cpp/mxml/mxml-2.9.patchset
Normal file
28
dev-cpp/mxml/mxml-2.9.patchset
Normal file
@@ -0,0 +1,28 @@
|
||||
From e15adf9b52db905f16349ecefa2785443d16fdfd Mon Sep 17 00:00:00 2001
|
||||
From: Derek Tse <arrestrose@gmail.com>
|
||||
Date: Sun, 18 Jan 2015 04:09:22 +0000
|
||||
Subject: Fixed configure
|
||||
|
||||
|
||||
diff --git a/configure.in b/configure.in
|
||||
index de1bf8b..7d3494d 100644
|
||||
--- a/configure.in
|
||||
+++ b/configure.in
|
||||
@@ -207,6 +207,14 @@ if test x$enable_shared != xno; then
|
||||
DSOFLAGS="$DSOFLAGS -Wl,-soname,libmxml.so.1,-R\$(libdir) -shared \$(OPTIM)"
|
||||
LDFLAGS="$LDFLAGS -Wl,-R\$(libdir)"
|
||||
;;
|
||||
+
|
||||
+ Haiku*)
|
||||
+ AC_MSG_RESULT(yes)
|
||||
+ LIBMXML="libmxml.so.1.5"
|
||||
+ DSO="\$(CC)"
|
||||
+ DSOFLAGS="$DSOFLAGS -Wl,-soname,libmxml.so.1,-R\$(libdir) -shared \$(OPTIM)"
|
||||
+ LDFLAGS="$LDFLAGS -Wl,-R\$(libdir)"
|
||||
+ ;;
|
||||
|
||||
Darwin*)
|
||||
AC_MSG_RESULT(yes)
|
||||
--
|
||||
1.8.3.4
|
||||
|
||||
68
dev-cpp/mxml/mxml-2.9.recipe
Normal file
68
dev-cpp/mxml/mxml-2.9.recipe
Normal file
@@ -0,0 +1,68 @@
|
||||
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="http://www.minixml.org/index.php"
|
||||
SRC_URI="http://www.msweet.org/files/project3/mxml-2.9.tar.gz"
|
||||
CHECKSUM_SHA256="cded54653c584b24c4a78a7fa1b3b4377d49ac4f451ddf170ebbc8161d85ff92"
|
||||
SOURCE_DIR="mxml-2.9"
|
||||
REVISION="2"
|
||||
LICENSE="GNU LGPL v2"
|
||||
COPYRIGHT="2003-2014 Michael R Sweet"
|
||||
|
||||
ARCHITECTURES="x86_gcc2 x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
||||
|
||||
PROVIDES="
|
||||
mxml$secondaryArchSuffix = $portVersion
|
||||
lib:mxml$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
#PROVIDES_devel="
|
||||
# mxml${secondaryArchSuffix}_devel >= $portVersion
|
||||
# devel:mxml$secondaryArchSuffix >= $portVersion
|
||||
# "
|
||||
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libz$secondaryArchSuffix
|
||||
"
|
||||
|
||||
#REQUIRES_devel="
|
||||
# haiku${secondaryArchSuffix}_devel
|
||||
# "
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
"
|
||||
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:libtoolize
|
||||
cmd:make
|
||||
# cmd:aclocal
|
||||
# cmd:automake
|
||||
cmd:autoconf
|
||||
cmd:mkdepend
|
||||
cmd:gcc${secondaryArchSuffix}
|
||||
cmd:ld${secondaryArchSuffix}
|
||||
"
|
||||
|
||||
PATCHES="mxml-2.9.patchset
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
libtoolize -fci
|
||||
autoconf
|
||||
runConfigure ./configure --enable-shared
|
||||
sed -i "s|LIBS = -pthread|LIBS=|" $sourceDir/Makefile
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
# prepareInstalledDevelLibs \
|
||||
# libmxml
|
||||
# packageEntries devel \
|
||||
# $developDir
|
||||
}
|
||||
Reference in New Issue
Block a user