Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 1 | SUMMARY = "Simple DirectMedia Layer truetype font library" |
| 2 | SECTION = "libs" |
| 3 | DEPENDS = "virtual/libsdl freetype" |
| 4 | LICENSE = "Zlib" |
| 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=22800d1b3701377aae0b61ee36f5c303" |
| 6 | |
| 7 | SRC_URI = "http://www.libsdl.org/projects/SDL_ttf/release/SDL_ttf-${PV}.tar.gz \ |
| 8 | file://use.pkg-config.for.freetype2.patch \ |
| 9 | " |
| 10 | SRC_URI[md5sum] = "61e29bd9da8d245bc2471d1b2ce591aa" |
| 11 | SRC_URI[sha256sum] = "724cd895ecf4da319a3ef164892b72078bd92632a5d812111261cde248ebcdb7" |
| 12 | |
| 13 | S = "${WORKDIR}/SDL_ttf-${PV}" |
| 14 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 15 | inherit autotools pkgconfig |
| 16 | |
| 17 | LDFLAGS += "-lm" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 18 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame^] | 19 | do_configure:prepend() { |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 20 | # make autoreconf happy |
| 21 | touch ${S}/NEWS ${S}/AUTHORS ${S}/ChangeLog |
| 22 | |
| 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 | } |