Port tmsnc to -ng
[openwrt/svn-archive/archive.git] / net / tmsnc / 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:=tmsnc
12 PKG_VERSION:=0.3.1
13 PKG_RELEASE:=1
14 PKG_MD5SUM:=3b30e5dab0b1b679d2b945c3a5713636
15 PKG_SOURCE_URL:=@SF/tmsnc
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
17 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
18 PKG_CAT:=zcat
19
20 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/tmsnc
25 SECTION:=net
26 CATEGORY:=Network
27 DEPENDS:=+libiconv +libncurses +libopenssl
28 TITLE:=text-based MSN client
29 DESCRIPTION:=TMSNC is a textbased (console) MSN client written in C.
30 URL:=http://tmsnc.sourceforge.net
31 endef
32
33 define Build/Configure
34 $(call Build/Configure/Default,--with-libiconv-prefix=$(STAGING_DIR)/usr \
35 --with-openssl="$(STAGING_DIR)/usr" \
36 --with-ncurses="$(STAGING_DIR)/usr" \
37 --with-gnu-ld, ac_cv_func_malloc_0_nonnull=yes \
38 ac_cv_func_realloc_0_nonnull=yes)
39 endef
40
41 define Build/Compile
42 $(call Build/Compile/Default,DESTDIR="$(PKG_INSTALL_DIR)" \
43 CFLAGS="$(TARGET_CFLAGS)" \
44 install)
45 rm -rf $(PKG_INSTALL_DIR)/usr/man
46 endef
47
48 define Package/tmsnc/install
49 mkdir -p $(1)
50 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
51 endef
52
53 $(eval $(call BuildPackage,tmsnc))