aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/csrd/Makefile
blob: 210414f67989ab66f19830a1060a0d68c20c10d0 (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
# Created by: Satoshi TAOKA <taoka@FreeBSD.org>
# $FreeBSD$

PORTNAME=   csrd
PORTVERSION=    1.0
PORTREVISION=   1
CATEGORIES= japanese
MASTER_SITES=   http://openlab.ring.gr.jp/edict/csrd/

PATCH_SITES=    http://green.ribbon.to/~ikazuhiro/dic/files/
PATCHFILES= csrd.c.diff.gz

MAINTAINER= yasu@utahime.org
COMMENT=    Utility for Shogakukan Random House English-Japanese Dictionary

LICENSE=    PUBLIC_DOMAIN
LICENSE_NAME=   Public Domain
LICENSE_FILE=   ${WRKSRC}/csrd.doc
LICENSE_PERMS=  dist-mirror dist-sell pkg-mirror pkg-sell auto-accept

MAKEFILE=   makefile.unx
MAKE_ARGS=  CC="${CC}"
ALL_TARGET= csrd

OPTIONS_DEFINE= DOCS

PLIST_DIRS= %%DATADIR%%
PLIST_FILES=    bin/csrd %%DATADIR%%/csrd.fmt %%DATADIR%%/csrd.gai \
        %%DATADIR%%/quiet.fmt %%DATADIR%%/quiet.gai

PORTDOCS=   README csrd.doc

SUB_FILES=  pkg-message

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/csrd ${STAGEDIR}${PREFIX}/bin
    ${MKDIR} ${STAGEDIR}${DATADIR}
    ${INSTALL_DATA} ${WRKSRC}/csrd.fmt ${STAGEDIR}${DATADIR}
    ${INSTALL_DATA} ${WRKSRC}/csrd.gai ${STAGEDIR}${DATADIR}
    ${INSTALL_DATA} ${WRKSRC}/quiet.fmt ${STAGEDIR}${DATADIR}
    ${INSTALL_DATA} ${WRKSRC}/quiet.gai ${STAGEDIR}${DATADIR}
    ${MKDIR} ${STAGEDIR}${DOCSDIR}
.for f in ${PORTDOCS}
    ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
.endfor

.include <bsd.port.mk>