You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mxe/src/twolame.mk

32 lines
1.0 KiB

# This file is part of MXE. See LICENSE.md for licensing information.
PKG := twolame
$(PKG)_WEBSITE := http://www.twolame.org/
$(PKG)_DESCR := TwoLAME
$(PKG)_IGNORE :=
$(PKG)_VERSION := 0.4.0
$(PKG)_CHECKSUM := cc35424f6019a88c6f52570b63e1baf50f62963a3eac52a03a800bb070d7c87d
$(PKG)_SUBDIR := twolame-$($(PKG)_VERSION)
$(PKG)_FILE := twolame-$($(PKG)_VERSION).tar.gz
$(PKG)_URL := https://$(SOURCEFORGE_MIRROR)/project/$(PKG)/$(PKG)/$($(PKG)_VERSION)/$($(PKG)_FILE)
$(PKG)_DEPS := cc
define $(PKG)_UPDATE
$(WGET) -q -O- 'https://sourceforge.net/projects/$(PKG)/files/$(PKG)/' | \
$(SED) -n 's,^.*twolame/\([0-9][^"]*\)/".*$$,\1,p' | \
head -n 1
endef
define $(PKG)_BUILD
cd '$(1)' && ./configure \
--host='$(TARGET)' \
--enable-static \
--disable-shared \
--prefix='$(PREFIX)/$(TARGET)' \
CFLAGS="-DLIBTWOLAME_STATIC"
$(MAKE) -C '$(1)' -j '$(JOBS)' SUBDIRS=libtwolame
$(MAKE) -C '$(1)' -j 1 install SUBDIRS=libtwolame
endef
$(PKG)_BUILD_SHARED =