34525b32d7776c67e43ffec16a4af22f7fb12e31
[openwrt/svn-archive/archive.git] / lang / eggdrop / Makefile
1 #
2 # Copyright (C) 2008 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:=eggdrop
11 PKG_VERSION:=1.6.17
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=eggdrop$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=ftp://ftp.eggheads.org/pub/eggdrop/source/1.6
16 PKG_MD5SUM:=68e181201483dee398f9904e8652e6ca
17 PKG_CAT:=bzcat
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)$(PKG_VERSION)
20 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/eggdrop
25 SECTION:=lang
26 CATEGORY:=Language
27 TITLE:=EggDrop IRC BOT
28 DEPENDS:=+tcl
29 URL:=http://www.eggheads.org
30 endef
31
32 define Package/eggdrop/description
33 EggDrop IRC BOT
34 endef
35
36 CONFIGURE_ARGS+=\
37 --prefix="$(PKG_INSTALL_DIR)/eggdrop" \
38 --enable-threads \
39 --with-tcllib="$(STAGING_DIR)/usr/lib/libtcl8.4.so" \
40 --with-tclinc="$(STAGING_DIR)/usr/include/tcl.h"
41
42 define Build/Compile
43 $(MAKE) config -C $(PKG_BUILD_DIR)
44 $(MAKE) -C $(PKG_BUILD_DIR) \
45 DESTDIR="$(PKG_INSTALL_DIR)" \
46 all install; \
47 rm -Rvf $(PKG_INSTALL_DIR)/eggdrop/doc/*;\
48 rmdir $(PKG_INSTALL_DIR)/eggdrop/doc;
49 endef
50
51
52 define Package/eggdrop/install
53 $(INSTALL_DIR) $(1)/eggdrop
54 $(CP) $(PKG_INSTALL_DIR)/* $(1)/eggdrop
55 endef
56
57 $(eval $(call BuildPackage,eggdrop))