]> xenbits.xen.org Git - xenclient/build.git/commitdiff
[package/ncurses]: Only modify prefix= and exec_prefix=.
authorJean Guyader <jean.guyader@eu.citrix.com>
Tue, 12 Jan 2010 18:52:00 +0000 (18:52 +0000)
committerJean Guyader <jean.guyader@eu.citrix.com>
Tue, 12 Jan 2010 18:52:00 +0000 (18:52 +0000)
package/ncurses/ncurses.mk

index e06bfc2e23a46f3b58234ae29ad45304b3459397..0d2d3eb41f3a704abb2469e6bcb8da2314ef1548 100644 (file)
@@ -99,7 +99,8 @@ $(STAGING_DIR)/lib/libncurses.so.$(NCURSES_VERSION): $(NCURSES_DIR)/lib/libncurs
            gxx_include_dir=$(STAGING_DIR)/usr/include/c++ \
            ticdir=$(STAGING_DIR)/usr/share/terminfo \
            -C $(NCURSES_DIR) install
-       sed -i'' -re 's+/usr+$(STAGING_DIR)+g' $(STAGING_DIR)/bin/ncurses5-config
+       sed -i'' -re 's+^prefix=.*+prefix="$(STAGING_DIR)/usr"+g' $(STAGING_DIR)/bin/ncurses5-config
+       sed -i'' -re 's+^exec_prefix=.*+exec_prefix="$(STAGING_DIR)"+g' $(STAGING_DIR)/bin/ncurses5-config
        chmod a-x $(NCURSES_DIR)/lib/libncurses.so*
        touch -c $@