packages/smtptrapd: use new service functions
[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.2.6
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=@SF/amule
16 PKG_MD5SUM:=530d9b48187e36f78fc21bb19e94326d
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 --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 --disable-crypto \
59 \
60 --with-zlib="$(STAGING_DIR)/usr" \
61 --with-gdlib-prefix="$(STAGING_DIR)/usr" \
62 --with-libpng-prefix="$(STAGING_DIR)/usr" \
63 --with-wx-prefix="$(STAGING_DIR)/usr" \
64 --with-crypto-prefix="$(STAGING_DIR)/usr" \
65 --with-libiconv-prefix="$(ICONV_PREFIX)" \
66 --with-libintl-prefix="$(INTL_PREFIX)" \
67 --without-x \
68
69 TARGET_LDFLAGS += \
70 -liconv
71
72 define Build/Compile
73 $(MAKE) -C $(PKG_BUILD_DIR) \
74 HOSTCC="$(HOSTCC)" \
75 DESTDIR="$(PKG_INSTALL_DIR)" \
76 all install
77 endef
78
79 define Package/amule/install
80 $(INSTALL_DIR) $(1)/usr/bin
81 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/amule{cmd,d,web} $(1)/usr/bin/
82 $(INSTALL_DIR) $(1)/usr/share
83 $(CP) $(PKG_INSTALL_DIR)/usr/share/amule $(1)/usr/share/
84 endef
85
86 $(eval $(call BuildPackage,amule))