1
0
mirror of git://projects.qi-hardware.com/openwrt-packages.git synced 2024-11-24 22:34:03 +02:00

Merge branch 'master' of git@projects.qi-hardware.com:openwrt-packages

This commit is contained in:
Xiangfu Liu 2010-03-03 23:02:16 +08:00
commit 304b3a0c06
2 changed files with 44 additions and 59 deletions

View File

@ -18,48 +18,28 @@ PKG_BUILD_DIR:=$(BUILD_DIR)/sparsehash-$(PKG_VERSION)
include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/package.mk
PKG_INSTALL:=1
define Package/sparsehash define Package/sparsehash
SECTION:=libs SECTION:=libs
CATEGORY:=Libraries CATEGORY:=Libraries
TITLE:=Sparsehash TITLE:=Sparsehash
BUILDONLY:=1
URL:=http://code.google.com/p/google-sparsehash/ URL:=http://code.google.com/p/google-sparsehash/
DEPENDS:=
endef endef
define Package/sparsehash/description define Package/sparsehash/description
An extremely memory-efficient hash_map implementation. 2 bits/entry overhead! The SparseHash library contains several hash-map implementations, including implementations that optimize for space or speed. An extremely memory-efficient hash_map implementation. 2 bits/entry overhead! The SparseHash library contains several hash-map implementations, including implementations that optimize for space or speed.
These hashtable implementations are similar in API to SGI's hash_map class and the tr1 unordered_map class, but with different performance characteristics. It's easy to replace hash_map or unordered_map by sparse_hash_map or dense_hash_map in C++ code. These hashtable implementations are similar in API to SGI's hash_map class and the tr1 unordered_map class, but with different performance characteristics. It's easy to replace hash_map or unordered_map by sparse_hash_map or dense_hash_map in C++ code.
endef endef
#
# TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include/SDL
#
# CONFIGURE_ARGS += \
# --with-sdl-exec-prefix=$(STAGING_DIR)
#
# CONFIGURE_VARS += \
# LIBS="-lSDL -ldirect -ldirectfb -lfusion"
define Build/Compile
rm -rf $(PKG_INSTALL_DIR)
$(MAKE) -C $(PKG_BUILD_DIR) \
DESTDIR="$(PKG_INSTALL_DIR)" \
all install
endef
define Build/InstallDev define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include/google $(1)/usr/lib $(INSTALL_DIR) \
$(1)/usr/include/google
$(CP) \ $(CP) \
$(PKG_INSTALL_DIR)/usr/include/google/* \ $(PKG_INSTALL_DIR)/usr/include/google/* \
$(1)/usr/include/google/ $(1)/usr/include/google/
# $(CP) \
# $(PKG_INSTALL_DIR)/usr/lib/libSDL_image*.{a,so*} \
# $(1)/usr/lib/
endef
define Package/sparsehash/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/include/google/ $(1)/usr/lib/
$(CP) $(PKG_INSTALL_DIR)/usr/share/doc/sparsehash-$(PKG_VERSION)/ $(1)/usr/doc/
endef endef
$(eval $(call BuildPackage,sparsehash)) $(eval $(call BuildPackage,sparsehash))

View File

@ -22,9 +22,8 @@ include $(INCLUDE_DIR)/package.mk
define Package/stardict define Package/stardict
SECTION:=utils SECTION:=utils
CATEGORY:=Utilities CATEGORY:=Utilities
DEPENDS:=+libintl +libiconv DEPENDS:=+libintl +libiconv +libgconf2
TITLE:=International Dictionary Software TITLE:=International Dictionary Software
URL:=
endef endef
define Package/stardict/description define Package/stardict/description
@ -35,41 +34,47 @@ TARGET_CFLAGS+= -I$(STAGING_DIR)/usr/lib/libintl/include
TARGET_LDFLAGS+= -L$(STAGING_DIR)/usr/lib/libintl/lib TARGET_LDFLAGS+= -L$(STAGING_DIR)/usr/lib/libintl/lib
TARGET_LDFLAGS+= -Wl,-rpath-link=$(STAGING_DIR)/usr/lib TARGET_LDFLAGS+= -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
CONFIGURE_CMD=./autogen.sh CONFIGURE_CMD =./autogen.sh
define Build/Configure CONFIGURE_ARGS += \
$(call Build/Configure/Default, \ --disable-dependency-tracking \
--disable-dependency-tracking \ --disable-libtool-lock \
--disable-libtool-lock \ --disable-spell \
--disable-spell \ --disable-gucharmap \
--disable-gucharmap \ --disable-festival \
--disable-festival \ --disable-espeak \
--disable-espeak \ --disable-dictdotcn \
--disable-dictdotcn \ --disable-advertisement \
--disable-advertisement \ --disable-man \
--disable-man \ --disable-qqwry \
--disable-qqwry \ --disable-updateinfo \
--disable-updateinfo \ --disable-htmlparse \
--disable-htmlparse \ --disable-xdxfparse \
--disable-xdxfparse \ --disable-wordnet \
--disable-wordnet \ --disable-powerwordparse \
--disable-powerwordparse \ --disable-wikiparse \
--disable-wikiparse \ --disable-schemas-install \
--disable-schemas-install \ --disable-deprecations \
--disable-deprecations \ --disable-gnome-support \
--disable-gnome-support \ --enable-nanonote-support
--enable-nanonote-support \
)
endef
define Package/stardict/install define Package/stardict/install
$(INSTALL_DIR) $(1)/usr/bin $(INSTALL_DIR) \
$(INSTALL_DIR) $(1)/usr/share $(1)/usr/bin \
$(INSTALL_DIR) $(1)/usr/share/pixmaps $(1)/usr/share \
$(1)/usr/share/icons
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/stardict $(1)/usr/bin/ $(INSTALL_BIN) \
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/share/pixmaps/stardict.png $(1)/usr/share/pixmaps/ $(PKG_INSTALL_DIR)/usr/bin/stardict \
$(CP) $(PKG_INSTALL_DIR)/usr/share/stardict $(1)/usr/share/ $(1)/usr/bin/
$(INSTALL_DATA) \
$(PKG_INSTALL_DIR)/usr/share/pixmaps/stardict.png \
$(1)/usr/share/icons/
$(CP) \
$(PKG_INSTALL_DIR)/usr/share/stardict \
$(1)/usr/share/
endef endef
$(eval $(call BuildPackage,stardict)) $(eval $(call BuildPackage,stardict))