summaryrefslogtreecommitdiffstats
path: root/xfsprogs/Pkgfile
blob: d4bf1424815ad9b87f4a5433a38485f9bc3b56ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
description="Filesystem utilities for XFS."
packager="CRUX System Team <core-ports AT crux DOT nu>"
maintainer="Lukc <lukc AT upyum DOT com>"
url="http://oss.sgi.com/projects/xfs/"
depends=(util-linux-ng)

name=xfsprogs
version=3.1.4
release=1
source=(ftp://oss.sgi.com/projects/xfs/cmd_tars/$name-$version.tar.gz)
build () 
{
	if use nls; then
		opts=(--enable-gettext)
	else
		opts=(--disable-gettext)
	fi
	cd $name-$version;
	export DEBUG=-DNDEBUG;
	export OPTIMIZER=$CFLAGS;
	./configure \
		--prefix=$prefix \
		--mandir=$mandir \
		${opts[@]};
	make;
	make DIST_ROOT=$PKG install install-dev;
	rm $PKG/lib/libhandle.{a,la,so};
	ln -sf ../../lib/libhandle.so.1.0.3 $PKG$prefix/lib/libhandle.so;
}