mxe/src/liblsmash.mk

29 lines
1.0 KiB
Makefile
Raw Normal View History

# This file is part of MXE. See LICENSE.md for licensing information.
2016-01-22 14:07:09 +00:00
PKG := liblsmash
$(PKG)_WEBSITE := https://l-smash.github.io/l-smash/
$(PKG)_DESCR := L-SMASH
2016-01-22 14:07:09 +00:00
$(PKG)_IGNORE :=
$(PKG)_VERSION := 2.9.1
$(PKG)_CHECKSUM := 17f24fc8bffba753f8c628f1732fc3581b80362341274747ef6fb96af1cac45c
$(PKG)_SUBDIR := l-smash-$($(PKG)_VERSION)
$(PKG)_FILE := $($(PKG)_SUBDIR).tar.gz
$(PKG)_URL := https://github.com/l-smash/l-smash/archive/v$($(PKG)_VERSION).tar.gz
$(PKG)_DEPS := gcc
2016-01-23 11:40:46 +00:00
define $(PKG)_UPDATE
$(call MXE_GET_GITHUB_TAGS, l-smash/l-smash, v)
endef
# L-SMASH uses a custom made configure script that doesn't recognize
# the option --host and fails on unknown options.
# Therefor $(MXE_CONFIGURE_OPTS) can't be used here.
2016-01-22 14:07:09 +00:00
define $(PKG)_BUILD
cd '$(1)' && ./configure \
--prefix='$(PREFIX)/$(TARGET)' \
--cross-prefix=$(TARGET)- \
$(if $(BUILD_SHARED), --enable-shared --disable-static)
$(MAKE) -C '$(1)' -j '$(JOBS)'
$(MAKE) -C '$(1)' -j 1 install
endef