1 # $Id: buildroot-documentation.html,v 1.7.4.3 2005/09/04 10:44:06 wbx Exp $
3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=73d6bc211ac32c597f0d278506480a20
10 PKG_SOURCE_URL
:=http
://weechat.flashtux.org
/download
/
11 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
15 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
17 include $(TOPDIR
)/package
/rules.mk
19 $(eval
$(call PKG_template
,WEECHAT
,$(PKG_NAME
),$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
21 PKG_DEPEND
:=libncurses
23 ifeq ($(BR2_COMPILE_WEECHAT_WITH_TLS
),y
)
24 ENABLE_TLS
:=--with-libgnutls-prefix
=$(STAGING_DIR
)/usr
25 PKG_DEPEND
+= , gnutls
27 ENABLE_TLS
:=--disable-gnutls
30 ifneq ($(BR2_COMPILE_WEECHAT_WITH_LUA
),y
)
31 DISABLE_LUA
:=--disable-lua
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" \
44 --target
=$(GNU_TARGET_NAME
) \
45 --host
=$(GNU_TARGET_NAME
) \
46 --build
=$(GNU_HOST_NAME
) \
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)" \
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
)
75 make
-C
$(PKG_BUILD_DIR
) clean
76 rm $(PKG_BUILD_DIR
)/.built