diff options
-rw-r--r-- | index.html | 4 | ||||
-rw-r--r-- | src/liblsmash-1.patch | 13 | ||||
-rw-r--r-- | src/liblsmash.mk | 20 |
3 files changed, 37 insertions, 0 deletions
@@ -1766,6 +1766,10 @@ local-pkg-list: $(LOCAL_PKG_LIST)</pre> <td class="website"><a href="http://liblqr.wikidot.com/">liblqr-1</a></td> </tr> <tr> + <td class="package">liblsmash</td> + <td class="website"><a href="https://l-smash.github.io/l-smash/">L-SMASH</a></td> + </tr> + <tr> <td class="package">libltdl</td> <td class="website"><a href="http://www.gnu.org/software/libtool/manual/html_node/Using-libltdl.html#Using-libltdl">GNU Libtool Library (libltdl)</a></td> </tr> 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 |