summaryrefslogtreecommitdiff
path: root/package/weechat/Makefile
blob: 1e1a5023a78b14626625175495d7b1c1c3aaf574 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# $Id$
#-
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include ${TOPDIR}/rules.mk

PKG_NAME:=		weechat
PKG_VERSION:=		0.1.8
PKG_RELEASE:=		2
PKG_MD5SUM:=		73d6bc211ac32c597f0d278506480a20

MASTER_SITES:=		http://weechat.flashtux.org/download/

include ${TOPDIR}/mk/package.mk

PKG_DEPEND:=		libncurses libiconv

ifeq (${ADK_COMPILE_WEECHAT_WITH_TLS},y)
ENABLE_TLS:=		--with-libgnutls-prefix=${STAGING_DIR}/usr
PKG_DEPEND+=		gnutls
else
ENABLE_TLS:=		--disable-gnutls
endif

ifneq (${ADK_COMPILE_WEECHAT_WITH_LUA},y)
DISABLE_LUA:=		--disable-lua
else
PKG_DEPEND+=		liblua
endif

$(eval $(call PKG_template,WEECHAT,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${ARCH},${PKG_DEPEND}))

CONFIGURE_STYLE:=	gnu
CONFIGURE_ARGS+=	${ENABLE_TLS} \
			--with-debug=0 \
			--disable-perl \
			--disable-python \
			--disable-ruby \
			--with-libiconv-prefix='${STAGING_DIR}/usr' \
			${DISABLE_LUA}
BUILD_STYLE:=		auto
INSTALL_STYLE:=		auto

post-install:
	${INSTALL_DIR} ${IDIR_WEECHAT}/usr/bin/
	${INSTALL_BIN} ${WRKINST}/usr/bin/weechat-curses ${IDIR_WEECHAT}/usr/bin/

include ${TOPDIR}/mk/pkg-bottom.mk