BitTorrent btpd 0.13 package
[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:=0aafdd159edb8ad5f0064da87998b47d
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/Compile
72 $(MAKE) -C $(PKG_BUILD_DIR) \
73 HOSTCC="$(HOSTCC)" \
74 DESTDIR="$(PKG_INSTALL_DIR)" \
75 all install
76 endef
77
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/
83 endef
84
85 $(eval $(call BuildPackage,amule))