sdl: cleanup configure args + sdl-config, fixup /lib vs /usr/lib
authorPeter Korsgaard <jacmet@sunsite.dk>
Fri, 7 Mar 2008 13:31:24 +0000 (13:31 -0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Fri, 7 Mar 2008 13:31:24 +0000 (13:31 -0000)
package/sdl/sdl.mk

index eb2dd185bd12b79dbc7fee8229d72a3d9276c1ca..f62889d5205fedcf0bdbdaa85b2c1f3e4ca73b2c 100644 (file)
@@ -55,18 +55,10 @@ $(SDL_DIR)/.configured: $(SDL_DIR)/.unpacked
                --target=$(GNU_TARGET_NAME) \
                --host=$(GNU_TARGET_NAME) \
                --build=$(GNU_HOST_NAME) \
-               --prefix=/usr \
+               --prefix=$(STAGING_DIR)/usr \
                --exec-prefix=/usr \
-               --bindir=/bin \
-               --sbindir=/sbin \
-               --libdir=/lib \
-               --libexecdir=/lib \
                --sysconfdir=/etc \
-               --datadir=/share \
                --localstatedir=/var \
-               --includedir=/include \
-               --mandir=/man \
-               --infodir=/info \
                --enable-pulseaudio=no \
                --disable-arts \
                --disable-esd \
@@ -91,11 +83,9 @@ $(SDL_DIR)/.compiled: $(SDL_DIR)/.configured $(SDL_DIRECTFB_TARGET)
        touch $@
 
 $(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" \
+       $(MAKE) DESTDIR=$(STAGING_DIR) -C $(SDL_DIR) install
+# sdl-config uses -Lexec_prefix/lib instead of -Lprefix/lib - fix it
+       $(SED) 's^-L\$${exec_prefix}^-L\$${prefix}^' \
                $(STAGING_DIR)/usr/bin/sdl-config
        touch -c $@