blob: c600cb8fdc85b7e3368f648fbec85270bab1aff5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# This file is part of MXE.
# See index.html for further information.
PKG := smpeg2
$(PKG)_IGNORE :=
$(PKG)_VERSION := 2.0.0
$(PKG)_CHECKSUM := d0455466f61a8e55f83f4d7fd82f1c305bce6832
$(PKG)_SUBDIR := smpeg2-$($(PKG)_VERSION)
$(PKG)_FILE := smpeg2-$($(PKG)_VERSION).tar.gz
$(PKG)_URL := http://www.libsdl.org/projects/smpeg/release/$($(PKG)_FILE)
$(PKG)_DEPS := gcc sdl2
define $(PKG)_UPDATE
$(WGET) -q -O- 'http://www.libsdl.org/projects/smpeg/release' | \
$(SED) -n 's,.*smpeg2-\([0-9][^>]*\)\.tar.*,\1,p' | \
head -1
endef
define $(PKG)_BUILD
$(SED) -i 's,\(-lsmpeg2\),\1 -lstdc++,' '$(1)/smpeg2-config.in'
cd '$(1)' && ./configure \
AR='$(TARGET)-ar' \
NM='$(TARGET)-nm' \
$(MXE_CONFIGURE_OPTS) \
--disable-debug \
--with-sdl-prefix='$(PREFIX)/$(TARGET)' \
--disable-sdltest \
--disable-gtk-player \
--disable-opengl-player \
CFLAGS='-ffriend-injection'
$(MAKE) -C '$(1)' -j '$(JOBS)' install $(MXE_DISABLE_CRUFT)
'$(TARGET)-gcc' \
-W -Wall -Werror -std=c99 -pedantic \
'$(TOP_DIR)/src/smpeg-test.c' -o '$(PREFIX)/$(TARGET)/bin/test-smpeg2.exe' \
`'$(PREFIX)/$(TARGET)/bin/smpeg2-config' --cflags --libs`
endef
|