packages/lang/eggdrop/Makefile
hauke 83c14e180d [packages] Various Makefile cleanups.
Thanks to swalker.


git-svn-id: svn://svn.openwrt.org/openwrt/packages@16438 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-06-13 17:01:55 +00:00

56 lines
1.2 KiB
Makefile

#
# Copyright (C) 2008 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=eggdrop
PKG_VERSION:=1.6.17
PKG_RELEASE:=1
PKG_SOURCE:=eggdrop$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=ftp://ftp.eggheads.org/pub/eggdrop/source/1.6
PKG_MD5SUM:=68e181201483dee398f9904e8652e6ca
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)$(PKG_VERSION)
include $(INCLUDE_DIR)/package.mk
define Package/eggdrop
SECTION:=lang
CATEGORY:=Languages
TITLE:=EggDrop IRC BOT
DEPENDS:=+tcl
URL:=http://www.eggheads.org
endef
define Package/eggdrop/description
EggDrop IRC BOT
endef
CONFIGURE_ARGS+=\
--prefix="$(PKG_INSTALL_DIR)/eggdrop" \
--enable-threads \
--with-tcllib="$(STAGING_DIR)/usr/lib/libtcl8.4.so" \
--with-tclinc="$(STAGING_DIR)/usr/include/tcl.h"
define Build/Compile
$(MAKE) config -C $(PKG_BUILD_DIR)
$(MAKE) -C $(PKG_BUILD_DIR) \
DESTDIR="$(PKG_INSTALL_DIR)" \
all install; \
rm -Rvf $(PKG_INSTALL_DIR)/eggdrop/doc/*;\
rmdir $(PKG_INSTALL_DIR)/eggdrop/doc;
endef
define Package/eggdrop/install
$(INSTALL_DIR) $(1)/eggdrop
$(CP) $(PKG_INSTALL_DIR)/* $(1)/eggdrop
endef
$(eval $(call BuildPackage,eggdrop))