diff options
Diffstat (limited to 'japanese/ddskk/Makefile')
-rw-r--r-- | japanese/ddskk/Makefile | 55 |
1 files changed, 32 insertions, 23 deletions
diff --git a/japanese/ddskk/Makefile b/japanese/ddskk/Makefile index 3b6ca9467a9..c28ca43cb5d 100644 --- a/japanese/ddskk/Makefile +++ b/japanese/ddskk/Makefile @@ -13,40 +13,49 @@ PKGNAMESUFFIX= -${EMACS_PORT_NAME} MAINTAINER= ports@FreeBSD.org COMMENT= Simple Kana to Kanji conversion program on Emacsen -OPTIONS_DEFINE= DOCS EXAMPLES +LICENSE= GPLv2 + +NO_ARCH= yes USE_EMACS= yes +MAKE_ARGS= PREFIX="${STAGEDIR}${PREFIX}" \ + SKK_LISPDIR="${STAGEDIR}${PREFIX}/${SKK_LISPDIR}" \ + SKK_INFODIR="${STAGEDIR}${PREFIX}/${INFO_PATH}" +ALL_TARGET= elc info + INFO= skk +PORTDOCS= * +PORTEXAMPLES= * -SKK_LISPDIR= ${EMACS_VERSION_SITE_LISPDIR}/skk -PORTDOCS= AUTHORS.ja CODENAME.ja Contributors FAQ.ja NEWS.ja README -PORTEXAMPLES= Emacs.ad dot.emacs dot.skk +OPTIONS_DEFINE= DOCS EXAMPLES -ALL_TARGET= elc info -MAKE_ARGS+= SKK_LISPDIR=${PREFIX}/${SKK_LISPDIR} SKK_INFODIR=${PREFIX}/${INFO_PATH} +SKK_LISPDIR= ${EMACS_VERSION_SITE_LISPDIR}/skk -NO_STAGE= yes -pre-install: - # required for non-standard PREFIX - ${MKDIR} ${PREFIX}/${SKK_LISPDIR} +post-patch: + @${REINPLACE_CMD} -e \ + '/skk-tut-file/s|@TUT@|${PREFIX}/share/skk/SKK.tut|' \ + ${WRKSRC}/skk-setup.el.in -.include <bsd.port.options.mk> +pre-build: +.for i in skk-lookup.el skk-jisx0213.el + @${MV} ${WRKSRC}/${i} ${WRKDIR} +.endfor post-install: -.for i in skk-jisx0213 skk-lookup - ${INSTALL_DATA} ${WRKSRC}/${i}.el ${PREFIX}/${SKK_LISPDIR} + @${MKDIR} ${STAGEDIR}${PREFIX}/${SKK_LISPDIR} +.for i in skk-lookup.el skk-jisx0213.el + (cd ${WRKDIR} && ${INSTALL_DATA} ${i} \ + ${STAGEDIR}${PREFIX}/${SKK_LISPDIR}) .endfor -.if ${PORT_OPTIONS:MDOCS} - ${MKDIR} ${DOCSDIR} -.for i in ${PORTDOCS} - ${INSTALL_DATA} ${WRKSRC}/READMEs/${i} ${DOCSDIR} + @${MKDIR} ${STAGEDIR}${DOCSDIR} +.for i in AUTHORS.ja CODENAME.ja Contributors FAQ.ja NEWS.ja README + (cd ${WRKSRC}/READMEs && ${INSTALL_DATA} ${i} \ + ${STAGEDIR}${DOCSDIR}) .endfor -.endif -.if ${PORT_OPTIONS:MEXAMPLES} - ${MKDIR} ${EXAMPLESDIR} -.for i in ${PORTEXAMPLES} - ${INSTALL_DATA} ${WRKSRC}/etc/${i} ${EXAMPLESDIR} + @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} +.for i in Emacs.ad dot.emacs dot.skk + (cd ${WRKSRC}/etc && ${INSTALL_DATA} ${i} \ + ${STAGEDIR}${EXAMPLESDIR}) .endfor -.endif .include <bsd.port.mk> |