aboutsummaryrefslogtreecommitdiff
path: root/libcss/Makefile
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2011-01-02 02:07:27 +0100
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2011-01-02 02:07:27 +0100
commit0a95e15cdc87de0136734e784d487f9b03170bbb (patch)
treeadae83e51ba5b78869f51aa43cfe8ebfb762ec41 /libcss/Makefile
downloadnanonote-ports-0a95e15cdc87de0136734e784d487f9b03170bbb.tar.gz
initial checkin of my nanonote ports feed, including a small README.
Diffstat (limited to 'libcss/Makefile')
-rw-r--r--libcss/Makefile62
1 files changed, 62 insertions, 0 deletions
diff --git a/libcss/Makefile b/libcss/Makefile
new file mode 100644
index 0000000..7cbd859
--- /dev/null
+++ b/libcss/Makefile
@@ -0,0 +1,62 @@
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=libcss
+PKG_VERSION:=r10879
+PKG_RELEASE:=1
+
+PKG_SOURCE:=libcss-$(PKG_VERSION).tar.gz
+#PKG_SOURCE_URL:=
+PKG_MD5SUM:=3cf4fbcf5e0fe2059dfc872a098b1dd7
+
+PKG_BUILD_DIR=$(BUILD_DIR)/libcss-$(PKG_VERSION)
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/libcss
+ SECTION:=net
+ CATEGORY:=Network
+ SUBMENU:=Web
+ DEPENDS:=+libparserutils +libwapcaplet
+ TITLE:=CSS Parser and Selection Engine (NetSurf)
+ URL:=http://www.netsurf-browser.org/projects/libcss/
+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 and is available for use by
+other software under the MIT licence.
+endef
+
+MAKE_VARS := \
+ TARGET=linux \
+ PREFIX=/usr \
+ COMPONENT_TYPE=lib-shared
+
+define Build/Configure
+endef
+
+define Build/Compile
+ $(CONFIGURE_VARS) \
+ $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" \
+ $(MAKE_VARS) install
+endef
+
+define Build/InstallDev
+ $(INSTALL_DIR) $(1)/usr/include/libcss
+ $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/libcss/{computed,errors,fpmath,functypes,hint,libcss,properties,select,stylesheet,types}.h \
+ $(1)/usr/include/libcss
+
+ $(INSTALL_DIR) $(1)/usr/lib
+ $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcss.so* $(1)/usr/lib
+
+ $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
+ $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libcss.pc $(1)/usr/lib/pkgconfig
+endef
+
+define Package/libcss/install
+ $(INSTALL_DIR) $(1)/usr/lib
+ $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcss.so* $(1)/usr/lib
+endef
+
+$(eval $(call BuildPackage,libcss))