source: packages/net/nzbget/Makefile @ 20611

Last change on this file since 20611 was 20611, checked in by arteq, 7 years ago

Add maintainer, add submenu, fix deps

File size: 1.8 KB
Line 
1#
2# Copyright (C) 2009 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:=nzbget
11PKG_VERSION:=0.6.0
12PKG_RELEASE:=2
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=@SF/nzbget
16PKG_MD5SUM:=eb95b3930abffb570e37af8d284c1f9d
17
18PKG_FIXUP:=libtool
19
20include $(INCLUDE_DIR)/package.mk
21
22TARGET_LDFLAGS+=-Wl,-rpath-link="$(STAGING_DIR)/usr/lib"
23TARGET_CFLAGS += $(FPIC)
24
25define Package/nzbget
26  SUBMENU:=NNTP
27  SECTION:=net
28  CATEGORY:=Network
29  DEPENDS:=+libxml2 +libpar2 +libopenssl +libpthread
30  URL:=http://nzbget.sourceforge.net/
31  TITLE:=Binary newsgrabber
32  MAINTAINER:=Artur Wronowski <arteqw@gmail.com>
33endef
34
35define Package/nzbget/description
36A command-line client/server based binary newsgrabber for nzb-files.
37endef
38
39CONFIGURE_ARGS += \
40        --disable-static \
41        --disable-nls \
42        --disable-curses \
43        --with-tlslib=OpenSSL \
44        --with-libpar2-includes=$(STAGING_DIR)/usr/include/libpar2 \
45        --with-libpar2-libraries=$(STAGING_DIR)/usr/lib \
46        --with-libsigc-includes=$(STAGING_DIR)/usr/include/sigc++-2.0 \
47        --with-libsigc-libraries=$(STAGING_DIR)/usr/lib \
48        --with-openssl-includes=$(STAGING_DIR)/usr/include \
49        --with-openssl-libraries=$(STAGING_DIR)/usr/lib \
50        , \
51        PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig"
52
53CONFIGURE_VARS += \
54        ac_cv_header_regex_h=no \
55        CPPFLAGS="-I$(STAGING_DIR)/usr/include/libxml2 $$$$CPPFLAGS" 
56       
57define Build/Compile
58        $(MAKE) -C $(PKG_BUILD_DIR) \
59        $(TARGET_CONFIGURE_OPTS) \
60        DESTDIR="$(PKG_INSTALL_DIR)" \
61        install all
62endef
63
64define Package/nzbget/install
65        $(INSTALL_DIR) $(1)/usr/sbin
66        $(INSTALL_BIN) $(PKG_BUILD_DIR)/nzbget $(1)/usr/sbin/
67        $(INSTALL_DIR) $(1)/etc
68        $(INSTALL_DATA) $(PKG_BUILD_DIR)/nzbget.conf.example $(1)/etc/nzbget.conf
69endef
70
71$(eval $(call BuildPackage,nzbget))
Note: See TracBrowser for help on using the repository browser.