summaryrefslogtreecommitdiff
path: root/package/kodi/patches/patch-tools_TexturePacker_Makefile_in
blob: bdd6f679f93fc54fa2f4cfc617c7d6f5466b28de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- kodi-14.0rc3.orig/tools/TexturePacker/Makefile.in	2014-12-09 14:19:32.000000000 +0100
+++ kodi-14.0rc3/tools/TexturePacker/Makefile.in	2014-12-20 19:50:10.000000000 +0100
@@ -33,5 +33,10 @@ $(TARGET): $(SRCS) @abs_top_srcdir@/xbmc
 # TexturePacker run native on build system, build it with native tools
 	make -C @abs_top_srcdir@/lib/libsquish/ libsquish-native.so
 	$(CXX_FOR_BUILD) $(CXXFLAGS_FOR_BUILD) $(DEFINES) $(NATIVE_ARCH) $(SRCS) $(LDFLAGS_FOR_BUILD) -o $(TARGET)
+ifeq ($(findstring Darwin,$(shell uname -s)),Darwin)
+	install_name_tool -change /usr/lib/libSDL_image-1.2.0.dylib \
+		@@STAGING_HOST_DIR@@/usr/lib/libSDL_image-1.2.0.dylib \
+		$(TARGET)
+endif
 
 include @abs_top_srcdir@/Makefile.include