Mercurial > mxe-octave
comparison src/sdl2_ttf.mk @ 6059:101ada7ce0a8
sdl2: add additional sdl2 modules (sdl2_image, sdl2_mixer, sdl2_net, sdl2_ttf)
* src/sdl2_image.mk, src/sdl2_mixer.mk, src/sdl2_net.mk,
src/sdl2_ttf.mk: new files
* src/libwebp.mk, src/mpg123.mk, src/opusfile.mk: new files
* index.html: add ref to new targets
* dist-files.mk: add ref to new files
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Tue, 18 Jan 2022 08:59:19 -0500 |
parents | |
children | 36cb33512b63 |
comparison
equal
deleted
inserted
replaced
6058:ceb5e2b51ccc | 6059:101ada7ce0a8 |
---|---|
1 # This file is part of MXE. | |
2 # See index.html for further information. | |
3 | |
4 PKG := sdl2_ttf | |
5 $(PKG)_IGNORE := | |
6 $(PKG)_VERSION := 2.0.15 | |
7 $(PKG)_CHECKSUM := 1453c5f72f986024c5271c76d74cc232aa57dd79 | |
8 $(PKG)_SUBDIR := SDL2_ttf-$($(PKG)_VERSION) | |
9 $(PKG)_FILE := SDL2_ttf-$($(PKG)_VERSION).tar.gz | |
10 $(PKG)_URL := https://www.libsdl.org/projects/SDL_ttf/release/$($(PKG)_FILE) | |
11 $(PKG)_DEPS := sdl2 freetype | |
12 | |
13 define $(PKG)_UPDATE | |
14 $(WGET) -q -O- 'http://hg.libsdl.org/SDL_ttf/tags' | \ | |
15 $(SED) -n 's,.*release-\([0-9][^<"]*\).*,\1,p' | \ | |
16 head -1 | |
17 endef | |
18 | |
19 define $(PKG)_BUILD | |
20 echo 'Requires.private: freetype2' >> '$(1)/SDL2_ttf.pc.in' | |
21 cd '$(1)' && ./configure \ | |
22 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ | |
23 $(ENABLE_SHARED_OR_STATIC) \ | |
24 --prefix='$(HOST_PREFIX)' \ | |
25 --with-sdl-prefix='$(HOST_PREFIX)' \ | |
26 --disable-sdltest \ | |
27 --with-freetype-prefix='$(PREFIX)/$(TARGET)' | |
28 $(MAKE) -C '$(1)' -j '$(JOBS)' install $(MXE_DISABLE_PROGS) $(MXE_DISABLE_DOCS) DESTDIR='$(3)' | |
29 endef |