1
0
mirror of git://projects.qi-hardware.com/openwrt-packages.git synced 2024-12-22 15:07:44 +02:00

fix libhubbub, libparserutils compile and install

This commit is contained in:
Xiangfu Liu 2010-11-19 11:07:47 +08:00
parent 1f8d6bd1f3
commit 59dacaa801
2 changed files with 15 additions and 9 deletions

View File

@ -22,16 +22,24 @@ define Package/libhubbub/description
Hubbub is an HTML5 compliant parsing library, written in C. It was developed as part of the NetSurf project and is available for use by other software under the MIT licence.
endef
define Build/Compile
rm -rf $(PKG_INSTALL_DIR)
$(MAKE) -C $(PKG_BUILD_DIR) \
COMPONENT_TYPE=lib-shared \
DESTDIR="$(PKG_INSTALL_DIR)" \
all install
endef
define Build/InstallDev
mkdir -p $(1)/usr/include
#$(CP) $(PKG_INSTALL_DIR)/usr/local/include/physfs.h $(1)/usr/include/
$(CP) $(PKG_INSTALL_DIR)/usr/local/include/* $(1)/usr/include/
mkdir -p $(1)/usr/lib
#$(CP) $(PKG_INSTALL_DIR)/usr/local/lib/libhubbub.so* $(1)/usr/lib/
$(CP) $(PKG_INSTALL_DIR)/usr/local/lib/* $(1)/usr/lib/
endef
define Package/libhubbub/install
$(INSTALL_DIR) $(1)/usr/lib
#$(CP) $(PKG_BUILD_DIR)/libhubbub.so* $(1)/usr/lib/
$(CP) $(PKG_INSTALL_DIR)/usr/local/lib/libhubbub.so* $(1)/usr/lib/
endef
$(eval $(call BuildPackage,libhubbub))

View File

@ -1,6 +1,5 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=libparserutils
PKG_VERSION:=0.0.2
PKG_RELEASE:=1
@ -31,17 +30,16 @@ define Build/Compile
all install
endef
define Build/InstallDev
mkdir -p $(1)/usr/include
#$(CP) $(PKG_INSTALL_DIR)/usr/local/include/physfs.h $(1)/usr/include/
$(CP) $(PKG_INSTALL_DIR)/usr/local/include/* $(1)/usr/include/
mkdir -p $(1)/usr/lib
#$(CP) $(PKG_INSTALL_DIR)/usr/local/lib/libparserutils.so* $(1)/usr/lib/
$(CP) $(PKG_INSTALL_DIR)/usr/local/lib/* $(1)/usr/lib/
endef
define Package/libparserutils/install
#$(INSTALL_DIR) $(1)/usr/lib
#$(CP) $(PKG_BUILD_DIR)/libparserutils.so* $(1)/usr/lib/
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/local/lib/libparserutils.so* $(1)/usr/lib/
endef
$(eval $(call BuildPackage,libparserutils))