summaryrefslogtreecommitdiff
blob: 61443189db59ac09e23f730c6e6f7c5b344cf824 (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
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Karl Trygve Kalleberg <karltk@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/x11-wm/asclock/asclock-2.0.12.ebuild,v 1.3 2002/04/14 08:43:10 seemant Exp $

S=${WORKDIR}/${P}

DESCRIPTION="Clock applet for AfterStep"
SRC_URI="http://www.tigr.net/afterstep/download/asclock/${P}.tar.gz"
HOMEPAGE="http://www.tigr.net/afterstep/list.pl"

DEPEND="virtual/glibc virtual/x11"

src_unpack() {
    unpack ${P}.tar.gz
	cd ${S}
	ln -s themes/classic default_theme
}

src_compile() {
	local x
	for x in asclock parser symbols config
	do
		gcc 	\
			${CFLAGS} 	\
			-I/usr/X11R6/include 	\
			-Dlinux -D__i386__	\
			-D_POSIX_C_SOURCE=199309L 	\
			-D_POSIX_SOURCE	\
			-D_XOPEN_SOURCE	\
			-D_BSD_SOURCE	\
			-D_SVID_SOURCE	\
			-DFUNCPROTO=15	\
			-DNARROWPROTO	\
			-c -o ${x}.o ${x}.c || die
	done
	gcc 	\
		${CFLAGS}	\
		-o asclock	\
		asclock.o parser.o symbols.o config.o	\
		-L/usr/X11R6/lib	\
		-L/usr/lib/X11	\
		-lXpm -lXext -lX11 || die  
}

src_install () {
	dobin asclock
	dodir usr/share/asclock
	cp -a themes/* ${D}/usr/share/asclock
	dodoc COPYING INSTALL README README.THEMES TODO
}