mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
Merged in munchausen/haikuports (pull request #139)
Recipes for confuse and libftdi, update fftw for PM
This commit is contained in:
89
dev-embedded/libftdi/libftdi-1.0.recipe
Normal file
89
dev-embedded/libftdi/libftdi-1.0.recipe
Normal file
@@ -0,0 +1,89 @@
|
||||
SUMMARY="libFTDI is an open source library to talk to FTDI chips"
|
||||
DESCRIPTION="
|
||||
libFTDI is an open source library to talk to FTDI chips: FT232BM, FT245BM, \
|
||||
FT2232C, FT2232D, FT245R and FT232H including the popular bitbang mode. The \
|
||||
library is linked with your program in userspace, no kernel driver required.
|
||||
libFTDI works perfectly with Linux, Windows, MacOS X and BSD variants thanks to \
|
||||
libusb.
|
||||
"
|
||||
HOMEPAGE="http://www.intra2net.com/en/developer/libftdi/index.php"
|
||||
SRC_URI="http://www.intra2net.com/en/developer/libftdi/download/libftdi1-1.0.tar.bz2"
|
||||
CHECKSUM_MD5="e02dd77ee10b82b5edfbb8c199185bbf"
|
||||
LICENSE="
|
||||
GNU LGPL v2.1
|
||||
GNU GPL v2
|
||||
"
|
||||
COPYRIGHT="2003-2013 Intra2net AG and the libftdi developers"
|
||||
REVISION="1"
|
||||
ARCHITECTURES="x86 x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
||||
SOURCE_DIR="libftdi1-$portVersion"
|
||||
PATCHES="libftdi-1.0.patch"
|
||||
|
||||
PROVIDES="
|
||||
libftdi1$secondaryArchSuffix = $portVersion
|
||||
lib:libftdi1$secondaryArchSuffix = $portVersion
|
||||
lib:libftdipp1$secondaryArchSuffix = $portVersion
|
||||
cmd:ftdi_eeprom$secondaryArchSuffix
|
||||
cmd:libftdi1_config$secondaryArchSuffix
|
||||
"
|
||||
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix >= $haikuVersion
|
||||
lib:libconfuse$secondaryArchSuffix >= 2.5
|
||||
libusb$secondaryArchSuffix >= 1.0
|
||||
boost$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel >= $haikuVersion
|
||||
libconfuse${secondaryArchSuffix}_devel >= 2.5
|
||||
libusb${secondaryArchSuffix}_devel
|
||||
boost_devel$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:cmake
|
||||
cmd:make
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
rm -rf build
|
||||
mkdir build
|
||||
cd build
|
||||
cmake -DCMAKE_INSTALL_PREFIX:PATH=$prefix \
|
||||
-DLIBUSB_INCLUDE_DIR=/system/$relativeIncludeDir/libusb-1.0 \
|
||||
-DConfuse_INCLUDE_DIRS=/system/$relativeIncludeDir \
|
||||
-DConfuse_LIBRARY_DIRS=/system/$relativeDevelopLibDir \
|
||||
-DConfuse_LIBRARIES="libconfuse.so" \
|
||||
-DConfuse_FOUND=TRUE \
|
||||
-DLIBUSB="libusb-1.0.so" \
|
||||
-DLIB_SUFFIX=$secondaryArchSubDir \
|
||||
-DBIN_SUFFIX=$secondaryArchSubDir \
|
||||
-DINC_SUFFIX=$secondaryArchSubDir \
|
||||
..
|
||||
make
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd build
|
||||
make install
|
||||
prepareInstalledDevelLib libftdi1
|
||||
prepareInstalledDevelLib libftdipp1
|
||||
fixPkgconfig
|
||||
packageEntries devel $developDir
|
||||
}
|
||||
|
||||
PROVIDES_devel="
|
||||
libftdi1${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libftdi1$secondaryArchSuffix = $portVersion
|
||||
devel:libftdipp1$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
|
||||
REQUIRES_devel="
|
||||
lib:libftdi1$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
51
dev-embedded/libftdi/patches/libftdi-1.0.patch
Normal file
51
dev-embedded/libftdi/patches/libftdi-1.0.patch
Normal file
@@ -0,0 +1,51 @@
|
||||
diff -Naur libftdi1-1.0/CMakeLists.txt libftdi1-1.0-haiku/CMakeLists.txt
|
||||
--- libftdi1-1.0/CMakeLists.txt 2013-01-29 13:21:38.000262144 +0000
|
||||
+++ libftdi1-1.0-haiku/CMakeLists.txt 2014-01-13 12:26:59.005505024 +0000
|
||||
@@ -166,7 +166,7 @@
|
||||
if ( UNIX )
|
||||
configure_file ( libftdi1-config.in ${CMAKE_CURRENT_BINARY_DIR}/libftdi1-config @ONLY )
|
||||
install ( PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/libftdi1-config
|
||||
- DESTINATION bin )
|
||||
+ DESTINATION bin${BIN_SUFFIX} )
|
||||
|
||||
# config script install path
|
||||
if ( NOT DEFINED LIBFTDI_CMAKE_CONFIG_DIR )
|
||||
diff -Naur libftdi1-1.0/ftdi_eeprom/CMakeLists.txt libftdi1-1.0-haiku/ftdi_eeprom/CMakeLists.txt
|
||||
--- libftdi1-1.0/ftdi_eeprom/CMakeLists.txt 2013-01-29 13:21:38.004718592 +0000
|
||||
+++ libftdi1-1.0-haiku/ftdi_eeprom/CMakeLists.txt 2014-01-13 12:26:59.008912896 +0000
|
||||
@@ -28,9 +28,9 @@
|
||||
|
||||
add_executable(ftdi_eeprom main.c)
|
||||
target_link_libraries(ftdi_eeprom ftdi1)
|
||||
- target_link_libraries(ftdi_eeprom ${Confuse_LIBRARIES})
|
||||
+ target_link_libraries(ftdi_eeprom ${Confuse_LIBRARIES} ${LIBUSB})
|
||||
|
||||
- install(TARGETS ftdi_eeprom DESTINATION bin)
|
||||
+ install(TARGETS ftdi_eeprom DESTINATION bin${BIN_SUFFIX})
|
||||
|
||||
else(Confuse_FOUND)
|
||||
message(STATUS "libConfuse not found, won't build ftdi_eeprom")
|
||||
diff -Naur libftdi1-1.0/ftdipp/CMakeLists.txt libftdi1-1.0-haiku/ftdipp/CMakeLists.txt
|
||||
--- libftdi1-1.0/ftdipp/CMakeLists.txt 2013-01-29 13:21:38.005242880 +0000
|
||||
+++ libftdi1-1.0-haiku/ftdipp/CMakeLists.txt 2014-01-13 12:32:43.713293824 +0000
|
||||
@@ -51,7 +51,7 @@
|
||||
COMPONENT staticlibs
|
||||
)
|
||||
install( FILES ${cpp_headers}
|
||||
- DESTINATION include/${PROJECT_NAME}
|
||||
+ DESTINATION develop/headers${INC_SUFFIX}/${PROJECT_NAME}
|
||||
COMPONENT headers
|
||||
)
|
||||
endif(${UNIX})
|
||||
diff -Naur libftdi1-1.0/src/CMakeLists.txt libftdi1-1.0-haiku/src/CMakeLists.txt
|
||||
--- libftdi1-1.0/src/CMakeLists.txt 2013-01-29 13:21:38.006553600 +0000
|
||||
+++ libftdi1-1.0-haiku/src/CMakeLists.txt 2014-01-13 12:26:59.012058624 +0000
|
||||
@@ -51,7 +51,7 @@
|
||||
)
|
||||
|
||||
install( FILES ${c_headers}
|
||||
- DESTINATION include/${PROJECT_NAME}
|
||||
+ DESTINATION develop/headers${INC_SUFFIX}/${PROJECT_NAME}
|
||||
COMPONENT headers
|
||||
)
|
||||
|
||||
74
dev-libs/confuse/confuse-2.7.recipe
Normal file
74
dev-libs/confuse/confuse-2.7.recipe
Normal 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
|
||||
"
|
||||
13
dev-libs/confuse/licenses/ISC
Normal file
13
dev-libs/confuse/licenses/ISC
Normal 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
|
||||
12
dev-libs/confuse/patches/confuse-2.7.patch
Normal file
12
dev-libs/confuse/patches/confuse-2.7.patch
Normal 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.
|
||||
@@ -1,23 +1,66 @@
|
||||
DESCRIPTION="Fast C library for the Discrete Fourier Transform"
|
||||
SUMMARY="Fast C library for the Discrete Fourier Transform"
|
||||
DESCRIPTION="
|
||||
FFTW is a C subroutine library for computing the discrete Fourier transform \
|
||||
(DFT) in one or more dimensions, of arbitrary input size, and of both real and \
|
||||
complex data (as well as of even/odd data, i.e. the discrete cosine/sine \
|
||||
transforms or DCT/DST). We believe that FFTW, which is free software, should \
|
||||
become the FFT library of choice for most applications.
|
||||
Our benchmarks, performed on on a variety of platforms, show that FFTW's \
|
||||
performance is typically superior to that of other publicly available FFT \
|
||||
software, and is even competitive with vendor-tuned codes. In contrast to \
|
||||
vendor-tuned codes, however, FFTW's performance is portable: the same program \
|
||||
will perform well on most architectures without modification. Hence the name, \
|
||||
FFTW, which stands for the somewhat whimsical title of Fastest Fourier \
|
||||
Transform in the West.
|
||||
"
|
||||
HOMEPAGE="http://www.fftw.org/"
|
||||
SRC_URI="http://www.fftw.org/fftw-3.2.2.tar.gz"
|
||||
CHECKSUM_MD5="b616e5c91218cc778b5aa735fefb61ae"
|
||||
LICENSE="GNU GPL v2"
|
||||
COPYRIGHT="
|
||||
2003, 2007-2008 Matteo Frigo
|
||||
2003, 2007-2008 Massachusetts Institute of Technology
|
||||
"
|
||||
REVISION="1"
|
||||
STATUS_HAIKU="untested"
|
||||
DEPEND=""
|
||||
ARCHITECTURES="x86 x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
||||
|
||||
PROVIDES="
|
||||
lib:libfftw$secondaryArchSuffix = $portVersion
|
||||
cmd:fftw_wisdom
|
||||
cmd:fftw_wisdom_to_conf
|
||||
"
|
||||
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix >= $haikuVersion
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel >= $haikuVersion
|
||||
"
|
||||
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:make
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cd fftw-3.2.2
|
||||
./configure --prefix=`finddir B_COMMON_DIRECTORY`
|
||||
runConfigure ./configure
|
||||
make
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd fftw-3.2.2
|
||||
make install
|
||||
prepareInstalledDevelLib libfftw3
|
||||
packageEntries devel $developDir
|
||||
}
|
||||
|
||||
LICENSE="GNU GPL v2"
|
||||
COPYRIGHT="2003, 2007-2008 Matteo Frigo
|
||||
2003, 2007-2008 Massachusetts Institute of Technology"
|
||||
PROVIDES_devel="
|
||||
devel:libfftw$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
REQUIRES_devel="
|
||||
lib:libfftw$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
Reference in New Issue
Block a user