PKG_NAME = shine
PKG_VERS = 3.1.1
PKG_EXT = tar.gz
PKG_DIST_NAME = $(PKG_VERS).$(PKG_EXT)
PKG_DIST_SITE = https://github.com/toots/shine/archive
PKG_DIST_FILE = $(PKG_NAME)-$(PKG_VERS).$(PKG_EXT)
PKG_DIR = $(PKG_NAME)-$(PKG_VERS)

DEPENDS =

HOMEPAGE = https://github.com/toots/shine
COMMENT  = Super fast fixed-point MP3 encoder.
LICENSE  = GPLv2

# Needs gcc >= 4.6: calls __builtin_bswap16, absent before gcc 4.6.
MIN_GCC_VERSION = 4.6

PRE_CONFIGURE_TARGET = shine_pre_configure
CONFIGURE_ARGS  = --includedir=$(INSTALL_DIR)/$(INSTALL_PREFIX)/include
CONFIGURE_ARGS += --disable-static

GNU_CONFIGURE = 1

include ../../mk/spksrc.cross-cc.mk

.PHONY: shine_pre_configure
shine_pre_configure: 
	@$(RUN) ./bootstrap
