c7f4b96471
Since the trailing slash is stripped from $($(PKG)_SITE) by pkg-generic.mk: $(call DOWNLOAD,$($(PKG)_SITE:/=)/$($(PKG)_SOURCE)) so it is redundant. This patch removes it from $(PKG)_SITE variable for BR consistency. Signed-off-by: Jerzy Grzegorek <jerzy.grzegorek@trzebnica.net> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
37 lines
959 B
Makefile
37 lines
959 B
Makefile
################################################################################
|
|
#
|
|
# opentyrian
|
|
#
|
|
################################################################################
|
|
|
|
OPENTYRIAN_VERSION = 2.1.20130907
|
|
OPENTYRIAN_SITE = http://www.camanis.net/opentyrian/releases
|
|
OPENTYRIAN_SOURCE = opentyrian-$(OPENTYRIAN_VERSION)-src.tar.gz
|
|
OPENTYRIAN_LICENSE = GPLv2+
|
|
OPENTYRIAN_LICENSE_FILES = COPYING
|
|
|
|
OPENTYRIAN_DEPENDENCIES = sdl
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENTYRIAN_NET),y)
|
|
OPENTYRIAN_DEPENDENCIES += sdl_net
|
|
OPENTYRIAN_NETWORK = true
|
|
else
|
|
OPENTYRIAN_NETWORK = false
|
|
endif
|
|
|
|
define OPENTYRIAN_BUILD_CMDS
|
|
$(MAKE) PLATFORM=UNIX \
|
|
CC="$(TARGET_CC)" \
|
|
STRIP="/bin/true" \
|
|
SDL_CONFIG="$(STAGING_DIR)/usr/bin/sdl-config" \
|
|
LDFLAGS="-lm" \
|
|
WITH_NETWORK="$(OPENTYRIAN_NETWORK)" \
|
|
-C $(@D) release
|
|
endef
|
|
|
|
define OPENTYRIAN_INSTALL_TARGET_CMDS
|
|
$(INSTALL) -D -m 0755 $(@D)/opentyrian $(TARGET_DIR)/usr/bin/opentyrian
|
|
endef
|
|
|
|
$(eval $(generic-package))
|