Root/offrss/Makefile

1include $(TOPDIR)/rules.mk
2
3PKG_NAME:=offrss
4PKG_VERSION:=trunk
5PKG_RELEASE:=1
6
7PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).zip
8PKG_SOURCE_URL:=http://downloads.qi-hardware.com/software/mirror-openwrt-sources/
9PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
10UNPACK_CMD=unzip $(DL_DIR)/$(PKG_SOURCE) -d $(1)/../
11
12include $(INCLUDE_DIR)/package.mk
13include $(INCLUDE_DIR)/nls.mk
14
15define Package/offrss
16    MAINTAINER:="Xiangfu Liu" <xiangfu@sharism.cc>
17    SECTION:=network
18    CATEGORY:=Network
19    TITLE:=Offrss
20    URL:=http://vicerveza.homeunix.net/~viric/cgi-bin/offrss/doc/trunk/doc/home.wiki
21    DEPENDS:=+libcurl +libnxml +libmrss
22endef
23
24TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include
25TARGET_LDFLAGS += -Wl,-rpath-link -Wl,$(STAGING_DIR)/usr/lib -liconv
26
27define Package/offrss/description
28    offrss - Offline RSS reader
29endef
30
31define Build/Compile
32    $(call Build/Compile/Default)
33endef
34
35define Package/offrss/install
36    $(INSTALL_DIR) $(1)/usr/bin
37    $(INSTALL_BIN) ./files/offrss $(1)/usr/bin
38
39    $(INSTALL_DIR) $(1)/usr/share/offrss
40    $(CP) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/share/offrss/
41    $(CP) ./files/feedurls.txt $(1)/usr/share/offrss/
42endef
43
44$(eval $(call BuildPackage,offrss))
45

Archive Download this file



interactive