From 759a8c34bb30f81d6914d959b0c33388753e62d6 Mon Sep 17 00:00:00 2001 From: darealshinji Date: Fri, 22 Jan 2016 15:07:09 +0100 Subject: new package: liblsmash --- index.html | 4 ++++ src/liblsmash-1.patch | 13 +++++++++++++ src/liblsmash.mk | 20 ++++++++++++++++++++ 3 files changed, 37 insertions(+) create mode 100644 src/liblsmash-1.patch create mode 100644 src/liblsmash.mk diff --git a/index.html b/index.html index 9871696..d234478 100644 --- a/index.html +++ b/index.html @@ -1766,6 +1766,10 @@ local-pkg-list: $(LOCAL_PKG_LIST) liblqr-1 + liblsmash + L-SMASH + + libltdl GNU Libtool Library (libltdl) diff --git a/src/liblsmash-1.patch b/src/liblsmash-1.patch new file mode 100644 index 0000000..ea1c92c --- /dev/null +++ b/src/liblsmash-1.patch @@ -0,0 +1,13 @@ +This file is part of MXE. +See index.html for further information. + +--- a/configure ++++ b/configure +@@ -198,6 +198,7 @@ + case "$TARGET_OS" in + *mingw*) + EXT=".exe" ++ SHARED_NAME="liblsmash-$MAJVER" + SHARED_EXT=".dll" + IMPLIB="liblsmash.dll.a" + SO_LDFLAGS="-shared -Wl,--out-implib,$IMPLIB" diff --git a/src/liblsmash.mk b/src/liblsmash.mk new file mode 100644 index 0000000..3a25589 --- /dev/null +++ b/src/liblsmash.mk @@ -0,0 +1,20 @@ +# This file is part of MXE. +# See index.html for further information. + +PKG := liblsmash +$(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 + +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 -- cgit v0.12