summaryrefslogtreecommitdiffstats
path: root/extra/lesstif/Pkgfile
blob: 81f8131849572fb26f779ebe86422cc7da23f2bd (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
30
# Description: Version libre de OSF/Motif
# URL: http://www.littlecms.com
# Maintainer: NuTyX core team 
# Packager: thierryn1 at hispeed dot ch
# Depends on: freetype, xorg

name=lesstif
version=0.95.2
release=1
source=( http://downloads.sourceforge.net/$name/$name-$version.tar.bz2)


build() {
	cd $name-$version
	./configure --prefix=/usr \
		--sysconfdir=/etc/X11 \
		--mandir=/usr/share/man \
		--disable-debug \
		--enable-production \
		--with-xdnd \
		--infodir=/usr/share/info
	sed -i "s@libdir)/X11/mwm@sysconfdir)/mwm@" clients/Motif-2.1/mwm/Makefile
	make rootdir=/usr/share/doc/$name-$version
	make rootdir=/usr/share/doc/$name-$version DESTDIR=$PKG install
	# Remove this file because belong to perl allready
       rm $PKG/usr/share/man/man3/Shell.3
	ln -v -sf /etc/X11/mwm $PKG/usr/lib/X11
	rm -r $PKG/usr/share/doc

}