aboutsummaryrefslogtreecommitdiff
path: root/libcss
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
downloadnanonote-ports-0a95e15cdc87de0136734e784d487f9b03170bbb.tar.gz
initial checkin of my nanonote ports feed, including a small README.
Diffstat (limited to 'libcss')
-rw-r--r--libcss/Makefile62
-rw-r--r--libcss/patches/010-flags.patch11
-rw-r--r--libcss/patches/020-no-cast-align-warn.patch11
3 files changed, 84 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))
diff --git a/libcss/patches/010-flags.patch b/libcss/patches/010-flags.patch
new file mode 100644
index 0000000..2f7f02f
--- /dev/null
+++ b/libcss/patches/010-flags.patch
@@ -0,0 +1,11 @@
+--- a/Makefile 2010-10-10 17:55:57.487885012 +0200
++++ b/Makefile 2010-10-10 17:58:02.067884565 +0200
+@@ -20,7 +20,7 @@
+ endif
+ endif
+ CFLAGS := -D_BSD_SOURCE -I$(CURDIR)/include/ \
+- -I$(CURDIR)/src $(WARNFLAGS) $(CFLAGS)
++ -I$(CURDIR)/src $(WARNFLAGS) $(CFLAGS) $(CPPFLAGS)
+ ifneq ($(GCCVER),2)
+ CFLAGS := $(CFLAGS) -std=c99
+ else
diff --git a/libcss/patches/020-no-cast-align-warn.patch b/libcss/patches/020-no-cast-align-warn.patch
new file mode 100644
index 0000000..905176d
--- /dev/null
+++ b/libcss/patches/020-no-cast-align-warn.patch
@@ -0,0 +1,11 @@
+--- a/Makefile 2010-10-10 18:18:37.237899682 +0200
++++ b/Makefile 2010-10-10 18:18:46.477895474 +0200
+@@ -10,7 +10,7 @@
+ TESTRUNNER := $(PERL) build/testtools/testrunner.pl
+
+ # Toolchain flags
+-WARNFLAGS := -Wall -W -Wundef -Wpointer-arith -Wcast-align \
++WARNFLAGS := -Wall -W -Wundef -Wpointer-arith \
+ -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes \
+ -Wmissing-declarations -Wnested-externs -pedantic
+ # BeOS/Haiku/AmigaOS4 standard library headers create warnings