2 # Copyright (C) 2007-2008 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=@SF/amule
16 PKG_MD5SUM:=0aafdd159edb8ad5f0064da87998b47d
18 PKG_BUILD_DEPENDS:=libgd
20 include $(INCLUDE_DIR)/package.mk
26 TITLE:=A multi-platform eMule-like ed2k client
27 URL:=http://www.amule.org/
28 DEPENDS:=+libpng +libpthread +libncurses +libreadline +libwxbase
40 --disable-monolithic \
41 --enable-amule-daemon \
43 --disable-amulecmdgui \
45 --disable-webservergui \
53 --disable-utf8-systray \
54 --enable-embedded-crypto \
58 --with-zlib="$(STAGING_DIR)/usr" \
59 --with-gdlib-prefix="$(STAGING_DIR)/usr" \
60 --with-libpng-prefix="$(STAGING_DIR)/usr" \
61 --with-wx-prefix="$(STAGING_DIR)/usr" \
62 --without-crypto-prefix \
63 --without-libiconv-prefix \
64 --without-libintl-prefix \
68 $(MAKE) -C $(PKG_BUILD_DIR) \
70 DESTDIR="$(PKG_INSTALL_DIR)" \
74 define Package/amule/install
75 $(INSTALL_DIR) $(1)/usr/bin
76 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/amule{cmd,d,web} $(1)/usr/bin/
77 $(INSTALL_DIR) $(1)/usr/share
78 $(CP) $(PKG_INSTALL_DIR)/usr/share/amule $(1)/usr/share/
81 $(eval $(call BuildPackage,amule))