From 138520468ebd267352d8791094db880ff623cb3e Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Tue, 20 Feb 2024 08:45:37 +0100 Subject: libcdada: new package --- package/libcdada/Makefile | 31 +++++++++++++++++++++++++++++ package/libcdada/patches/patch-configure_ac | 22 ++++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 package/libcdada/Makefile create mode 100644 package/libcdada/patches/patch-configure_ac (limited to 'package') diff --git a/package/libcdada/Makefile b/package/libcdada/Makefile new file mode 100644 index 000000000..4b18d20d5 --- /dev/null +++ b/package/libcdada/Makefile @@ -0,0 +1,31 @@ +# This file is part of the OpenADK project. OpenADK is copyrighted +# material, please see the LICENCE file in the top-level directory. + +include $(ADK_TOPDIR)/rules.mk + +PKG_NAME:= libcdada +PKG_VERSION:= 0.5.2 +PKG_RELEASE:= 1 +PKG_HASH:= 507f0b7bf8cb7533c22731c64d92737e7536866be7c7dd317b89709cd6529867 +PKG_DESCR:= basic data structures in C +PKG_SECTION:= libs/misc +PKG_SITES:= https://github.com/msune/libcdada/archive/refs/tags/ +PKG_OPTS:= dev + +DISTFILES:= v$(PKG_VERSION).tar.gz + +include $(ADK_TOPDIR)/mk/package.mk + +$(eval $(call PKG_template,LIBCDADA,libcdada,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION),$(PKG_OPTS))) + +AUTOTOOL_STYLE:= autogen +CONFIGURE_ARGS+= --disable-silent-rules \ + --without-tests \ + --without-examples + +libcdada-install: + $(INSTALL_DIR) $(IDIR_LIBCDADA)/usr/lib + $(CP) $(WRKINST)/usr/lib/libcdada*.so* \ + $(IDIR_LIBCDADA)/usr/lib + +include $(ADK_TOPDIR)/mk/pkg-bottom.mk diff --git a/package/libcdada/patches/patch-configure_ac b/package/libcdada/patches/patch-configure_ac new file mode 100644 index 000000000..b9d2dd11d --- /dev/null +++ b/package/libcdada/patches/patch-configure_ac @@ -0,0 +1,22 @@ +--- libcdada-0.5.2.orig/configure.ac 2023-11-07 23:04:41.000000000 +0100 ++++ libcdada-0.5.2/configure.ac 2024-02-20 07:03:02.007933771 +0100 +@@ -4,7 +4,7 @@ AC_INIT(LIBCDADA, m4_esyscmd_s(cat VERSI + AC_CONFIG_AUX_DIR([build-aux]) + AC_CONFIG_MACRO_DIR([m4]) + +-AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects]) ++AM_INIT_AUTOMAKE([-Wall foreign subdir-objects]) + + AC_GNU_SOURCE + +@@ -24,8 +24,8 @@ LT_INIT + AC_ENABLE_STATIC + + # Some useful default flags +-CFLAGS="-std=gnu89 -Werror -Wall $CFLAGS" +-CXXFLAGS="-Werror -Wall $CXXFLAGS" ++CFLAGS="-std=gnu89 -Wall $CFLAGS" ++CXXFLAGS="-Wall $CXXFLAGS" + AC_DEFINE([__STDC_FORMAT_MACROS], [], [Description]) + + # Check for Python3 -- cgit v1.2.3