1 # Template build file for 'lesstif'
5 build_style=gnu-configure
6 short_desc="LGPL'd re-implementation of Motif"
7 maintainer="Enno Boland <gottox@voidlinux.eu>"
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 \
20 --enable-nonstandard-conversions \
25 --x-includes=/usr/include \
26 --x-libraries=/usr/lib"
29 if [ -n "$CROSS_BUILD" ]; then
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.*//"
38 rm -rf $DESTDIR/usr/LessTif
41 lesstif-mwm_package() {
42 short_desc="LessTif clone of the Motif Window Manager"
46 vmove usr/share/man/man1/mwm.1
47 vmove usr/share/man/man5/mwmrc.5
48 vmove usr/lib/X11/app-defaults/Mwm
52 lesstif-xmbind_package() {
53 short_desc="Configures the virtual key bindings of LessTif applications"
56 vmove usr/share/man/man1/xmbind.1
60 lesstif-devel_package() {
61 depends="${sourcepkg}>=${version}_${revision}"
62 short_desc+=" - development files"
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
74 vmove usr/bin/motif-config