CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
scummvm: fixed crosstools usage
authorJose V Beneyto <sepen@crux.nu>
Mon, 4 Jan 2010 11:27:22 +0000 (12:27 +0100)
committerJose V Beneyto <sepen@crux.nu>
Mon, 4 Jan 2010 11:27:22 +0000 (12:27 +0100)
scummvm/Pkgfile

index 2c299df19e951b5e1fae7edfb567d54963034e34..1f23ab2f68777255d9bb9bc7c04d9c3fb377bdcc 100644 (file)
@@ -8,7 +8,7 @@
 
 name=scummvm
 version=1.0.0
-release=1
+release=2
 source=(http://dl.sourceforge.net/sourceforge/$name/$name-$version.tar.bz2)
 
 build() {
@@ -21,7 +21,6 @@ build() {
   export ZLIB_LIBS="$DEFAULT_LIBS"
   export ZLIB_CFLAGS="$DEFAULT_CFLAGS"
   
-  sed -i ports.mk -e 's|$(INSTALL) -c -s|$(INSTALL)|'
   ./configure --host=$CTARGET \
               --prefix=/usr \
               --mandir=/usr/man \
@@ -30,6 +29,13 @@ build() {
               --enable-sci \
               --enable-sci32
 
+  sed -i ports.mk -e 's|$(INSTALL) -c -s|$(INSTALL)|'
+  sed -i config.mk \
+      -e  "s|RANLIB := .*|RANLIB := $RANLIB|" \
+      -e  "s|STRIP := .*|STRIP := $STRIP|" \
+      -e  "s|AR := .*|AR := $AR cru|" \
+      -e  "s|AS := .*|AS := $AS|"
+
   make
   make DESTDIR=$PKG install
   rm -rf $PKG/usr/share/doc