summary refs log tree commit diff
path: root/pkgs/tools/admin/tightvnc/builder.sh
blob: 1b22238de4eeadf766b3928fd3e6701994e8ac1b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
source $stdenv/setup

buildPhase=buildPhase
buildPhase() {
    xmkmf
    make World
	sed -e 's@/usr/bin/perl@'$perl'/bin/perl@' -i vncserver

	cd Xvnc
	sed -e 's@.* CppCmd .*@#define CppCmd		'$gcc'/bin/cpp@' -i config/cf/linux.cf 
	sed -e 's@.* CppCmd .*@#define CppCmd		'$gcc'/bin/cpp@' -i config/cf/Imake.tmpl 
	./configure
	make
	cd ..
}

installPhase=installPhase
installPhase() {
    ensureDir $out/bin
    ensureDir $out/man/man1
    ./vncinstall $out/bin $out/man
}

genericBuild