summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Johannes Nixdorf <mixi@exherbo.org> 2017-08-01 10:41:40 +0200
committerAvatar Johannes Nixdorf <mixi@exherbo.org> 2017-08-31 12:41:18 +0200
commit2df03b23c875e9af4c2e2174c4fe78ad50b426c5 (patch)
treef94e3fde921d054aaacd31252a34f13c7a7c1661
parentccb2f6d91d87997c3f982c5c11d668ded66cddfb (diff)
downloadmedia-2df03b23c875e9af4c2e2174c4fe78ad50b426c5.tar.gz
media-2df03b23c875e9af4c2e2174c4fe78ad50b426c5.tar.xz
SDL_ttf: fix cross-compiling
-rw-r--r--packages/media-libs/SDL_ttf/SDL_ttf-2.0.11.exheres-07
1 files changed, 6 insertions, 1 deletions
diff --git a/packages/media-libs/SDL_ttf/SDL_ttf-2.0.11.exheres-0 b/packages/media-libs/SDL_ttf/SDL_ttf-2.0.11.exheres-0
index 217da84..88c26ad 100644
--- a/packages/media-libs/SDL_ttf/SDL_ttf-2.0.11.exheres-0
+++ b/packages/media-libs/SDL_ttf/SDL_ttf-2.0.11.exheres-0
@@ -15,5 +15,10 @@ DEPENDENCIES="
media-libs/freetype:2[>=2.0]
"
-DEFAULT_SRC_CONFIGURE_PARAMS=( --hates=docdir )
+# NOTE: This will execute the target's freetype-config, which only works because it is just a shell
+# script that in the worst case executes the build's $(exhost --target)-pkg-config.
+DEFAULT_SRC_CONFIGURE_PARAMS=(
+ --hates=docdir
+ --with-freetype-exec-prefix=/usr/$(exhost --target)
+)