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
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
5 # Arch Maintainer System Team devel at crux-arm dot nu
6 # Depends on: fox intltool
7
8 name=xfe
9 version=1.32.1
10 release=2
11 source=(http://dl.sourceforge.net/sourceforge/xfe/$name-$version.tar.gz)
12
13 build() {
14 cd $name-$version
15 export FOX_CONFIG="1"
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
24 echo "ac_cv_func_malloc_0_nonnull=yes" > config.cache
25 ./configure --build=$CHOST \
26 --host=$CTARGET \
27 --prefix=/usr \
28 --disable-nls \
29 --mandir=$PKG/usr/man \
30 --enable-release \
31 --cache-file=config.cache
32
33 sed -e '/#undef malloc/d' -e '/#undef realloc/d' -i config.h.in
34
35 make
36 make prefix=$PKG/usr install
37 }