CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
xfe: Fixed xft link.
authorVictor Martinez <pitillo@ono.com>
Thu, 14 Jan 2010 15:36:37 +0000 (15:36 +0000)
committerVictor Martinez <pitillo@ono.com>
Thu, 14 Jan 2010 15:37:21 +0000 (15:37 +0000)
xfe/Pkgfile

index b9893f36630dc16bae5d566d6028db2e2a938a01..88dd7c71b58a9db4771e8da7f173538ff9bd7ec5 100644 (file)
@@ -7,24 +7,31 @@
 
 name=xfe
 version=1.32.1
-release=1
+release=2
 source=(http://dl.sourceforge.net/sourceforge/xfe/$name-$version.tar.gz)
 
 build() {
   cd $name-$version
-  export FOXCFLAGS="-I$CLFS/usr/include -I$CLFS/usr/include/fox-1.6"
-  export CXXFLAGS="${CXXFLAGS} $FOXCFLAGS"
   export FOX_CONFIG="1"
+
+  sed -e 's|`$FOX_CONFIG --libs \| grep Xft`|"-L$CLFS/usr/lib -lFOX-1.6 -lXext -lX11 -lXcursor -ldl -lXft -lXrender -lfontconfig -lfreetype -lX11 -lz -lpthread -lrt -ljpeg -lpng -ltiff -lz -lbz2 -lm"|g' \
+      -e 's|`$FOX_CONFIG --cflags`|"-I$CLFS/usr/include/fox-1.6"|g' \
+      -e 's|`$xft_config --cflags`|-I$CLFS/usr/include|g' \
+      -e 's|`$xft_config --libs`|-L$CLFS/usr/lib -lXft|g' \
+      -e 's|`$freetype_config --cflags`|"-I$CLFS/usr/include -I$CLFS/usr/include/freetype2"|g' \
+      -e 's|`$freetype_config --libs`|"-L$CLFS/usr/lib -lfreetype"|g' -i configure
+
   echo "ac_cv_func_malloc_0_nonnull=yes" > config.cache
-  
   ./configure --build=$CHOST \
               --host=$CTARGET \
               --prefix=/usr \
               --disable-nls \
               --mandir=$PKG/usr/man \
+              --enable-release \
               --cache-file=config.cache 
-
+  
   sed -e '/#undef malloc/d' -e '/#undef realloc/d' -i config.h.in
+  
   make
   make prefix=$PKG/usr install
 }