CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
dropbear: moved from core collection
[attic/ports/opt-cross.git] / xfe / Pkgfile
CommitLineData
8cd63704
VM
1# Description: X File Explorer.
2# URL: http://roland65.free.fr/xfe/
3# Packager: Johannes, Schick dot Johannes at gmail dot com
4# Maintainer: Victor Martinez, pitillo at ono dot com
38b50d66 5# Arch Maintainer System Team devel at crux-arm dot nu
8cd63704
VM
6# Depends on: fox intltool
7
8name=xfe
9version=1.32.1
a1c335e8 10release=2
8cd63704
VM
11source=(http://dl.sourceforge.net/sourceforge/xfe/$name-$version.tar.gz)
12
13build() {
14 cd $name-$version
8cd63704 15 export FOX_CONFIG="1"
a1c335e8
VM
16
17 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' \
18 -e 's|`$FOX_CONFIG --cflags`|"-I$CLFS/usr/include/fox-1.6"|g' \
19 -e 's|`$xft_config --cflags`|-I$CLFS/usr/include|g' \
20 -e 's|`$xft_config --libs`|-L$CLFS/usr/lib -lXft|g' \
21 -e 's|`$freetype_config --cflags`|"-I$CLFS/usr/include -I$CLFS/usr/include/freetype2"|g' \
22 -e 's|`$freetype_config --libs`|"-L$CLFS/usr/lib -lfreetype"|g' -i configure
23
8cd63704 24 echo "ac_cv_func_malloc_0_nonnull=yes" > config.cache
8cd63704
VM
25 ./configure --build=$CHOST \
26 --host=$CTARGET \
27 --prefix=/usr \
28 --disable-nls \
29 --mandir=$PKG/usr/man \
a1c335e8 30 --enable-release \
8cd63704 31 --cache-file=config.cache
a1c335e8 32
8cd63704 33 sed -e '/#undef malloc/d' -e '/#undef realloc/d' -i config.h.in
a1c335e8 34
8cd63704
VM
35 make
36 make prefix=$PKG/usr install
37}