Makefile cleanups, round 6 and last
[openwrt/svn-archive/archive.git] / net / reaim / Makefile
1 #
2 # Copyright (C) 2006 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:=reaim
12 PKG_VERSION:=0.8
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/reaim
17 PKG_MD5SUM:=647d2ab72ec454f89294accfb3182c09
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/reaim
22 SUBMENU:=Instant Messaging
23 SECTION:=net
24 CATEGORY:=Network
25 DEPENDS:=+iptables
26 TITLE:=A transparent AIM / MSN proxy
27 URL:=http://reaim.sourceforge.net/
28 endef
29
30 define Package/reaim/description
31 ReAIM is a proxy for file transfers with MSN/AIM.
32 endef
33
34 define Build/Compile
35 $(call Build/Compile/Default, \
36 CFLAGS="$(TARGET_CFLAGS)" \
37 DESTDIR="$(PKG_INSTALL_DIR)" \
38 all install \
39 )
40 endef
41
42 define Package/reaim/install
43 $(INSTALL_DIR) $(1)/usr/sbin
44 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/reaim $(1)/usr/sbin/
45 $(INSTALL_DIR) $(1)/etc/init.d
46 $(INSTALL_BIN) ./files/reaim.init $(1)/etc/init.d/reaim
47 endef
48
49 $(eval $(call BuildPackage,reaim))