summaryrefslogtreecommitdiff
path: root/x11-clocks/asclock/Makefile
blob: 9e03be70dad2233f2462e2b715053cad44470992 (plain) (blame)
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
# Created by: Yukihiro Nakai <Nakai@Mlab.t.u-tokyo.ac.jp>

PORTNAME=	asclock
PORTVERSION=	1.0
PORTREVISION=	4
CATEGORIES=	x11-clocks afterstep
MASTER_SITES=	XCONTRIB/applications
DISTNAME=	${PORTNAME}

MAINTAINER=	dinoex@FreeBSD.org
COMMENT=	Afterstep clock with some language extensions

LICENSE=	BSD2CLAUSE

CONFLICTS_INSTALL=	asclock-xlib

USES=		tar:tgz imake xorg
USE_XORG=	xpm xext x11
PLIST_FILES=	bin/asclock man/man1/asclock.1.gz

OPTIONS_DEFINE=
OPTIONS_SINGLE=	LANG
OPTIONS_SINGLE_LANG=	EN DE PT NL NO IT SE ES HU BRE FR CZ
OPTIONS_DEFAULT=	EN
NO_OPTIONS_SORT=yes
EN_DESC=	english
DE_DESC=	german
PT_DESC=	portuguese
NL_DESC=	dutch
NO_DESC=	norwegian
IT_DESC=	italian
SE_DESC=	swedish
ES_DESC=	spanish
HU_DESC=	hungarian
BRE_DESC=	breton
FR_DESC=	french
CZ_DESC=	czech

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MDE}
ASCLOCK_LANG=	german
.endif
.if ${PORT_OPTIONS:MPT}
ASCLOCK_LANG=	portuguese
.endif
.if ${PORT_OPTIONS:MNL}
ASCLOCK_LANG=	dutch
.endif
.if ${PORT_OPTIONS:MNO}
ASCLOCK_LANG=	norwegian
.endif
.if ${PORT_OPTIONS:MIT}
ASCLOCK_LANG=	italian
.endif
.if ${PORT_OPTIONS:MSE}
ASCLOCK_LANG=	swedish
.endif
.if ${PORT_OPTIONS:MES}
ASCLOCK_LANG=	spanish
.endif
.if ${PORT_OPTIONS:MHU}
ASCLOCK_LANG=	hungarian
.endif
.if ${PORT_OPTIONS:MBRE}
ASCLOCK_LANG=	breton
.endif
.if ${PORT_OPTIONS:MFR}
ASCLOCK_LANG=	french
.endif
.if ${PORT_OPTIONS:MCZ}
ASCLOCK_LANG=	czech
.endif

# default
ASCLOCK_LANG?=	english

pre-configure:
	${RM} ${WRKSRC}/month.xpm ${WRKSRC}/weekday.xpm
	(cd ${WRKSRC} && ${LN} -s ./${ASCLOCK_LANG}/month.xpm ./month.xpm)
	(cd ${WRKSRC} && ${LN} -s ./${ASCLOCK_LANG}/weekday.xpm ./weekday.xpm)

.include <bsd.port.mk>