Date:2010-07-28 14:26:27 (10 years 6 months ago)
Author:Jiri Brozovsky
Commit:145395cd595a9789b7daea5700db83afd20b999a
Message:Initial port of Snownews RSS reader to OpenWRT.

Files: snownews/Makefile (1 diff)
snownews/patches/Makefile.patch (1 diff)

Change Details

snownews/Makefile
1#
2# Copyright (C) 2006 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=snownews
11PKG_VERSION:=1.5.12
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=http://kiza.kcore.de/media/software/snownews/
16PKG_MD5SUM:=80da8943fc5aa96571924aec0087d4c0
17
18#
19
20include $(INCLUDE_DIR)/package.mk
21
22define Package/snownews
23    SECTION:=utils
24    CATEGORY:=Utilities
25    DEPENDS:=+libncurses +libxml2 +libopenssl +zlib
26    TITLE:=SnowNews
27    URL:=http://kiza.kcore.de/software/snownews/
28endef
29
30define Package/snownews/description
31    RSS feed reader
32endef
33
34define Build/Configure
35    $(call Build/Compile/Default,\
36    EXTRA_CFLAGS="-I$(STAGING_DIR)/usr/lib/libintl/include -I$(STAGING_DIR)/usr/lib/libiconv/include -I$(STAGING_DIR)/usr/include"\
37    EXTRA_LDFLAGS="-L$(STAGING_DIR)/usr/lib/ -L$(STAGING_DIR)/usr/lib/libintl/lib -L$(STAGING_DIR)/usr/lib/libiconv/lib -liconv -lcharset -lintl -lm -lz "\
38        )
39endef
40
41define Package/snownews/install
42    $(INSTALL_DIR) $(1)/usr/bin
43    $(INSTALL_BIN) $(PKG_BUILD_DIR)/snownews $(1)/usr/bin
44    $(STRIP) $(1)/usr/bin/snownews
45endef
46
47$(eval $(call BuildPackage,snownews))
snownews/patches/Makefile.patch
1--- snownews-1.5.12/Makefile 2009-09-17 08:44:27.000000000 +0200
2@@ -6,7 +6,9 @@
3
4 ### Compiler/linker flags ###
5 ### Generated via configure ###
6-include platform_settings
7+PREFIX= /usr
8+CFLAGS= -Wall -Wno-format-y2k -O2 -DLOCALEPATH="\"$(LOCALEPATH)\"" -DOS=\"Linux\" -I/usr/include/libxml2 $(EXTRA_CFLAGS)
9+LDFLAGS= -lncurses -lcrypto -lxml2 $(EXTRA_LDFLAGS)
10
11 ### Object files ###
12 OBJFILES= main.o netio.o interface.o xmlparse.o updatecheck.o conversions.o dialog.o ui-support.o categories.o about.o cookies.o setup.o net-support.o digcalc.o filters.o io-internal.o os-support.o zlib_interface.o support.o

Archive Download the corresponding diff file



interactive