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