poco: moved to github
[openwrt/svn-archive/archive.git] / net / amule / Makefile
1 #
2 # Copyright (C) 2007-2009 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.3.1
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=@SF/amule
16 PKG_MD5SUM:=31724290a440943f5b05d4dca413fe02
17
18 PKG_BUILD_DEPENDS:=libgd
19
20 include $(INCLUDE_DIR)/package.mk
21 include $(INCLUDE_DIR)/nls.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 +libcryptoxx
30 endef
31
32 CONFIGURE_ARGS+= \
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 --enable-webserver \
44 --disable-amule-gui \
45 --disable-cas \
46 --disable-wxcas \
47 --disable-ed2k \
48 --disable-alc \
49 --disable-alcc \
50 --disable-fileview \
51 --disable-plasmamule \
52 --without-wxdebug \
53 \
54 --with-zlib="$(STAGING_DIR)/usr" \
55 --with-gdlib-prefix="$(STAGING_DIR)/usr" \
56 --with-libpng-prefix="$(STAGING_DIR)/usr" \
57 --with-wx-prefix="$(STAGING_DIR)/usr" \
58 --with-crypto-prefix="$(STAGING_DIR)/usr" \
59 --with-libiconv-prefix="$(ICONV_PREFIX)" \
60 --with-libintl-prefix="$(INTL_PREFIX)" \
61 --without-x \
62
63 TARGET_LDFLAGS += \
64 -liconv
65
66 define Build/Compile
67 $(MAKE) -C $(PKG_BUILD_DIR) \
68 HOSTCC="$(HOSTCC)" \
69 DESTDIR="$(PKG_INSTALL_DIR)" \
70 all install
71 endef
72
73 define Package/amule/install
74 $(INSTALL_DIR) $(1)/usr/bin
75 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/amule{cmd,d,web} $(1)/usr/bin/
76 $(INSTALL_DIR) $(1)/usr/share
77 $(CP) $(PKG_INSTALL_DIR)/usr/share/amule $(1)/usr/share/
78 endef
79
80 $(eval $(call BuildPackage,amule))