mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-04 22:18:55 +02:00
naspro, revive old bep file, bump to 0.2.91 (#2538)
This commit is contained in:
committed by
waddlesplash
parent
0561b2a97b
commit
02a9455b62
73
media-sound/naspro/naspro-0.2.91.recipe
Normal file
73
media-sound/naspro/naspro-0.2.91.recipe
Normal file
@@ -0,0 +1,73 @@
|
|||||||
|
SUMMARY="Architecture for Sound PROcessing"
|
||||||
|
DESCRIPTION="NASPRO core is the portable runtime library at the bottom of \
|
||||||
|
the NASPRO Sound PROcessing Architecture"
|
||||||
|
HOMEPAGE="http://naspro.sourceforge.net/"
|
||||||
|
COPYRIGHT="2007-2011, NASPRO Development Team"
|
||||||
|
LICENSE="GNU LGPL v2.1"
|
||||||
|
REVISION="1"
|
||||||
|
SOURCE_URI="https://downloads.sf.net/naspro/naspro-core-$portVersion.tar.bz2"
|
||||||
|
CHECKSUM_SHA256="00d61a9a18aacb8d0fc3e21ae56f005484111a52bdc47ce64677d568908bfe2f"
|
||||||
|
SOURCE_DIR="naspro-core-$portVersion"
|
||||||
|
|
||||||
|
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
||||||
|
SECONDARY_ARCHITECTURES="x86"
|
||||||
|
|
||||||
|
libVersion="3.1.0"
|
||||||
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
||||||
|
|
||||||
|
PROVIDES="
|
||||||
|
naspro$secondaryArchSuffix = $portVersion
|
||||||
|
lib:libnacore$secondaryArchSuffix = $libVersionCompat
|
||||||
|
"
|
||||||
|
REQUIRES="
|
||||||
|
haiku$secondaryArchSuffix
|
||||||
|
"
|
||||||
|
|
||||||
|
PROVIDES_devel="
|
||||||
|
naspro${secondaryArchSuffix}_devel = $portVersion
|
||||||
|
devel:libnacore$secondaryArchSuffix = $libVersionCompat
|
||||||
|
"
|
||||||
|
REQUIRES_devel="
|
||||||
|
naspro$secondaryArchSuffix == $portVersion base
|
||||||
|
"
|
||||||
|
|
||||||
|
BUILD_REQUIRES="
|
||||||
|
haiku${secondaryArchSuffix}_devel
|
||||||
|
"
|
||||||
|
BUILD_PREREQUIRES="
|
||||||
|
cmd:aclocal
|
||||||
|
cmd:autoreconf
|
||||||
|
cmd:awk
|
||||||
|
cmd:gcc$secondaryArchSuffix
|
||||||
|
cmd:libtoolize$secondaryArchSuffix
|
||||||
|
cmd:make
|
||||||
|
cmd:pkg_config$secondaryArchSuffix
|
||||||
|
"
|
||||||
|
|
||||||
|
defineDebugInfoPackage naspro$secondaryArchSuffix \
|
||||||
|
"$libDir"/libnacore.so.$libVersion
|
||||||
|
|
||||||
|
BUILD()
|
||||||
|
{
|
||||||
|
autoreconf -vfi
|
||||||
|
runConfigure ./configure
|
||||||
|
make $jobArgs
|
||||||
|
}
|
||||||
|
|
||||||
|
INSTALL()
|
||||||
|
{
|
||||||
|
make install
|
||||||
|
|
||||||
|
rm "$libDir"/lib*.la
|
||||||
|
|
||||||
|
prepareInstalledDevelLib libnacore
|
||||||
|
fixPkgconfig
|
||||||
|
|
||||||
|
packageEntries devel \
|
||||||
|
"$developDir"
|
||||||
|
}
|
||||||
|
|
||||||
|
TEST()
|
||||||
|
{
|
||||||
|
make check
|
||||||
|
}
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
DESCRIPTION="NASPRO (recursive acronymn for NASPRO Architecture for Sound PROcessing)"
|
|
||||||
HOMEPAGE="http://naspro.atheme.org"
|
|
||||||
SOURCE_URI="hg+http://hg.atheme.org/naspro"
|
|
||||||
#CHECKSUM_MD5=""
|
|
||||||
REVISION="1"
|
|
||||||
STATUS_HAIKU="stable"
|
|
||||||
DEPEND=""
|
|
||||||
BUILD()
|
|
||||||
{
|
|
||||||
cd naspro-0.2.9-hg/naspro-core
|
|
||||||
./autogen.sh
|
|
||||||
./configure --prefix=`finddir B_COMMON_DIRECTORY`
|
|
||||||
make
|
|
||||||
}
|
|
||||||
|
|
||||||
INSTALL()
|
|
||||||
{
|
|
||||||
cd naspro-0.2.9-hg-core
|
|
||||||
make install
|
|
||||||
}
|
|
||||||
|
|
||||||
LICENSE="GNU GPL v3
|
|
||||||
GNU LGPL v2.1"
|
|
||||||
COPYRIGHT="2007-2011, NASPRO Development Team"
|
|
||||||
69
media-sound/naspro/naspro-0.5.1.recipe
Normal file
69
media-sound/naspro/naspro-0.5.1.recipe
Normal file
@@ -0,0 +1,69 @@
|
|||||||
|
SUMMARY="Architecture for Sound PROcessing"
|
||||||
|
DESCRIPTION="NASPRO core is the portable runtime library at the bottom of \
|
||||||
|
the NASPRO Sound PROcessing Architecture"
|
||||||
|
HOMEPAGE="http://naspro.sourceforge.net/"
|
||||||
|
COPYRIGHT="2007-2011, NASPRO Development Team"
|
||||||
|
LICENSE="GNU LGPL v2.1"
|
||||||
|
REVISION="1"
|
||||||
|
SOURCE_URI="https://downloads.sf.net/naspro/naspro-core-$portVersion.tar.bz2"
|
||||||
|
CHECKSUM_SHA256="cc8ddb02441a5d347ca63a8a2310b1f3b99610bdf76689ed25f417cbf6b154b0"
|
||||||
|
SOURCE_DIR="naspro-core-$portVersion"
|
||||||
|
PATCHES="naspro-$portVersion.patchset"
|
||||||
|
|
||||||
|
ARCHITECTURES="!x86_gcc2 x86 ?x86_64"
|
||||||
|
SECONDARY_ARCHITECTURES="x86"
|
||||||
|
|
||||||
|
libVersion="5.0.2"
|
||||||
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
||||||
|
|
||||||
|
PROVIDES="
|
||||||
|
naspro$secondaryArchSuffix = $portVersion
|
||||||
|
lib:libnacore$secondaryArchSuffix = $libVersionCompat
|
||||||
|
"
|
||||||
|
REQUIRES="
|
||||||
|
haiku$secondaryArchSuffix
|
||||||
|
"
|
||||||
|
|
||||||
|
PROVIDES_devel="
|
||||||
|
naspro${secondaryArchSuffix}_devel = $portVersion
|
||||||
|
devel:libnacore$secondaryArchSuffix = $libVersionCompat
|
||||||
|
"
|
||||||
|
REQUIRES_devel="
|
||||||
|
naspro$secondaryArchSuffix == $portVersion base
|
||||||
|
"
|
||||||
|
|
||||||
|
BUILD_REQUIRES="
|
||||||
|
haiku${secondaryArchSuffix}_devel
|
||||||
|
"
|
||||||
|
BUILD_PREREQUIRES="
|
||||||
|
cmd:aclocal
|
||||||
|
cmd:autoreconf
|
||||||
|
cmd:awk
|
||||||
|
cmd:gcc$secondaryArchSuffix
|
||||||
|
cmd:libtoolize$secondaryArchSuffix
|
||||||
|
cmd:make
|
||||||
|
cmd:pkg_config$secondaryArchSuffix
|
||||||
|
"
|
||||||
|
|
||||||
|
defineDebugInfoPackage naspro$secondaryArchSuffix \
|
||||||
|
$libDir/libnacore.so.$libVersion
|
||||||
|
|
||||||
|
BUILD()
|
||||||
|
{
|
||||||
|
autoreconf -vfi
|
||||||
|
runConfigure ./configure
|
||||||
|
make $jobArgs
|
||||||
|
}
|
||||||
|
|
||||||
|
INSTALL()
|
||||||
|
{
|
||||||
|
make install
|
||||||
|
|
||||||
|
rm $libDir/lib*.la
|
||||||
|
|
||||||
|
prepareInstalledDevelLibs libnacore
|
||||||
|
fixPkgconfig
|
||||||
|
|
||||||
|
packageEntries devel \
|
||||||
|
$developDir
|
||||||
|
}
|
||||||
70
media-sound/naspro/patches/naspro-0.5.1.patchset
Normal file
70
media-sound/naspro/patches/naspro-0.5.1.patchset
Normal file
@@ -0,0 +1,70 @@
|
|||||||
|
From f0fd940f580d259da24bcd1e4923485263ed9194 Mon Sep 17 00:00:00 2001
|
||||||
|
From: begasus <begasus@gmail.com>
|
||||||
|
Date: Sun, 6 May 2018 09:01:34 +0200
|
||||||
|
Subject: don't use -Werror, fix missing locale_t
|
||||||
|
|
||||||
|
|
||||||
|
diff --git a/include/NASPRO/core/locale.h b/include/NASPRO/core/locale.h
|
||||||
|
index 1e84585..d9de2b4 100644
|
||||||
|
--- a/include/NASPRO/core/locale.h
|
||||||
|
+++ b/include/NASPRO/core/locale.h
|
||||||
|
@@ -100,7 +100,29 @@ NACORE_BEGIN_C_DECLS
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* Don't mess with this stuff!!! */
|
||||||
|
-#ifdef _WIN32
|
||||||
|
+# define LC_ALL_MASK 0
|
||||||
|
+# define LC_NUMERIC_MASK 0
|
||||||
|
+# define LC_MESSAGES_MASK 0
|
||||||
|
+# define LC_GLOBAL_LOCALE ((locale_t)(uintptr_t)1)
|
||||||
|
+typedef void *locale_t;
|
||||||
|
+
|
||||||
|
+static inline void freelocale(locale_t loc)
|
||||||
|
+{
|
||||||
|
+ (void)loc;
|
||||||
|
+}
|
||||||
|
+static inline locale_t newlocale(int mask, const char * locale, locale_t base)
|
||||||
|
+{
|
||||||
|
+ (void)mask; (void)locale; (void)base;
|
||||||
|
+ return NULL;
|
||||||
|
+}
|
||||||
|
+
|
||||||
|
+static inline locale_t uselocale(locale_t loc)
|
||||||
|
+{
|
||||||
|
+ (void)loc;
|
||||||
|
+ return NULL;
|
||||||
|
+}
|
||||||
|
+
|
||||||
|
+#if defined (_WIN32) || defined (__HAIKU__)
|
||||||
|
|
||||||
|
typedef char *nacore_locale;
|
||||||
|
|
||||||
|
diff --git a/src/posix/Makefile.am b/src/posix/Makefile.am
|
||||||
|
index 82c70ab..9b436f5 100644
|
||||||
|
--- a/src/posix/Makefile.am
|
||||||
|
+++ b/src/posix/Makefile.am
|
||||||
|
@@ -8,7 +8,7 @@
|
||||||
|
#
|
||||||
|
|
||||||
|
if !WIN32
|
||||||
|
-AM_CFLAGS = -pedantic -Wall -Werror @THREAD_FLAGS@
|
||||||
|
+AM_CFLAGS = -pedantic -Wall @THREAD_FLAGS@
|
||||||
|
AM_LDFLAGS = -no-undefined -version-info @LT_CURRENT@:@LT_REVISION@:@LT_AGE@ \
|
||||||
|
@THREAD_FLAGS@
|
||||||
|
AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/src
|
||||||
|
diff --git a/src/posix/Makefile.in b/src/posix/Makefile.in
|
||||||
|
index ae2c053..d9abcf7 100644
|
||||||
|
--- a/src/posix/Makefile.in
|
||||||
|
+++ b/src/posix/Makefile.in
|
||||||
|
@@ -295,7 +295,7 @@ target_alias = @target_alias@
|
||||||
|
top_build_prefix = @top_build_prefix@
|
||||||
|
top_builddir = @top_builddir@
|
||||||
|
top_srcdir = @top_srcdir@
|
||||||
|
-@WIN32_FALSE@AM_CFLAGS = -pedantic -Wall -Werror @THREAD_FLAGS@
|
||||||
|
+@WIN32_FALSE@AM_CFLAGS = -pedantic -Wall @THREAD_FLAGS@
|
||||||
|
@WIN32_FALSE@AM_LDFLAGS = -no-undefined -version-info @LT_CURRENT@:@LT_REVISION@:@LT_AGE@ \
|
||||||
|
@WIN32_FALSE@ @THREAD_FLAGS@
|
||||||
|
|
||||||
|
--
|
||||||
|
2.16.2
|
||||||
|
|
||||||
Reference in New Issue
Block a user