summaryrefslogtreecommitdiff
path: root/x11/asclock/Makefile
blob: 538558b1a21a7073e9a9bff7ff79cc703f0439ee (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
# $NetBSD: Makefile,v 1.14 1999/10/07 17:22:59 jlam Exp $
#

DISTNAME=	asclock-classic-1.0
PKGNAME=	asclock-1.0
CATEGORIES=	x11
MASTER_SITES=	http://www.asclock.org/tar/

MAINTAINER=	hubertf@netbsd.org
HOMEPAGE=	http://www.asclock.org/

DEPENDS+=	xpm-3.4k:../../graphics/xpm

CONFLICTS=	asclock-xlib-* asclock-gtk-*

USE_IMAKE=	yes

LANGUAGES=	english german portuguese dutch norwegian italian swedish \
		spanish hungarian breton french czech russian ukrainian \
		slovene indonesian danish

# Choose language from:
# 1) english [DEFAULT]
# 2) german
# 3) portuguese
# 4) dutch
# 5) norwegian
# 6) italian
# 7) swedish
# 8) spanish
# 9) hungarian
# 0) breton
# a) french
# b) czech
# c) russian
# d) ukrainian
# e) slovene
# f) indonesian
# g) danish
LANG?=1

# Choose paneltype from:
# 1) 8bit AfterStep-colors (47 colors) [DEFAULT]
# 2) 8bit NeXTStep -colors (76 colors)
# 3) 2bit greyscale        ( 4 colors)
PANEL?=1

WRKSRC=		${WRKDIR}/asclock1.0
PLIST_SRC=	${WRKDIR}/.PLIST_SRC

do-configure:
	cd ${WRKSRC} ; ( ${ECHO} ${LANG} ; ${ECHO} ${PANEL} ) | ./configure

post-install:
	${RM} -rf ${WRKSRC}/french/french2
	${CAT} ${PKGDIR}/PLIST > ${PLIST_SRC}
	${INSTALL_DATA_DIR} ${PREFIX}/share/examples/asclock
.for LANGUAGE in ${LANGUAGES}
	${INSTALL_DATA_DIR} ${PREFIX}/share/examples/asclock/${LANGUAGE}
	cd ${WRKSRC}/${LANGUAGE}; ${INSTALL_DATA} month.xpm weekday.xpm \
		${PREFIX}/share/examples/asclock/${LANGUAGE}
	@${ECHO} share/examples/asclock/${LANGUAGE}/month.xpm >> ${PLIST_SRC}
	@${ECHO} share/examples/asclock/${LANGUAGE}/weekday.xpm >> ${PLIST_SRC}
	@${ECHO} @dirrm share/examples/asclock/${LANGUAGE} >> ${PLIST_SRC}
.endfor
	@${ECHO} @dirrm share/examples/asclock >> ${PLIST_SRC}

.include "../../mk/bsd.pkg.mk"