summaryrefslogtreecommitdiffstats
path: root/package/urg/urg.mk
diff options
context:
space:
mode:
authorSamuel Martin <s.martin49@gmail.com>2013-03-11 18:58:41 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2013-03-17 22:32:11 +0100
commit976e3b2dc4db12a6ac20dbc6d5a523c2929ebdde (patch)
tree930b9c76b5bcca95c6e7cc75ddb36d14e582a92c /package/urg/urg.mk
parenteaf746eb9e8b10d5ff5011a989014b3df4b31ddc (diff)
downloadbuildroot-novena-976e3b2dc4db12a6ac20dbc6d5a523c2929ebdde.tar.gz
buildroot-novena-976e3b2dc4db12a6ac20dbc6d5a523c2929ebdde.zip
urg: new package
[Peter: drop 'library' from name] Cc: Eric Jarrige <eric.jarrige@armadeus.org> Signed-off-by: Samuel Martin <s.martin49@gmail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/urg/urg.mk')
-rw-r--r--package/urg/urg.mk27
1 files changed, 27 insertions, 0 deletions
diff --git a/package/urg/urg.mk b/package/urg/urg.mk
new file mode 100644
index 000000000..3f68bf2bb
--- /dev/null
+++ b/package/urg/urg.mk
@@ -0,0 +1,27 @@
+#############################################################
+#
+# urg library
+#
+#############################################################
+
+URG_VERSION = 0.8.18
+URG_SITE = http://www.hokuyo-aut.jp/02sensor/07scanner/download/urg_programs_en/
+URG_SOURCE = urg-$(URG_VERSION).zip
+URG_LICENSE = LGPLv3+
+URG_LICENSE_FILES = COPYING
+
+URG_INSTALL_STAGING = YES
+
+URG_DEPENDENCIES = sdl sdl_net
+
+URG_CONF_OPT = --with-sdl-prefix=$(STAGING_DIR)/usr \
+ --with-sdl-exec-prefix=$(STAGING_DIR)/usr
+
+define URG_EXTRACT_CMDS
+ $(RM) -rf $(URG_DIR)
+ unzip -q -d $(BUILD_DIR)/ $(DL_DIR)/$(URG_SOURCE)
+ test -d $(URG_DIR) || \
+ mv $(BUILD_DIR)/$(subst .zip,,$(URG_SOURCE)) $(URG_DIR)
+endef
+
+$(eval $(autotools-package))