mirror of
git://projects.qi-hardware.com/openwrt-packages.git
synced 2024-11-22 12:29:21 +02:00
fix libcss compile and install
Signed-off-by: Xiangfu Liu <xiangfu@sharism.cc>
This commit is contained in:
parent
da7e7d162b
commit
72bfce550c
@ -15,23 +15,31 @@ define Package/libcss
|
||||
CATEGORY:=Libraries
|
||||
TITLE:=LibCSS is a CSS parser and selection engine, written in C
|
||||
URL:=http://www.netsurf-browser.org/projects/libcss/
|
||||
DEPENDS:=@BROKEN
|
||||
DEPENDS:=+libparserutils +libwapcaplet
|
||||
endef
|
||||
|
||||
define Package/libcss/description
|
||||
LibCSS is a CSS parser and selection engine, written in C. It aims to parse the forward compatible CSS grammar. It was developed as part of the NetSurf project
|
||||
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/libcss.so* $(1)/usr/lib/
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/local/lib/* $(1)/usr/lib/
|
||||
endef
|
||||
|
||||
define Package/libcss/install
|
||||
#$(INSTALL_DIR) $(1)/usr/lib
|
||||
#$(CP) $(PKG_BUILD_DIR)/libcss.so* $(1)/usr/lib/
|
||||
$(INSTALL_DIR) $(1)/usr/lib
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/local/lib/libcss.so* $(1)/usr/lib/
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,libcss))
|
||||
|
Loading…
Reference in New Issue
Block a user