Merged in munchausen/haikuports (pull request #139)

Recipes for confuse and libftdi, update fftw for PM
This commit is contained in:
Adrien Destugues
2014-01-13 19:01:50 +01:00
6 changed files with 291 additions and 9 deletions

View File

@@ -0,0 +1,74 @@
SUMMARY="libConfuse - a configuration file parser library"
DESCRIPTION="
libConfuse is a configuration file parser library, licensed under the terms of \
the ISC license, and written in C. It supports sections and (lists of) values \
(strings, integers, floats, booleans or other sections), as well as some other \
features (such as single/double-quoted strings, environment variable expansion, \
functions and nested include statements). It makes it very easy to add \
configuration file capability to a program using a simple API.
The goal of libConfuse is not to be the configuration file parser library with \
a gazillion of features. Instead, it aims to be easy to use and quick to \
integrate with your code. libConfuse was called libcfg before, but its name was \
changed to not confuse itself with other similar libraries.
"
HOMEPAGE="http://www.nongnu.org/confuse/"
SRC_URI="http://savannah.nongnu.org/download/confuse/confuse-2.7.tar.gz"
CHECKSUM_MD5="45932fdeeccbb9ef4228f1c1a25e9c8f"
LICENSE="ISC"
COPYRIGHT="2002,2003,2007 Martin Hedenfalk"
REVISION="1"
ARCHITECTURES="x86 x86_gcc2"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
PATCHES="confuse-2.7.patch"
PROVIDES="
lib:libconfuse$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix >= $haikuVersion
libiconv$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel >= $haikuVersion
libiconv${secondaryArchSuffic}_devel
"
BUILD_PREREQUIRES="
gettext$secondaryArchSuffix
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:libtoolize
cmd:autom4te
cmd:aclocal
cmd:autoconf
cmd:automake
cmd:make
"
BUILD()
{
aclocal
libtoolize -fci
autoconf
automake --add-missing
runConfigure ./configure --enable-shared
make
}
INSTALL()
{
make install
prepareInstalledDevelLib libconfuse
packageEntries devel $developDir
}
PROVIDES_devel="
libconfuse${secondaryArchSuffix}_devel = $portVersion
devel:libconfuse$secondaryArchSuffix = $portVersion
"
REQUIRES_devel="
lib:libconfuse$secondaryArchSuffix == $portVersion base
"

View File

@@ -0,0 +1,13 @@
Copyright (c) 2002,2003,2007 Martin Hedenfalk <martin@bzero.se>
Permission to use, copy, modify, and distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE

View File

@@ -0,0 +1,12 @@
diff -Naur confuse-2.7/configure.ac confuse-2.7-haiku/configure.ac
--- confuse-2.7/configure.ac 2010-02-22 00:27:44.009961472 +0000
+++ confuse-2.7-haiku/configure.ac 2014-01-12 12:40:30.637796352 +0000
@@ -6,7 +6,7 @@
AC_CONFIG_AUX_DIR(support)
AM_MAINTAINER_MODE
AM_INIT_AUTOMAKE
-AM_CONFIG_HEADER(config.h)
+AC_CONFIG_HEADERS(config.h)
AC_CONFIG_SRCDIR(src/confuse.c)
# Checks for programs.