comparison src/sdl.mk @ 4026:28fa86d2cf21

ffmpeg: mods for native linux build of ffmpeg * src/ffmpeg.mk: add native build rule * src/libvpx-1-fixes.patch: update patch from mxe.cc * src/libvpx.mk: update to version 1.4.0, add native build rule * src/sdl-1-xdata.patch" new patch file * src/sdl.mk: add native build rule * src/xvidcore.mk: add native build rule
author John D
date Sat, 12 Sep 2015 20:35:11 -0400
parents 507e675391bd
children 2471c5be92e3
comparison
equal deleted inserted replaced
4025:703b6f9eaea1 4026:28fa86d2cf21
14 $(WGET) -q -O- 'http://hg.libsdl.org/SDL/tags' | \ 14 $(WGET) -q -O- 'http://hg.libsdl.org/SDL/tags' | \
15 $(SED) -n 's,.*release-\([0-9][^<]*\).*,\1,p' | \ 15 $(SED) -n 's,.*release-\([0-9][^<]*\).*,\1,p' | \
16 head -1 16 head -1
17 endef 17 endef
18 18
19 ifeq ($(MXE_NATIVE_BUILD),no)
19 define $(PKG)_BUILD 20 define $(PKG)_BUILD
20 $(SED) -i 's,-mwindows,-lwinmm -mwindows,' '$(1)/configure' 21 $(SED) -i 's,-mwindows,-lwinmm -mwindows,' '$(1)/configure'
21 cd '$(1)' && ./configure \ 22 cd '$(1)' && ./configure \
22 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \ 23 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \
23 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ 24 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
35 #'$(MXE_CC)' \ 36 #'$(MXE_CC)' \
36 # -W -Wall -Werror -ansi -pedantic \ 37 # -W -Wall -Werror -ansi -pedantic \
37 # '$(2).c' -o '$(HOST_BINDIR)/test-sdl.exe' \ 38 # '$(2).c' -o '$(HOST_BINDIR)/test-sdl.exe' \
38 # `'$(MXE_PKG_CONFIG)' sdl --cflags --libs` 39 # `'$(MXE_PKG_CONFIG)' sdl --cflags --libs`
39 endef 40 endef
41 else
42 define $(PKG)_BUILD
43 cd '$(1)' && ./autogen.sh && ./configure \
44 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \
45 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
46 $(ENABLE_SHARED_OR_STATIC) \
47 --prefix='$(HOST_PREFIX)' \
48 --enable-threads \
49 --disable-stdio-redirect
50 $(MAKE) -C '$(1)' -j '$(JOBS)' bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
51 $(MAKE) -C '$(1)' -j 1 install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
52 endef
53 endif