[package] update amule to 2.2.5 (#3788)
[packages.git] / net / amule / Makefile
1
2 # Copyright (C) 2007-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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=aMule
11 PKG_VERSION:=2.2.5
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=@SF/amule
16 PKG_MD5SUM:=
17
18 PKG_BUILD_DEPENDS:=libgd
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/amule
23   SUBMENU:=P2P
24   SECTION:=net
25   CATEGORY:=Network
26   TITLE:=A multi-platform eMule-like ed2k client
27   URL:=http://www.amule.org/
28   DEPENDS:=+libpng +libpthread +libncurses +libreadline +libwxbase +libcryptoxx
29 endef
30
31 CONFIGURE_ARGS+= \
32         --enable-shared \
33         --disable-static \
34         --disable-rpath \
35         --with-gnu-ld \
36         --disable-ccache \
37         --disable-debug \
38         --disable-optimize \
39         --disable-profile \
40         --disable-monolithic \
41         --enable-amule-daemon \
42         --enable-amulecmd \
43         --disable-amulecmdgui \
44         --enable-webserver \
45         --disable-webservergui \
46         --disable-amule-gui \
47         --disable-cas \
48         --disable-wxcas \
49         --disable-ed2k \
50         --disable-alc \
51         --disable-alcc \
52         --disable-systray \
53         --disable-utf8-systray \
54         --enable-embedded-crypto \
55         --enable-gsocket \
56         --disable-gtktest \
57         --disable-crypto \
58         \
59         --with-zlib="$(STAGING_DIR)/usr" \
60         --with-gdlib-prefix="$(STAGING_DIR)/usr" \
61         --with-libpng-prefix="$(STAGING_DIR)/usr" \
62         --with-wx-prefix="$(STAGING_DIR)/usr" \
63         --with-crypto-prefix="$(STAGING_DIR)/usr" \
64         --without-libiconv-prefix \
65         --without-libintl-prefix \
66         --without-x \
67
68 define Build/Compile
69         $(MAKE) -C $(PKG_BUILD_DIR) \
70                 HOSTCC="$(HOSTCC)" \
71                 DESTDIR="$(PKG_INSTALL_DIR)" \
72                 all install
73 endef
74
75 define Package/amule/install
76         $(INSTALL_DIR) $(1)/usr/bin
77         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/amule{cmd,d,web} $(1)/usr/bin/
78         $(INSTALL_DIR) $(1)/usr/share
79         $(CP) $(PKG_INSTALL_DIR)/usr/share/amule $(1)/usr/share/
80 endef
81
82 $(eval $(call BuildPackage,amule))