summaryrefslogtreecommitdiff
blob: e85c098a5a311a5be5fc54572865a6e3ef0c69b7 (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# Author Daniel Robbins <drobbins@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/x11-wm/WindowMaker/WindowMaker-0.80.0-r1.ebuild,v 1.2 2002/02/09 12:37:47 verwilst Exp $

S=${WORKDIR}/${P}
DESCRIPTION="Window Maker"
SRC_URI="ftp://ftp.windowmaker.org/pub/source/release/${P}.tar.gz
	 ftp://ftp.windowmaker.org/pub/source/release/WindowMaker-extra-0.1.tar.bz2"
HOMEPAGE="http://www.windowmaker.org/"
SLOT="0"
DEPEND="virtual/glibc virtual/x11
	>=media-libs/tiff-3.5.5
	>=media-libs/libpng-1.0.12
	>=media-libs/jpeg-6b-r2
	x11-wm/gnustep-env
	gif? ( >=media-libs/giflib-4.1.0-r3 )
	ungif? ( >=media-libs/libungif-4.1.0 )
	nls? ( >=sys-devel/gettext-0.10.39 )"
# Replaced by WINGS
#	>=x11-libs/libPropList-0.10.1"

#NOTE: the default menu has the wrong path for the WMPrefs utility.  
# Needs fixing.

src_compile() {

        patch -p1 < ${FILESDIR}/wmfpo-80.patch    

	local myconf
	if [ "`use gnome`" ] ; then
		myconf="--enable-gnome"
	fi
	if [ "`use kde`" ] ; then
		# hope this helps for linking against kdelibs, 
		# I'm not testing other wms right now
		export KDEDIR=/usr/kde/2
		myconf="$myconf --enable-kde"
	fi
	if [ "$WITH_MODELOCK" ] ; then
                myconf="$myconf --enable-modelock"
	fi
	if [ "`use nls`" ] ; then
 		LINGUAS="`ls po/*.po | sed 's:po/\(.*\)\.po$:\1:'`"
		export LINGUAS
	fi

	./configure --host=${CHOST}					\
		    --prefix=/usr					\
		    --mandir=/usr/share/man				\
		    --infodir=/usr/share/info				\
		    --sysconfdir=/etc/X11				\
		    --with-nlsdir=/usr/share/locale			\
		    --with-x						\
		    --enable-newstyle					\
		    --enable-superfluous				\
		    --enable-usermenu					\
		    $myconf || die
		    
	make || die
  
  	# WindowMaker Extra
	cd ../WindowMaker-extra-0.1
	./configure --host=${CHOST}					\
		    --prefix=/usr					\
		    --mandir=/usr/share/man				\
		    --infodir=/usr/share/info || die
		    
	make || die
}

src_install() {

	make prefix=${D}/usr						\
	     mandir=${D}/usr/share/man					\
	     infodir=${D}/usr/share/info				\
	     sysconfdir=${D}/etc/X11					\
	     NLSDIR=${D}/usr/share/locale				\
	     GNUSTEP_LOCAL_ROOT=${D}${GNUSTEP_LOCAL_ROOT}		\
	     install || die

	cp -f WindowMaker/plmenu ${D}/etc/X11/WindowMaker/WMRootMenu

	dodoc AUTHORS BUGFORUM BUGS ChangeLog COPYING* INSTALL* FAQ*	\
	      MIRRORS README* NEWS TODO

	# WindowMaker Extra
	cd ../WindowMaker-extra-0.1
	make prefix=${D}/usr						\
	     mandir=${D}/usr/share/man					\
	     infodir=${D}/usr/share/info				\
	     install || die
	
	newdoc README README.extra
}