CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
file: modified Pkgfile to fix compilation (noeabi)
authorJose V Beneyto <sepen@crux.nu>
Wed, 31 Mar 2010 07:10:50 +0000 (09:10 +0200)
committerJose V Beneyto <sepen@crux.nu>
Wed, 31 Mar 2010 07:10:50 +0000 (09:10 +0200)
file/Pkgfile

index 6237218a2d9b9928dffc499804302d18dfdb2fb9..b60f365a9079cc525847226a01cb504eb22953ea 100644 (file)
@@ -6,16 +6,21 @@
 
 name=file
 version=5.04
-release=1
+release=2
 source=(ftp://ftp.fu-berlin.de/unix/tools/file/$name-$version.tar.gz)
 
 build() {
   cd $name-$version
+
+  sed -i magic/Makefile.am magic/Makefile.in \
+      -e 's|-C -m magic|-C -m magic/magic|'
+
   ./configure --build=$CHOST \
               --host=$CTARGET \
               --prefix=/usr \
               --mandir=/usr/man \
-              --enable-fsect-man5 
+              --enable-fsect-man5
+
   make
   make DESTDIR=$PKG install
   rmdir $PKG/usr/man/man4