packages/net/bahamut/Makefile
cshore 97f62fb3ab [net] Instant Messaging: Moved bahamut IRC server to Instant Messagin submenu.
git-svn-id: svn://svn.openwrt.org/openwrt/packages@26071 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-03-12 06:25:44 +00:00

59 lines
1.3 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:=bahamut
PKG_VERSION:=1.8.6
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-release.tar.gz
PKG_SOURCE_URL:=http://bahamut.dal.net/download
PKG_MD5SUM:=a814a4e0ff1fabcf026ea8574b4a1e20
include $(INCLUDE_DIR)/package.mk
define Package/bahamut
SECTION:=net
CATEGORY:=Network
DEPENDS:=+libopenssl +zlib
SUBMENU:=Instant Messaging
TITLE:=Bahamut IRC server
URL:=http://bahamut.dal.net
endef
TARGET_CFLAGS += \
-DSYS_ERRLIST_DECLARED
define Build/Configure
$(call Build/Configure/Default,\
--with-maxconnections=64 \
--with-openssl="$(STAGING_DIR)/usr/lib" \
,\
ac_cv_func_dn_skipname=yes \
ZLIB_HOME="$(STAGING_DIR)/usr" \
)
endef
define Build/Compile
$(call Build/Compile/Default,\
prefix="$(PKG_INSTALL_DIR)/usr" \
INSTALL_DIR="$(PKG_INSTALL_DIR)" \
STAGING_DIR="$(STAGING_DIR)" \
all \
)
endef
define Package/bahamut/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_DIR) $(1)/etc/$(PKG_NAME)
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/ircd $(1)/usr/sbin
$(INSTALL_CONF) $(PKG_BUILD_DIR)/doc/*.{txt,conf} $(1)/etc/$(PKG_NAME)
endef
$(eval $(call BuildPackage,bahamut))