Changeset 26964


Ignore:
Timestamp:
2011-05-20T19:40:50+02:00 (7 years ago)
Author:
loswillios
Message:

[packages] weechat: update to 0.3.5, use cmake for building

Location:
packages/net/weechat
Files:
5 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • packages/net/weechat/Makefile

    r25350 r26964  
    99 
    1010PKG_NAME:=weechat 
    11 PKG_VERSION:=0.2.6 
     11PKG_VERSION:=0.3.5 
    1212PKG_RELEASE:=1 
    1313 
    1414PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 
    1515PKG_SOURCE_URL:=http://www.weechat.org/files/src 
    16 PKG_MD5SUM:=ccdecf663b0050a23049acb4b9a76193 
     16PKG_MD5SUM:=0d2a089bfbfa550e0c65618a171fb3c4 
    1717 
    1818PKG_FIXUP = libtool 
    19 PKG_CONFIG_DEPENDS = CONFIG_PACKAGE_weechat-mod-lua 
    2019 
    2120include $(INCLUDE_DIR)/package.mk 
    2221include $(INCLUDE_DIR)/nls.mk 
     22include $(INCLUDE_DIR)/cmake.mk 
    2323 
    2424define Package/weechat/Default 
     
    3737define Package/weechat 
    3838$(call Package/weechat/Default) 
    39  MENU=1 
    40  DEPENDS:=+libgnutls +libncurses $(ICONV_DEPENDS) 
     39 DEPENDS:=+libgnutls +libncursesw $(ICONV_DEPENDS) 
    4140endef 
    4241 
     
    4544endef 
    4645 
    47  
    48 define Package/weechat-mod-charset 
    49 $(call Package/weechat/Default) 
    50  TITLE+= (charset plugin) 
    51  DEPENDS:=weechat 
    52 endef 
    53  
    54 define Package/weechat-mod-charset/description 
    55 $(call Package/weechat/Default/description) 
    56  This packages contains a charset plugin for Weechat. 
    57 endef 
    58  
    59  
    60 define Package/weechat-mod-lua 
    61 $(call Package/weechat/Default) 
    62  TITLE+= (Lua plugin) 
    63  DEPENDS:=weechat +liblua @BROKEN 
    64 endef 
    65  
    66 define Package/weechat-mod-lua/description 
    67 $(call Package/weechat/Default/description) 
    68  This packages contains an Lua scripting plugin for Weechat. 
    69 endef 
    70  
    71  
    72 CONFIGURE_ARGS+= \ 
    73         --with-debug=0 \ 
    74         --without-doc-xsl-prefix \ 
    75         --with-libiconv-prefix="$(ICONV_PREFIX)" \ 
    76         --without-libintl-prefix \ 
    77         --disable-aspell \ 
    78         --disable-perl \ 
    79         --disable-python \ 
    80         --disable-ruby \ 
    81         LUACONFIG="" \ 
    82         ac_cv_path_LIBGNUTLS_CONFIG="pkg-config gnutls" \ 
     46CMAKE_OPTIONS+= \ 
     47        -DENABLE_PYTHON=OFF \ 
     48        -DENABLE_PERL=OFF \ 
     49        -DENABLE_LUA=OFF 
    8350 
    8451TARGET_LDFLAGS += \ 
     
    8653        -Wl,-rpath-link,$(STAGING_DIR)/usr/lib 
    8754 
    88 ifneq ($(CONFIG_PACKAGE_weechat-mod-lua),) 
    89   CONFIGURE_ARGS+= \ 
    90         --enable-lua \ 
    91         --enable-plugins \ 
    92         --with-plugins="lua" \ 
    93         --with-lua-inc="$(STAGING_DIR)/usr/include" \ 
    94         --with-lua-lib="$(STAGING_DIR)/usr/lib" 
    95   CONFIGURE_VARS+= \ 
    96         LIBS="-ldl -lm" 
    97   TARGET_LDFLAGS += -lcrypt 
    98 else 
    99   CONFIGURE_ARGS+= \ 
    100         --disable-lua 
    101 endif 
    102  
    103 define Build/Compile 
    104         $(MAKE) -C $(PKG_BUILD_DIR) \ 
    105                 $(LUA_FLAGS) \ 
    106                 DESTDIR="$(PKG_INSTALL_DIR)" \ 
    107                 LUACONFIG="" \ 
    108                 all install 
    109 endef 
    110  
    11155define Package/weechat/install 
    11256        $(INSTALL_DIR) $(1)/usr/bin 
    11357        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/weechat-curses $(1)/usr/bin/ 
    11458        $(INSTALL_DIR) $(1)/usr/lib/weechat/plugins 
    115 endef 
    116  
    117 define BuildPlugin 
    118  
    119   define Package/weechat-mod-$(1)/install 
    120         $(INSTALL_DIR) $$(1)/usr/lib/weechat/plugins 
    121         $(CP) $(PKG_INSTALL_DIR)/usr/lib/weechat/plugins/$(1).so* $$(1)/usr/lib/weechat/plugins/ 
    122   endef 
    123  
    124   $$(eval $$(call BuildPackage,weechat-mod-$(1))) 
     59        $(CP) \ 
     60                $(PKG_INSTALL_DIR)/usr/lib/weechat/plugins/* \ 
     61                $(1)/usr/lib/weechat/plugins/ 
    12562endef 
    12663 
    12764$(eval $(call BuildPackage,weechat)) 
    128 $(eval $(call BuildPlugin,charset)) 
    129 $(eval $(call BuildPlugin,lua)) 
Note: See TracChangeset for help on using the changeset viewer.