blob: b8ad89b9f2d7bf473a0556276a7e51e9b65a7c00 (
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
|
PORTNAME= emiclock
PORTVERSION= 2.0.2
PORTREVISION= 6
CATEGORIES= x11-clocks
MASTER_SITES= LOCAL/nyan
MAINTAINER= ports@FreeBSD.org
COMMENT= Hyper-animated face analog clock for X11
LICENSE= UNKNOWN
LICENSE_NAME= Emi Clock for X11
LICENSE_FILE= ${WRKSRC}/COPYRIGHT.en
LICENSE_PERMS= dist-mirror no-dist-sell pkg-mirror no-pkg-sell auto-accept
USES= iconv:build imake xorg
USE_XORG= ice sm x11 xaw xext xmu xpm xt
LANGRES= resources/R6/EUC/EmiClock.ad
LANGDIR= ${PREFIX}/lib/X11/ja_JP.eucJP/app-defaults
LANGDIR2= ${PREFIX}/lib/X11/ja_JP.EUC/app-defaults
LANGDIR_UTF8= ${PREFIX}/lib/X11/ja_JP.UTF-8/app-defaults
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e \
's|^#if defined.*\(FreeBSDArchitecture\).*|#ifdef \1| ; \
/MakeDir/s|EmiClockLib|$$(DESTDIR)&| ; \
/INSTALL/s|EmiClockLib|$$(DESTDIR)&|' ${WRKSRC}/Imakefile
@${REINPLACE_CMD} -e \
'/USE_SOUND/s|#undef|#define|' ${WRKSRC}/config.h
@${REINPLACE_CMD} -e \
'/soundcard.h/s|machine|sys|' ${WRKSRC}/include/sound.h
post-install:
@${MKDIR} ${STAGEDIR}${LANGDIR}
(cd ${WRKSRC} && ${INSTALL_DATA} ${LANGRES} \
${STAGEDIR}${LANGDIR}/EmiClock)
@${MKDIR} ${STAGEDIR}${LANGDIR2}
${LN} -sf ../../ja_JP.eucJP/app-defaults/EmiClock \
${STAGEDIR}${LANGDIR2}/EmiClock
@${MKDIR} ${STAGEDIR}${LANGDIR_UTF8}
${ICONV_CMD} -f euc-jp -t utf-8 ${WRKSRC}/${LANGRES} > \
${STAGEDIR}${LANGDIR_UTF8}/EmiClock
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC} && ${INSTALL_DATA} COPYRIGHT COPYRIGHT.en \
${STAGEDIR}${DOCSDIR})
.include <bsd.port.mk>
|