python-texttable: update to 1.3.1
[void-packages.git] / srcpkgs / lesstif / template
blobf9e061b6bb458ffcc5de370cc6b466f1d8d69c42
1 # Template build file for 'lesstif'
2 pkgname=lesstif
3 version=0.95.2
4 revision=5
5 build_style=gnu-configure
6 short_desc="LGPL'd re-implementation of Motif"
7 maintainer="Enno Boland <gottox@voidlinux.eu>"
8 license="LGPL-2.1"
9 homepage="http://lesstif.sourceforge.net/"
10 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.bz2"
11 checksum=eb4aa38858c29a4a3bcf605cfe7d91ca41f4522d78d770f69721e6e3a4ecf7e3
12 hostmakedepends="pkg-config"
13 #makedepends="libXt-devel libXp-devel libXft-devel libXrender-devel fontconfig-devel freetype-devel libX11-devel libICE-devel"
14 makedepends="libXt-devel libXp-devel libXft-devel"
15 configure_args="--prefix=/usr \
16         --mandir=/usr/share/man \
17         --docdir=/usr/share/doc \
18         --with-xdnd \
19         --enable-production \
20         --enable-nonstandard-conversions \
21         --enable-editres \
22         --enable-build-21 \
23         --disable-static \
24         --disable-debug \
25         --x-includes=/usr/include \
26         --x-libraries=/usr/lib"
28 pre_build() {
29         if [ -n "$CROSS_BUILD" ]; then
30                 cd ${wrksrc}/scripts
31                 msg_normal "Building man2html for $XBPS_ARCH\n"
32                 cc -o man2html man2html.c
33                 # Disable the rule for cross-gcc man2html
34                 sed -i Makefile -e "/noinst_PROGRAMS = / s/man2html.*//"
35         fi
37 post_install() {
38         rm -rf $DESTDIR/usr/LessTif
41 lesstif-mwm_package() {
42         short_desc="LessTif clone of the Motif Window Manager"
43         pkg_install() {
44                 vmove usr/bin/mwm
45                 vmove usr/lib/X11/mwm
46                 vmove usr/share/man/man1/mwm.1
47                 vmove usr/share/man/man5/mwmrc.5
48                 vmove usr/lib/X11/app-defaults/Mwm
49         }
52 lesstif-xmbind_package() {
53         short_desc="Configures the virtual key bindings of LessTif applications"
54         pkg_install() {
55                 vmove usr/bin/xmbind
56                 vmove usr/share/man/man1/xmbind.1
57         }
60 lesstif-devel_package() {
61         depends="${sourcepkg}>=${version}_${revision}"
62         short_desc+=" - development files"
63         pkg_install() {
64                 vmove usr/include
65                 vmove "usr/lib/*.so"
66                 vmove usr/share/man/man3
67                 vmove usr/share/man/man1/ltversion.1
68                 vmove usr/share/man/man1/uil.1
69                 vmove usr/share/man/man1/lesstif.1
70                 vmove usr/share/man/man5/VirtualBindings.5
71                 vmove usr/lib/LessTif
72                 vmove usr/bin/uil
73                 vmove usr/bin/mxmkmf
74                 vmove usr/bin/motif-config
75         }