aMule: update to 2.3.1
[openwrt/svn-archive/archive.git] / net / nzbget / Makefile
1 #
2 # Copyright (C) 2009-2012 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=nzbget
11 PKG_VERSION:=0.8.0
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/nzbget
16 PKG_MD5SUM:=c47f464fe988deeb4fc5381506c1fbe3
17
18 PKG_FIXUP:=autoreconf
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 TARGET_LDFLAGS+=-Wl,-rpath-link="$(STAGING_DIR)/usr/lib" -lcrypto -lsigc-2.0
24 TARGET_CFLAGS += $(FPIC)
25
26 define Package/nzbget
27 SUBMENU:=NNTP
28 SECTION:=net
29 CATEGORY:=Network
30 DEPENDS:=+libxml2 +libpar2 +libopenssl +libpthread +libncurses
31 URL:=http://nzbget.sourceforge.net/
32 TITLE:=Binary newsgrabber for nzb-files
33 MAINTAINER:=Artur Wronowski <arteqw@gmail.com>
34 endef
35
36 define Package/nzbget/description
37 A command-line client/server based binary newsgrabber for nzb-files.
38 endef
39
40 CONFIGURE_ARGS += \
41 --disable-nls \
42 --with-tlslib=OpenSSL \
43 --with-libpar2-includes=$(STAGING_DIR)/usr/include/libpar2 \
44 --with-libpar2-libraries=$(STAGING_DIR)/usr/lib \
45 --with-libsigc-includes=$(STAGING_DIR)/usr/include/sigc++-2.0 \
46 --with-libsigc-libraries=$(STAGING_DIR)/usr/lib \
47 --with-openssl-includes=$(STAGING_DIR)/usr/include \
48 --with-openssl-libraries=$(STAGING_DIR)/usr/lib \
49 --with-libcurses-includes=$(STAGING_DIR)/usr/include \
50 --with-libcurses-libraries=$(STAGING_DIR)/usr/lib \
51 , \
52 PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig"
53
54 CONFIGURE_VARS += \
55 ac_cv_header_regex_h=no \
56 CPPFLAGS="-I$(STAGING_DIR)/usr/include/libxml2 $$$$CPPFLAGS"
57
58 define Package/nzbget/install
59 $(INSTALL_DIR) $(1)/usr/bin
60 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/nzbget $(1)/usr/bin/
61 $(INSTALL_DIR) $(1)/etc
62 $(INSTALL_DATA) $(PKG_BUILD_DIR)/nzbget.conf.example $(1)/etc/nzbget.conf
63 endef
64
65 define Package/nzbget/conffiles
66 /etc/nzbget.conf
67 endef
68
69 $(eval $(call BuildPackage,nzbget))