aboutsummaryrefslogtreecommitdiff
path: root/package/libsvgtiny
diff options
context:
space:
mode:
authorGravatar Peter Korsgaard <jacmet@sunsite.dk>2010-07-05 11:01:55 +0200
committerGravatar Peter Korsgaard <jacmet@sunsite.dk>2010-07-05 11:01:55 +0200
commitab10ed8c87c38c54940ee5418b996b7a6ca79642 (patch)
treedefe966e98e97846b478d75c5847bb271e83b4c0 /package/libsvgtiny
parent5ba54aa10bb8936f3575e3b97916d299783cf858 (diff)
downloadbuildroot-ab10ed8c87c38c54940ee5418b996b7a6ca79642.tar.gz
buildroot-ab10ed8c87c38c54940ee5418b996b7a6ca79642.tar.bz2
package: add libsvgtiny library
No official releases, so use svn snapshot like tremor :/ Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/libsvgtiny')
-rw-r--r--package/libsvgtiny/Config.in9
-rw-r--r--package/libsvgtiny/libsvtiny.mk47
2 files changed, 56 insertions, 0 deletions
diff --git a/package/libsvgtiny/Config.in b/package/libsvgtiny/Config.in
new file mode 100644
index 0000000000..836dec210e
--- /dev/null
+++ b/package/libsvgtiny/Config.in
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_LIBSVGTINY
+ bool "libsvgtiny"
+ select BR2_PACKAGE_LIBXML2
+ help
+ Libsvgtiny is an implementation of SVG Tiny, written in C.
+ It is currently in development for use with NetSurf and is
+ intended to be suitable for use in other projects too.
+
+ http://www.netsurf-browser.org/projects/libsvgtiny/
diff --git a/package/libsvgtiny/libsvtiny.mk b/package/libsvgtiny/libsvtiny.mk
new file mode 100644
index 0000000000..57430fe896
--- /dev/null
+++ b/package/libsvgtiny/libsvtiny.mk
@@ -0,0 +1,47 @@
+############################################################
+#
+# libsvgtiny
+#
+############################################################
+
+LIBSVGTINY_SITE = svn://svn.netsurf-browser.org/trunk/libsvgtiny
+LIBSVGTINY_VERSION = 9800
+LIBSVGTINY_SVNDIR = libsvgtiny-svn-r$(LIBSVGTINY_VERSION)
+LIBSVGTINY_SOURCE = $(LIBSVGTINY_SVNDIR).tar.bz2
+LIBSVGTINY_INSTALL_STAGING = YES
+LIBSVGTINY_INSTALL_TARGET = YES
+LIBSVGTINY_DEPENDENCIES = libxml2
+
+$(DL_DIR)/$(LIBSVGTINY_SOURCE):
+ $(SVN_CO) -r $(LIBSVGTINY_VERSION) $(LIBSVGTINY_SITE) $(BUILD_DIR)/$(LIBSVGTINY_SVNDIR)
+ tar -cv -C $(BUILD_DIR) $(LIBSVGTINY_SVNDIR) | bzip2 - -c > $@
+ rm -rf $(BUILD_DIR)/$(LIBSVGTINY_SVNDIR)
+
+# use custom download step
+LIBSVGTINY_TARGET_SOURCE := $(DL_DIR)/$(LIBSVGTINY_SOURCE)
+
+define LIBSVGTINY_BUILD_CMDS
+ $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) PREFIX=/usr
+endef
+
+define LIBSVGTINY_INSTALL_STAGING_CMDS
+ $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) PREFIX=/usr DESTDIR=$(STAGING_DIR) install
+endef
+
+define LIBSVGTINY_UNINSTALL_STAGING_CMDS
+ $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) PREFIX=/usr DESTDIR=$(STAGING_DIR) uninstall
+endef
+
+define LIBSVGTINY_INSTALL_TARGET_CMDS
+ $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) PREFIX=/usr DESTDIR=$(TARGET_DIR) install
+endef
+
+define LIBSVGTINY_UNINSTALL_TARGET_CMDS
+ $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) PREFIX=/usr DESTDIR=$(TARGET_DIR) uninstall
+endef
+
+define BZIP2_CLEAN_CMDS
+ $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) clean
+endef
+
+$(eval $(call GENTARGETS,package,libsvgtiny))