mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-04 01:48:54 +00:00
89a8a51d6d
Add LICENSE section and update the LEGAL file accordingly. Bump PORTREVISION x11-clocks/emiclock has a very restrictive license and changes has to be approved by Masayuki Koba the original author. The approval was obtained by private email exchange (in Japanese). ======================= From: koba@hoge.org To: nyan@FreeBSD.org > nyan wrote: > Could you please approve the followings. > > 1. Install and use UTF-8 resource file converted from EUC > (resources/R6/EUC/EmiClock.ad) without any changes. > > 2. Add the above method to emiclock's port and redistribute a package > that include UTF-8 resource file. Of course, I think that they are suitable ways these days so you may modify it. ======================= PR: 238308 Submitted by: nyan Approved by: Masayuki Koba <koba@hoge.org> (author)
55 lines
1.5 KiB
Makefile
55 lines
1.5 KiB
Makefile
# Created by: Nobuhiro Yasutomi
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= emiclock
|
|
PORTVERSION= 2.0.2
|
|
PORTREVISION= 5
|
|
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
|
|
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>
|