blob: 4601593ad8013a9a863ba507af23b39630c98f03 [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001SUMMARY = "Simple DirectMedia Layer truetype font library"
2SECTION = "libs"
Brad Bishop6e60e8b2018-02-01 10:27:11 -05003DEPENDS = "virtual/libsdl2 freetype virtual/libgl"
Patrick Williamsb48b7b42016-08-17 15:04:38 -05004LICENSE = "Zlib"
5LIC_FILES_CHKSUM = "file://COPYING.txt;md5=cb33e7c4df9fbde389f149ad6bc93ce5"
6
7SRC_URI = " \
8 http://www.libsdl.org/projects/SDL_ttf/release/SDL2_ttf-${PV}.tar.gz \
9 file://use.pkg-config.for.freetype2.patch \
Brad Bishop6e60e8b2018-02-01 10:27:11 -050010 file://automake_foreign.patch \
Patrick Williamsb48b7b42016-08-17 15:04:38 -050011"
12SRC_URI[md5sum] = "e53c05e1e7f1382c316afd6c763388b1"
13SRC_URI[sha256sum] = "34db5e20bcf64e7071fe9ae25acaa7d72bdc4f11ab3ce59acc768ab62fe39276"
14
15S = "${WORKDIR}/SDL2_ttf-${PV}"
16
Brad Bishop6e60e8b2018-02-01 10:27:11 -050017inherit autotools pkgconfig distro_features_check
18
19# links to libGL.so
20REQUIRED_DISTRO_FEATURES += "x11 opengl"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050021
22do_configure_prepend() {
Patrick Williamsb48b7b42016-08-17 15:04:38 -050023 # Removing these files fixes a libtool version mismatch.
24 MACROS="libtool.m4 lt~obsolete.m4 ltoptions.m4 ltsugar.m4 ltversion.m4"
25
26 for i in ${MACROS}; do
27 rm -f ${S}/acinclude/$i
28 done
29}
Brad Bishop6e60e8b2018-02-01 10:27:11 -050030ASNEEDED = ""