014bc1b6277379cb97500e5d1ecdee150163bf0e
[openwrt/svn-archive/archive.git] / net / opendchub / 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:=opendchub
12 PKG_VERSION:=0.7.15
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/opendchub
17 PKG_MD5SUM:=8f9ab5bb7f85730f4b1ce7cceb6aef96
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/opendchub
26 SECTION:=net
27 CATEGORY:=Network
28 DEPENDS:=+libopenssl +libpthread
29 TITLE:=software for the Direct Connect network
30 DESCRIPTION:=\
31 Open DC hub is a Unix/Linux version of the hub software\\\
32 for the Direct Connect network
33 URL:=http://opendchub.sourceforge.net
34 endef
35
36 define Build/Configure
37 $(call Build/Configure/Default,\
38 --disable-perl \
39 )
40 endef
41
42 define Build/Compile
43 $(call Build/Compile/Default,\
44 DESTDIR="$(PKG_INSTALL_DIR)" \
45 all install \
46 )
47 endef
48
49 define Package/opendchub/install
50 $(INSTALL_DIR) $(1)/usr/bin
51 $(CP) $(PKG_INSTALL_DIR)/usr/bin/opendchub $(1)/usr/bin/
52 endef
53
54 $(eval $(call BuildPackage,opendchub))