1
0
mirror of git://projects.qi-hardware.com/openwrt-packages.git synced 2024-07-02 23:40:44 +03: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. 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 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 define Build/InstallDev
mkdir -p $(1)/usr/include 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 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 endef
define Package/libhubbub/install define Package/libhubbub/install
$(INSTALL_DIR) $(1)/usr/lib $(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 endef
$(eval $(call BuildPackage,libhubbub)) $(eval $(call BuildPackage,libhubbub))

View File

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