correct paths in sdl-config
authorIvan Kuten <ivan.kuten@promwad.com>
Fri, 16 Nov 2007 15:35:14 +0000 (15:35 -0000)
committerIvan Kuten <ivan.kuten@promwad.com>
Fri, 16 Nov 2007 15:35:14 +0000 (15:35 -0000)
package/sdl/sdl.mk

index 3c79955c718f80a9dbeea6c48d58c6f2ecf1fccb..c177f84b4c641706a56dd85e9b12a4fb254bb877 100644 (file)
@@ -94,6 +94,11 @@ $(SDL_DIR)/.compiled: $(SDL_DIR)/.configured $(SDL_DIRECTFB_TARGET)
 
 $(STAGING_DIR)/usr/lib/libSDL.so: $(SDL_DIR)/.compiled
        $(MAKE) DESTDIR=$(STAGING_DIR)/usr -C $(SDL_DIR) install
+       $(SED) "s,^prefix=.*,prefix=\'$(STAGING_DIR)\',g" \
+               -e "s,^exec_prefix=.*,exec_prefix=\'$(STAGING_DIR)/usr\',g" \
+               -e "s,^libdir=.*,libdir=\'$(STAGING_DIR)/lib\',g" \
+               -e "s,-I/include/SDL,-I\'$(STAGING_DIR)/include/SDL\',g" \
+               $(STAGING_DIR)/usr/bin/sdl-config
        touch -c $@
 
 $(TARGET_DIR)/usr/lib/libSDL.so: $(STAGING_DIR)/usr/lib/libSDL.so