Lines 20-60
Link Here
|
20 |
USES= perl5 gmake |
20 |
USES= perl5 gmake |
21 |
MAKE_JOBS_UNSAFE=yes |
21 |
MAKE_JOBS_UNSAFE=yes |
22 |
WRKSRC= ${WRKDIR}/eijiro-fpw${PORTVERSION} |
22 |
WRKSRC= ${WRKDIR}/eijiro-fpw${PORTVERSION} |
23 |
DICT_PATH?= /cdrom |
23 |
DICT_PATH?= ${WRKSRC} |
24 |
SRCFILE?= eijiro52.txt |
24 |
SRCFILE?= eijiro52.txt |
25 |
|
25 |
|
|
|
26 |
OPTIONS_DEFINE= DOCS |
27 |
|
28 |
.include <bsd.port.options.mk> |
29 |
|
26 |
# For eijiro included in a book sold by ALC Inc. |
30 |
# For eijiro included in a book sold by ALC Inc. |
27 |
# (http://www.alc.co.jp/alcshop/eng/eijiro/) |
31 |
# (http://www.alc.co.jp/alcshop/eng/eijiro/) |
28 |
|
|
|
29 |
NO_STAGE= yes |
30 |
.include <bsd.port.pre.mk> |
32 |
.include <bsd.port.pre.mk> |
31 |
|
33 |
|
32 |
DICT_ARCHIVE!= ${ECHO_CMD} ${DICT_PATH}/eijiro-original/*.exe || ${TRUE} |
34 |
MAKE_ARGS+= SRCFILE=${DICT_PATH}/${SRCFILE} |
33 |
.if exists(${DICT_ARCHIVE}) |
|
|
34 |
EXTRACT_DEPENDS+= lha:${PORTSDIR}/archivers/lha |
35 |
|
36 |
CDROM_PATH:= ${DICT_PATH} |
37 |
DICT_PATH:= ${WRKDIR} |
38 |
.else |
39 |
CDROM_PATH= ${NONEXISTENT} |
40 |
.endif |
41 |
|
42 |
MAKE_ARGS:= SRCFILE=${DICT_PATH}/${SRCFILE} |
43 |
|
35 |
|
44 |
post-extract: |
36 |
post-extract: |
45 |
@if [ -f ${CDROM_PATH}/eijiro-original/*.exe ]; then \ |
37 |
.if ! exists(${DICT_PATH}/${SRCFILE}) |
46 |
lha xiw=${WRKDIR} ${CDROM_PATH}/eijiro-original/*.exe '*/${SRCFILE}'; \ |
38 |
@${ECHO} "###################################################" |
47 |
elif [ ! -f ${DICT_PATH}/${SRCFILE} ]; then \ |
39 |
@${ECHO} "I cannot find a file ${DICT_PATH}/${SRCFILE}" |
48 |
${ECHO} "###################################################"; \ |
40 |
@${ECHO} "Specify the Eijiro Dictionary file with the full path" |
49 |
${ECHO} "I cannot find a file ${DICT_PATH}/${SRCFILE}"; \ |
41 |
@${ECHO} "and excecute the following command again:" |
50 |
${ECHO} "Specify the Eijiro Dictionary file with the full path"; \ |
42 |
@${ECHO} " make DICT_PATH=${DICT_PATH} SRCFILE=${SRCFILE}" |
51 |
${ECHO} "and excecute the following command again:"; \ |
43 |
@${ECHO} "If you have the Eijiro CD-ROM, extract it first;" |
52 |
${ECHO} " make DICT_PATH=${DICT_PATH} SRCFILE=${SRCFILE}"; \ |
44 |
@${ECHO} "for example (after installing lha from ports or packages)," |
53 |
${ECHO} ""; \ |
45 |
@${ECHO} " lha x /cdrom/eijiro-original/*.exe" |
54 |
${ECHO} "Notice: DICT_PATH must be a full path to the file."; \ |
46 |
@${ECHO} "Then set DICT_PATH to the extracted sub-directory," |
55 |
${ECHO} "###################################################"; \ |
47 |
@${ECHO} " set SRCFILE to the dictionary file make in it." |
56 |
${FALSE}; \ |
48 |
@${ECHO} "" |
57 |
fi |
49 |
@${ECHO} "Notice: DICT_PATH must be a full path to the file." |
|
|
50 |
@${ECHO} "###################################################" |
51 |
@${FALSE} |
52 |
.endif |
58 |
${CP} ${LOCALBASE}/share/freepwing/fpwutils.mk ${WRKSRC} |
53 |
${CP} ${LOCALBASE}/share/freepwing/fpwutils.mk ${WRKSRC} |
59 |
|
54 |
|
60 |
post-build: |
55 |
post-build: |
Lines 62-75
Link Here
|
62 |
${SETENV} CATDUMPFLAGS="-e sjis" fpwmake catalogs |
57 |
${SETENV} CATDUMPFLAGS="-e sjis" fpwmake catalogs |
63 |
|
58 |
|
64 |
do-install: |
59 |
do-install: |
65 |
${MKDIR} ${PREFIX}/share/dict/eijiro-fpw/eijiro/data |
60 |
${MKDIR} ${STAGEDIR}${PREFIX}/share/dict/eijiro-fpw/eijiro/data |
66 |
${INSTALL_DATA} ${WRKSRC}/honmon ${PREFIX}/share/dict/eijiro-fpw/eijiro/data |
61 |
${INSTALL_DATA} ${WRKSRC}/honmon ${STAGEDIR}${PREFIX}/share/dict/eijiro-fpw/eijiro/data |
67 |
${INSTALL_DATA} ${WRKSRC}/catalogs ${PREFIX}/share/dict/eijiro-fpw |
62 |
${INSTALL_DATA} ${WRKSRC}/catalogs ${STAGEDIR}${PREFIX}/share/dict/eijiro-fpw |
68 |
.if !defined(NOPORTDOCS) |
63 |
${MKDIR} ${STAGEDIR}${DOCSDIR} |
69 |
${MKDIR} ${DOCSDIR} |
|
|
70 |
.for i in readme.sjis |
64 |
.for i in readme.sjis |
71 |
${INSTALL_DATA} ${WRKSRC}/$i ${DOCSDIR} |
65 |
${INSTALL_DATA} ${WRKSRC}/$i ${STAGEDIR}${DOCSDIR} |
72 |
.endfor |
66 |
.endfor |
73 |
.endif |
|
|
74 |
|
67 |
|
75 |
.include <bsd.port.post.mk> |
68 |
.include <bsd.port.post.mk> |