Added cdparanoia package
authorHamish Guthrie <hcg@openwrt.org>
Thu, 6 Nov 2008 16:39:53 +0000 (16:39 +0000)
committerHamish Guthrie <hcg@openwrt.org>
Thu, 6 Nov 2008 16:39:53 +0000 (16:39 +0000)
SVN-Revision: 13132

utils/cdparanoia/Makefile [new file with mode: 0644]
utils/cdparanoia/patches/010-fix_configure.patch [new file with mode: 0644]

diff --git a/utils/cdparanoia/Makefile b/utils/cdparanoia/Makefile
new file mode 100644 (file)
index 0000000..a271d02
--- /dev/null
@@ -0,0 +1,50 @@
+# 
+# Copyright (C) 2006-2008 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+# $Id$
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=cdparanoia-III
+PKG_VERSION:=10.2
+PKG_RELEASE:=1
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).src.tgz
+PKG_SOURCE_URL:=http://downloads.xiph.org/releases/cdparanoia/
+PKG_SOURCE_TARGETDIR:=$(PKG_NAME)-$(PKG_VERSION)
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/cdparanoia
+  SECTION:=utils
+  CATEGORY:=Utilities
+  TITLE:=Cdparanoia
+  URL:=http://www.xiph.org/paranoia/index.html
+endef
+
+#define Build/Configure
+#      echo "Build/Configure"
+#        $(call Build/Configure/Default)
+#endef
+
+#define Build/Compile
+#endef
+
+define Build/InstallDev
+       echo "Build/InstallDev"
+endef
+
+define Package/cdparanoia/install
+       echo "package/cdparanoia/install"
+       $(INSTALL_DIR) $(1)/usr/lib
+       $(INSTALL_DIR) $(1)/usr/bin
+       $(CP) $(PKG_BUILD_DIR)/cdparanoia $(1)/usr/bin
+#      $(CP) $(PKG_BUILD_DIR)/paranoia/libcdda_paranoia.so.0.$(PKG_VERSION) $(1)/usr/lib
+       $(CP) $(PKG_BUILD_DIR)/paranoia/libcdda_paranoia.so.* $(1)/usr/lib
+       $(CP) $(PKG_BUILD_DIR)/interface/libcdda_interface.so.* $(1)/usr/lib
+endef
+
+$(eval $(call BuildPackage,cdparanoia))
diff --git a/utils/cdparanoia/patches/010-fix_configure.patch b/utils/cdparanoia/patches/010-fix_configure.patch
new file mode 100644 (file)
index 0000000..3fa76a0
--- /dev/null
@@ -0,0 +1,40 @@
+Index: cdparanoia-10.2/Makefile.in
+===================================================================
+--- cdparanoia-10.2.orig/Makefile.in   2008-11-06 15:17:28.000000000 +0100
++++ cdparanoia-10.2/Makefile.in        2008-11-06 15:19:12.000000000 +0100
+@@ -8,12 +8,12 @@
+ srcdir=@srcdir@
+ @SET_MAKE@
+-FLAGS=@TYPESIZES@ @CFLAGS@
+-OPT=@OPT@ $(FLAGS)
+-DEBUG=@DEBUG@ $(FLAGS)
++#FLAGS=@TYPESIZES@ @CFLAGS@
++#OPT=@OPT@ $(FLAGS)
++#DEBUG=@DEBUG@ $(FLAGS)
+ CC=@CC@
+ LD=@CC@
+-LDFLAGS=@LDFLAGS@ $(FLAGS)
++LDFLAGS=@LDFLAGS@
+ AR=@AR@
+ RANLIB=@RANLIB@
+ INSTALL=@INSTALL@
+@@ -43,7 +43,8 @@
+ all:  
+       cd interface && $(MAKE) all
+       cd paranoia && $(MAKE) all
+-      $(MAKE) cdparanoia CFLAGS="$(OPT)" 
++      $(MAKE) cdparanoia 
++#CFLAGS="$(OPT)" 
+ debug:  
+       cd interface && $(MAKE) debug
+@@ -87,7 +88,7 @@
+               $(LIBDIR)/libcdda_paranoia.so
+ cdparanoia:   $(OFILES) $(LIBDEP)
+-              $(LD) $(CFLAGS) $(LDFLAGS) $(OFILES) \
++              $(CC) $(CFLAGS) $(LDFLAGS) $(OFILES) \
+               -L$(PWD)/paranoia -L$(PWD)/interface \
+               -o cdparanoia $(LIBS)