Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 1 | SUMMARY = "Simple DirectMedia Layer truetype font library" |
| 2 | SECTION = "libs" |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 3 | DEPENDS = "virtual/libsdl2 freetype virtual/libgl" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 4 | LICENSE = "Zlib" |
| 5 | LIC_FILES_CHKSUM = "file://COPYING.txt;md5=cb33e7c4df9fbde389f149ad6bc93ce5" |
| 6 | |
| 7 | SRC_URI = " \ |
| 8 | http://www.libsdl.org/projects/SDL_ttf/release/SDL2_ttf-${PV}.tar.gz \ |
| 9 | file://use.pkg-config.for.freetype2.patch \ |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 10 | file://automake_foreign.patch \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 11 | " |
| 12 | SRC_URI[md5sum] = "e53c05e1e7f1382c316afd6c763388b1" |
| 13 | SRC_URI[sha256sum] = "34db5e20bcf64e7071fe9ae25acaa7d72bdc4f11ab3ce59acc768ab62fe39276" |
| 14 | |
| 15 | S = "${WORKDIR}/SDL2_ttf-${PV}" |
| 16 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 17 | inherit autotools pkgconfig distro_features_check |
| 18 | |
| 19 | # links to libGL.so |
| 20 | REQUIRED_DISTRO_FEATURES += "x11 opengl" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 21 | |
| 22 | do_configure_prepend() { |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 23 | # 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 Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 30 | ASNEEDED = "" |