2 # Copyright (C) 2007 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=@SF/amule
17 PKG_MD5SUM:=0aafdd159edb8ad5f0064da87998b47d
19 PKG_BUILD_DEPENDS:=libgd
21 include $(INCLUDE_DIR)/package.mk
27 TITLE:=A multi-platform eMule-like ed2k client
28 URL:=http://www.amule.org/
29 DEPENDS:=+libpng +libpthread +libncurses +libreadline +libwxbase
41 --disable-monolithic \
42 --enable-amule-daemon \
44 --disable-amulecmdgui \
46 --disable-webservergui \
54 --disable-utf8-systray \
55 --enable-embedded-crypto \
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 --without-crypto-prefix \
64 --without-libiconv-prefix \
65 --without-libintl-prefix \
72 $(MAKE) -C $(PKG_BUILD_DIR) \
74 DESTDIR="$(PKG_INSTALL_DIR)" \
78 define Package/amule/install
79 $(INSTALL_DIR) $(1)/usr/bin
80 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/amule{cmd,d,web} $(1)/usr/bin/
81 $(INSTALL_DIR) $(1)/usr/share
82 $(CP) $(PKG_INSTALL_DIR)/usr/share/amule $(1)/usr/share/
85 $(eval $(call BuildPackage,amule))