This is one of my first patches for Openwrt. Please let me know if there are any improvements in style and submission.
Signed-off-by: Adam Chasen <a...@chasen.name> Index: multimedia/pianobar/patches/001-Makefile-flags.patch =================================================================== --- multimedia/pianobar/patches/001-Makefile-flags.patch (revision 0) +++ multimedia/pianobar/patches/001-Makefile-flags.patch (revision 0) @@ -0,0 +1,15 @@ +--- a/Makefile ++++ b/Makefile +@@ -6,9 +6,9 @@ LIBDIR:=${PREFIX}/lib + INCDIR:=${PREFIX}/include + MANDIR:=${PREFIX}/share/man + DYNLINK:=0 +-CFLAGS:=-O2 -DNDEBUG +-LDFLAGS:= +-CC:=c99 ++CFLAGS+=-O2 -DNDEBUG -std=c99 ++LDFLAGS+= ++#CC:=c99 + + PIANOBAR_DIR=src + PIANOBAR_SRC=\ Index: multimedia/pianobar/Makefile =================================================================== --- multimedia/pianobar/Makefile (revision 0) +++ multimedia/pianobar/Makefile (revision 0) @@ -0,0 +1,45 @@ +# +# Copyright (C) 2011 Adam Chasen (a...@chasen.name) +# +# This is free software, licensed under the GNU General Public License v3. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=pianobar +PKG_VERSION:=2011.04.27 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 +PKG_SOURCE_URL:=http://6xq.net/static/projects/pianobar/ +PKG_MD5SUM:=b92cba3cbcf1ee9bc221118a85d23dcd + +PKG_FIXUP:=libtool +PKG_INSTALL:=1 + +include $(INCLUDE_DIR)/package.mk + +define Package/pianobar + SECTION:=multimedia + CATEGORY:=Multimedia + DEPENDS:=+libao +libmad +faad2 + TITLE:=Pianobar: Pandora CLI + URL:=http://6xq.net/projects/pianobar/ +endef + +define Package/pianobar/description + TODO +endef + +define Build/Configure + $(call Build/Configure/Default, \ + , \ + ) +endef + +define Package/pianobar/install + $(INSTALL_DIR) $(1)/usr/bin + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/local/bin/pianobar $(1)/usr/bin/ +endef + +$(eval $(call BuildPackage,pianobar)) _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel