2009-09-28 19:06:56 +00:00
|
|
|
#
|
2009-09-27 21:19:07 +00:00
|
|
|
# Copyright (C) 2007-2009 OpenWrt.org
|
2007-09-23 15:35:04 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=aMule
|
2009-09-28 19:06:56 +00:00
|
|
|
PKG_VERSION:=2.2.6
|
2009-09-27 21:19:07 +00:00
|
|
|
PKG_RELEASE:=1
|
2007-09-23 15:35:04 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
|
|
|
PKG_SOURCE_URL:=@SF/amule
|
2009-09-28 19:06:56 +00:00
|
|
|
PKG_MD5SUM:=530d9b48187e36f78fc21bb19e94326d
|
2007-09-23 15:35:04 +00:00
|
|
|
|
|
|
|
PKG_BUILD_DEPENDS:=libgd
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2011-02-02 18:54:24 +00:00
|
|
|
include $(INCLUDE_DIR)/nls.mk
|
2007-09-23 15:35:04 +00:00
|
|
|
|
|
|
|
define Package/amule
|
|
|
|
SUBMENU:=P2P
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
TITLE:=A multi-platform eMule-like ed2k client
|
|
|
|
URL:=http://www.amule.org/
|
2009-09-27 21:19:07 +00:00
|
|
|
DEPENDS:=+libpng +libpthread +libncurses +libreadline +libwxbase +libcryptoxx
|
2007-09-23 15:35:04 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
CONFIGURE_ARGS+= \
|
|
|
|
--enable-shared \
|
|
|
|
--disable-static \
|
|
|
|
--disable-rpath \
|
|
|
|
--with-gnu-ld \
|
|
|
|
--disable-ccache \
|
|
|
|
--disable-debug \
|
|
|
|
--disable-optimize \
|
|
|
|
--disable-profile \
|
|
|
|
--disable-monolithic \
|
|
|
|
--enable-amule-daemon \
|
|
|
|
--enable-amulecmd \
|
|
|
|
--disable-amulecmdgui \
|
|
|
|
--enable-webserver \
|
|
|
|
--disable-webservergui \
|
|
|
|
--disable-amule-gui \
|
|
|
|
--disable-cas \
|
|
|
|
--disable-wxcas \
|
|
|
|
--disable-ed2k \
|
|
|
|
--disable-alc \
|
|
|
|
--disable-alcc \
|
|
|
|
--disable-systray \
|
|
|
|
--disable-utf8-systray \
|
|
|
|
--enable-embedded-crypto \
|
|
|
|
--enable-gsocket \
|
|
|
|
--disable-gtktest \
|
2009-09-27 21:19:07 +00:00
|
|
|
--disable-crypto \
|
2007-09-23 15:35:04 +00:00
|
|
|
\
|
|
|
|
--with-zlib="$(STAGING_DIR)/usr" \
|
|
|
|
--with-gdlib-prefix="$(STAGING_DIR)/usr" \
|
|
|
|
--with-libpng-prefix="$(STAGING_DIR)/usr" \
|
|
|
|
--with-wx-prefix="$(STAGING_DIR)/usr" \
|
2009-09-27 21:19:07 +00:00
|
|
|
--with-crypto-prefix="$(STAGING_DIR)/usr" \
|
2011-02-02 18:54:24 +00:00
|
|
|
--with-libiconv-prefix="$(ICONV_PREFIX)" \
|
|
|
|
--with-libintl-prefix="$(INTL_PREFIX)" \
|
2007-09-23 15:35:04 +00:00
|
|
|
--without-x \
|
|
|
|
|
2011-02-02 18:54:24 +00:00
|
|
|
TARGET_LDFLAGS += \
|
|
|
|
-liconv
|
|
|
|
|
2007-09-23 15:35:04 +00:00
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
HOSTCC="$(HOSTCC)" \
|
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
|
|
|
all install
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/amule/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
2007-12-09 18:59:01 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/amule{cmd,d,web} $(1)/usr/bin/
|
2007-09-23 15:35:04 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/share
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/share/amule $(1)/usr/share/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,amule))
|