02aa01102b6f024619e840567d640369af812339
[openwrt/svn-archive/archive.git] / net / amule / Makefile
1 #
2 # Copyright (C) 2007 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=aMule
12 PKG_VERSION:=2.1.3
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=@SF/amule
17 PKG_MD5SUM:=
18
19 PKG_BUILD_DEPENDS:=libgd
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/amule
24 SUBMENU:=P2P
25 SECTION:=net
26 CATEGORY:=Network
27 TITLE:=A multi-platform eMule-like ed2k client
28 URL:=http://www.amule.org/
29 DEPENDS:=+libpng +libpthread +libncurses +libreadline +libwxbase
30 endef
31
32 CONFIGURE_ARGS+= \
33 --enable-shared \
34 --disable-static \
35 --disable-rpath \
36 --with-gnu-ld \
37 --disable-ccache \
38 --disable-debug \
39 --disable-optimize \
40 --disable-profile \
41 --disable-monolithic \
42 --enable-amule-daemon \
43 --enable-amulecmd \
44 --disable-amulecmdgui \
45 --enable-webserver \
46 --disable-webservergui \
47 --disable-amule-gui \
48 --disable-cas \
49 --disable-wxcas \
50 --disable-ed2k \
51 --disable-alc \
52 --disable-alcc \
53 --disable-systray \
54 --disable-utf8-systray \
55 --enable-embedded-crypto \
56 --enable-gsocket \
57 --disable-gtktest \
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 --without-crypto-prefix \
64 --without-libiconv-prefix \
65 --without-libintl-prefix \
66 --without-x \
67
68 CONFIGURE_VARS+= \
69 CXX="g++-uc+std" \
70
71 define Build/Configure
72 $(call Build/Configure/Default,)
73 endef
74
75 define Build/Compile
76 $(MAKE) -C $(PKG_BUILD_DIR) \
77 HOSTCC="$(HOSTCC)" \
78 DESTDIR="$(PKG_INSTALL_DIR)" \
79 all install
80 endef
81
82 define Package/amule/install
83 $(INSTALL_DIR) $(1)/usr/bin
84 $(CP) $(PKG_INSTALL_DIR)/usr/bin/amule{cmd,d,web} $(1)/usr/bin/
85 $(INSTALL_DIR) $(1)/usr/share
86 $(CP) $(PKG_INSTALL_DIR)/usr/share/amule $(1)/usr/share/
87 endef
88
89 $(eval $(call BuildPackage,amule))