Fix wrong compile dependency, closes #501
[openwrt.git] / openwrt / package / weechat / Makefile
1 # $Id: buildroot-documentation.html,v 1.7.4.3 2005/09/04 10:44:06 wbx Exp $
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=weechat
6 PKG_VERSION:=0.1.8
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=73d6bc211ac32c597f0d278506480a20
9
10 PKG_SOURCE_URL:=http://weechat.flashtux.org/download/
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
12 PKG_CAT:=zcat
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
16
17 include $(TOPDIR)/package/rules.mk
18
19 $(eval $(call PKG_template,WEECHAT,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20
21 PKG_DEPEND:=libncurses
22
23 ifeq ($(BR2_COMPILE_WEECHAT_WITH_TLS),y)
24 ENABLE_TLS:=--with-libgnutls-prefix=$(STAGING_DIR)/usr
25 PKG_DEPEND += , gnutls
26 else
27 ENABLE_TLS:=--disable-gnutls
28 endif
29
30 ifneq ($(BR2_COMPILE_WEECHAT_WITH_LUA),y)
31 DISABLE_LUA:=--disable-lua
32 else
33 PKG_DEPEND+=, liblua
34 endif
35
36
37 $(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.prepared
38 (cd $(PKG_BUILD_DIR); \
39 $(TARGET_CONFIGURE_OPTS) \
40 CFLAGS="$(TARGET_CFLAGS)" \
41 CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
42 LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
43 ./configure \
44 --target=$(GNU_TARGET_NAME) \
45 --host=$(GNU_TARGET_NAME) \
46 --build=$(GNU_HOST_NAME) \
47 --prefix=/usr \
48 --sysconfdir=/etc \
49 --disable-nls \
50 $(ENABLE_TLS) \
51 --with-debug=0 \
52 --disable-perl \
53 --disable-python \
54 --disable-ruby \
55 $(DISABLE_LUA) \
56 );
57 touch $@
58
59 $(PKG_BUILD_DIR)/.built:
60 rm -rf $(PKG_INSTALL_DIR)
61 mkdir -p $(PKG_INSTALL_DIR)
62 $(MAKE) -C $(PKG_BUILD_DIR) \
63 DESTDIR="$(PKG_INSTALL_DIR)" \
64 all install
65 touch $@
66
67 $(IPKG_WEECHAT):
68 install -d -m0755 $(IDIR_WEECHAT)/usr/bin
69 cp -fpR $(PKG_INSTALL_DIR)/usr/bin/weechat-curses $(IDIR_WEECHAT)/usr/bin
70 echo "Depends: $(PKG_DEPEND)" >> $(IDIR_WEECHAT)/CONTROL/control
71 $(RSTRIP) $(IDIR_WEECHAT)
72 $(IPKG_BUILD) $(IDIR_WEECHAT) $(PACKAGE_DIR)
73
74 mostlyclean:
75 make -C $(PKG_BUILD_DIR) clean
76 rm $(PKG_BUILD_DIR)/.built
This page took 0.045157 seconds and 5 git commands to generate.