move plugins to separate packages, cleanup
git-svn-id: svn://svn.openwrt.org/openwrt/packages@8709 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
47846825f4
commit
294aa9c5ea
@ -15,23 +15,56 @@ PKG_RELEASE:=2
|
|||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
||||||
PKG_SOURCE_URL:=http://weechat.flashtux.org/download/
|
PKG_SOURCE_URL:=http://weechat.flashtux.org/download/
|
||||||
PKG_MD5SUM:=42f96620c3b2fd3dca9768d9ce16dd06
|
PKG_MD5SUM:=42f96620c3b2fd3dca9768d9ce16dd06
|
||||||
PKG_CAT:=bzcat
|
|
||||||
|
|
||||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|
||||||
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
|
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
define Package/weechat
|
define Package/weechat/Default
|
||||||
SECTION:=net
|
SECTION:=net
|
||||||
CATEGORY:=Network
|
CATEGORY:=Network
|
||||||
DEPENDS:=+libiconv +libncurses +liblua +libgnutls
|
|
||||||
TITLE:=Lightweight IRC client
|
TITLE:=Lightweight IRC client
|
||||||
DESCRIPTION:=\
|
|
||||||
Weechat is fast, light & extensible IRC client.
|
|
||||||
URL:=http://weechat.flashtux.org/
|
URL:=http://weechat.flashtux.org/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Package/weechat/Default/description
|
||||||
|
Weechat is fast, light & extensible IRC client.
|
||||||
|
endef
|
||||||
|
|
||||||
|
|
||||||
|
define Package/weechat
|
||||||
|
$(call Package/weechat/Default)
|
||||||
|
MENU=1
|
||||||
|
DEPENDS:=+libiconv +libgnutls +libncurses
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/weechat/description
|
||||||
|
$(call Package/weechat/Default/description)
|
||||||
|
endef
|
||||||
|
|
||||||
|
|
||||||
|
define Package/weechat-mod-charset
|
||||||
|
$(call Package/weechat/Default)
|
||||||
|
TITLE+= (charset plugin)
|
||||||
|
DEPENDS:=weechat
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/weechat-mod-charset/description
|
||||||
|
$(call Package/weechat/Default/description)
|
||||||
|
This packages contains a charset plugin for Weechat.
|
||||||
|
endef
|
||||||
|
|
||||||
|
|
||||||
|
define Package/weechat-mod-lua
|
||||||
|
$(call Package/weechat/Default)
|
||||||
|
TITLE+= (LUA plugin)
|
||||||
|
DEPENDS:=weechat +liblua
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/weechat-mod-lua/description
|
||||||
|
$(call Package/weechat/Default/description)
|
||||||
|
This packages contains an LUA scripting plugin for Weechat.
|
||||||
|
endef
|
||||||
|
|
||||||
|
|
||||||
CONFIGURE_ARGS+= \
|
CONFIGURE_ARGS+= \
|
||||||
--with-debug=0 \
|
--with-debug=0 \
|
||||||
--with-libgnutls-prefix=$(STAGING_DIR)/usr \
|
--with-libgnutls-prefix=$(STAGING_DIR)/usr \
|
||||||
@ -39,25 +72,53 @@ CONFIGURE_ARGS += \
|
|||||||
--with-libiconv-prefix="$(STAGING_DIR)/usr/lib/libiconv" \
|
--with-libiconv-prefix="$(STAGING_DIR)/usr/lib/libiconv" \
|
||||||
--without-libintl-prefix \
|
--without-libintl-prefix \
|
||||||
--disable-aspell \
|
--disable-aspell \
|
||||||
--enable-lua \
|
|
||||||
--with-lua-inc="$(STAGING_DIR)/usr/include" \
|
|
||||||
--with-lua-lib="$(STAGING_DIR)/usr/lib" \
|
|
||||||
--disable-perl \
|
--disable-perl \
|
||||||
--disable-python \
|
--disable-python \
|
||||||
--disable-ruby \
|
--disable-ruby \
|
||||||
, \
|
|
||||||
LIBS="-llua -ldl -lm -L$(STAGING_DIR)/usr/lib/libiconv/lib"
|
|
||||||
|
|
||||||
MAKE_FLAGS += \
|
CONFIGURE_VARS+= \
|
||||||
DESTDIR="$(PKG_INSTALL_DIR)" \
|
LDFLAGS="$$$$LDFLAGS -L$(STAGING_DIR)/usr/lib/libiconv/lib" \
|
||||||
all install
|
|
||||||
|
ifndef ($(SDK)$(CONFIG_PACKAGE_weechat-mod-lua),)
|
||||||
|
CONFIGURE_ARGS+= \
|
||||||
|
--enable-lua \
|
||||||
|
--with-lua-inc="$(STAGING_DIR)/usr/include" \
|
||||||
|
--with-lua-lib="$(STAGING_DIR)/usr/lib"
|
||||||
|
CONFIGURE_VARS+= \
|
||||||
|
LIBS="-ldl -lm"
|
||||||
|
else
|
||||||
|
CONFIGURE_ARGS+= \
|
||||||
|
--disable-lua
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
define Build/Configure
|
||||||
|
$(call Build/Configure/Default)
|
||||||
|
$(call libtool_disable_rpath)
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Build/Compile
|
||||||
|
$(MAKE) -C $(PKG_BUILD_DIR) all
|
||||||
|
$(call libtool_fixup_libdir,$(PKG_INSTALL_DIR))
|
||||||
|
$(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" install
|
||||||
|
endef
|
||||||
|
|
||||||
define Package/weechat/install
|
define Package/weechat/install
|
||||||
$(INSTALL_DIR) $(1)/usr/bin
|
$(INSTALL_DIR) $(1)/usr/bin
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/bin/weechat-curses $(1)/usr/bin/
|
$(CP) $(PKG_INSTALL_DIR)/usr/bin/weechat-curses $(1)/usr/bin/
|
||||||
$(INSTALL_DIR) $(1)/usr/lib/weechat/plugins
|
$(INSTALL_DIR) $(1)/usr/lib/weechat/plugins
|
||||||
# FIXME : weechat is not configured to compile with lua since 0.2.4
|
endef
|
||||||
#$(CP) $(PKG_INSTALL_DIR)/usr/lib/weechat/plugins/lua.so* $(1)/usr/lib/weechat/plugins/
|
|
||||||
|
define BuildPlugin
|
||||||
|
|
||||||
|
define Package/weechat-mod-$(1)/install
|
||||||
|
$(INSTALL_DIR) $$(1)/usr/lib/weechat/plugins
|
||||||
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/weechat/plugins/$(1).so* $$(1)/usr/lib/weechat/plugins/
|
||||||
|
endef
|
||||||
|
|
||||||
|
$$(eval $$(call BuildPackage,weechat-mod-$(1)))
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildPackage,weechat))
|
$(eval $(call BuildPackage,weechat))
|
||||||
|
$(eval $(call BuildPlugin,charset))
|
||||||
|
$(eval $(call BuildPlugin,lua))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user