1 |
# $MidnightBSD$ |
2 |
|
3 |
PORTNAME= asclock |
4 |
PORTVERSION= 1.0 |
5 |
PORTREVISION= 2 |
6 |
CATEGORIES= x11-clocks afterstep |
7 |
MASTER_SITES= XCONTRIB/applications |
8 |
DISTNAME= ${PORTNAME} |
9 |
EXTRACT_SUFX= .tgz |
10 |
|
11 |
MAINTAINER= ports@MidnightBSD.org |
12 |
COMMENT= Afterstep clock with some language extensions |
13 |
|
14 |
LICENSE= bsd2 |
15 |
|
16 |
CONFLICTS= asclock-gtk-[0-9]* asclock-xlib-[0-9]* |
17 |
|
18 |
USES= imake |
19 |
USE_XORG= xpm xext x11 |
20 |
PLIST_FILES= bin/asclock man/man1/asclock.1.gz |
21 |
|
22 |
OPTIONS_DEFINE= |
23 |
OPTIONS_SINGLE= LANG |
24 |
OPTIONS_SINGLE_LANG= EN DE PT NL NO IT SE ES HU BRE FR CZ |
25 |
OPTIONS_DEFAULT= EN |
26 |
NO_OPTIONS_SORT=yes |
27 |
EN_DESC= english |
28 |
DE_DESC= german |
29 |
PT_DESC= portuguese |
30 |
NL_DESC= dutch |
31 |
NO_DESC= norwegian |
32 |
IT_DESC= italian |
33 |
SE_DESC= swedish |
34 |
ES_DESC= spanish |
35 |
HU_DESC= hungarian |
36 |
BRE_DESC= breton |
37 |
FR_DESC= french |
38 |
CZ_DESC= czech |
39 |
|
40 |
.include <bsd.mport.options.mk> |
41 |
|
42 |
.if ${PORT_OPTIONS:MDE} |
43 |
ASCLOCK_LANG= german |
44 |
.endif |
45 |
.if ${PORT_OPTIONS:MPT} |
46 |
ASCLOCK_LANG= portuguese |
47 |
.endif |
48 |
.if ${PORT_OPTIONS:MNL} |
49 |
ASCLOCK_LANG= dutch |
50 |
.endif |
51 |
.if ${PORT_OPTIONS:MNO} |
52 |
ASCLOCK_LANG= norwegian |
53 |
.endif |
54 |
.if ${PORT_OPTIONS:MIT} |
55 |
ASCLOCK_LANG= italian |
56 |
.endif |
57 |
.if ${PORT_OPTIONS:MSE} |
58 |
ASCLOCK_LANG= swedish |
59 |
.endif |
60 |
.if ${PORT_OPTIONS:MES} |
61 |
ASCLOCK_LANG= spanish |
62 |
.endif |
63 |
.if ${PORT_OPTIONS:MHU} |
64 |
ASCLOCK_LANG= hungarian |
65 |
.endif |
66 |
.if ${PORT_OPTIONS:MBRE} |
67 |
ASCLOCK_LANG= breton |
68 |
.endif |
69 |
.if ${PORT_OPTIONS:MFR} |
70 |
ASCLOCK_LANG= french |
71 |
.endif |
72 |
.if ${PORT_OPTIONS:MCZ} |
73 |
ASCLOCK_LANG= czech |
74 |
.endif |
75 |
|
76 |
# default |
77 |
ASCLOCK_LANG?= english |
78 |
|
79 |
pre-configure: |
80 |
${RM} ${WRKSRC}/month.xpm ${WRKSRC}/weekday.xpm |
81 |
(cd ${WRKSRC} && ${LN} -s ./${ASCLOCK_LANG}/month.xpm ./month.xpm) |
82 |
(cd ${WRKSRC} && ${LN} -s ./${ASCLOCK_LANG}/weekday.xpm ./weekday.xpm) |
83 |
|
84 |
.include <bsd.port.mk> |