[packages] Various Makefile cleanups.
[packages.git] / net / dircproxy / Makefile
1 #
2 # Copyright (C) 2006,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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=dircproxy
11 PKG_VERSION:=1.2.0-beta2
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz
15 PKG_SOURCE_URL:=http://dircproxy.googlecode.com/files/
16 PKG_MD5SUM:=850443437f709276ff21a173bbf98456
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/dircproxy
21   SUBMENU:=Instant Messaging
22   SECTION:=net
23   CATEGORY:=Network
24   TITLE:=An IRC proxy server
25   URL:=http://dircproxy.googlecode.com/
26 endef
27
28 # uses Build/Configure/Default
29
30 define Build/Compile
31         $(MAKE) -C $(PKG_BUILD_DIR) \
32                 DESTDIR="$(PKG_INSTALL_DIR)" \
33                 all install
34 endef
35
36 define Package/dircproxy/install
37         $(INSTALL_DIR) $(1)/usr/bin
38         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dircproxy{,-crypt} $(1)/usr/bin/
39 endef
40
41 $(eval $(call BuildPackage,dircproxy))