2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-03-11 19:58:41 +01:00
|
|
|
#
|
2013-06-06 01:53:29 +02:00
|
|
|
# urg
|
2013-03-11 19:58:41 +01:00
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-03-11 19:58:41 +01:00
|
|
|
|
|
|
|
URG_VERSION = 0.8.18
|
2014-07-31 10:46:58 +02:00
|
|
|
URG_SITE = http://www.hokuyo-aut.jp/02sensor/07scanner/download/urg_programs_en
|
2013-03-11 19:58:41 +01:00
|
|
|
URG_SOURCE = urg-$(URG_VERSION).zip
|
2013-03-17 23:36:17 +01:00
|
|
|
URG_LICENSE = LGPLv3
|
2013-03-11 19:58:41 +01:00
|
|
|
URG_LICENSE_FILES = COPYING
|
|
|
|
|
|
|
|
URG_INSTALL_STAGING = YES
|
|
|
|
|
2014-01-18 20:23:46 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_SDL)$(BR2_PACKAGE_SDL_NET),yy)
|
|
|
|
URG_DEPENDENCIES += sdl sdl_net
|
|
|
|
URG_CONF_OPT += --with-sdl-prefix=$(STAGING_DIR)/usr \
|
2013-03-11 19:58:41 +01:00
|
|
|
--with-sdl-exec-prefix=$(STAGING_DIR)/usr
|
2014-01-18 20:23:46 +01:00
|
|
|
else
|
|
|
|
URG_CONF_OPT = --without-sdl
|
|
|
|
URG_CONF_ENV += ac_cv_path_SDL_CONFIG=""
|
|
|
|
endif
|
2013-03-11 19:58:41 +01:00
|
|
|
|
2013-03-17 23:36:18 +01:00
|
|
|
URG_CONFIG_SCRIPTS = c_urg-config urg-config
|
|
|
|
|
2013-03-11 19:58:41 +01:00
|
|
|
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))
|