1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-24 09:25:01 +00:00
freebsd-ports/japanese/anthy/Makefile
Mathieu Arnold 60d1a83c2a MASTER_SITES cleanup.
- Replace ${MASTER_SITE_FOO} with FOO.
- Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9%
  of the time.)
- Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and
  no hint of what it should be was present.
- Fix some logic.
- And generally, make things more simple and easy to understand.

While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and
SAMBA macros.

Also, replace some EXTRACT_SUFX occurences with USES=tar:*.

Checked by:	make fetch-urlall-list
With hat:	portmgr
Sponsored by:	Absolight
2015-05-14 10:15:04 +00:00

88 lines
2.4 KiB
Makefile

# Created by: Yukihiro Nakai <nakai@FreeBSD.org>
# $FreeBSD$
PORTNAME= anthy
PORTVERSION= 9100h
PORTREVISION= 4
CATEGORIES= japanese
MASTER_SITES= SFJP/${PORTNAME}/37536
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
DIST_SUBDIR= anthy
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= nobutaka@FreeBSD.org
COMMENT= Another Kana-Kanji conversion system
LICENSE= GPLv2 LGPL21
LICENSE_COMB= multi
LICENSE_FILE_GPLv2= ${WRKSRC}/alt-cannadic/COPYING
LICENSE_FILE_LGPL21= ${WRKSRC}/COPYING
GNU_CONFIGURE= yes
USES= libtool pathfix pkgconfig
USE_LDCONFIG= yes
INSTALL_TARGET= install-strip
DOCSDIR= ${PREFIX}/share/doc/ja/anthy
ELISPDIR= share/emacs/site-lisp/anthy
PLIST_SUB= ELISPDIR=${ELISPDIR}
OPTIONS_DEFINE= 2CHDIC ODIC GSKKDIC DOCS
2CHDIC_DESC= 2ch Dictionary
ODIC_DESC= Okinawa Dictionary
GSKKDIC_DESC= SKK Dictionary
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:M2CHDIC}
MASTER_SITES+= http://omaemona.sourceforge.net/packages/Zisyo/:2chdic
DISTFILES+= 2ch.t:2chdic
.endif
.if ${PORT_OPTIONS:MODIC}
MASTER_SITES+= http://www.ofug.net/~yamajun/files/:odic
DISTFILES+= ${ODIC_SRCS}:odic
ODIC_SRCS= ${ODIC_VERS}.t
ODIC_VERS= okinawa-20070717
.endif
.if ${PORT_OPTIONS:MGSKKDIC}
MASTER_SITES+= http://www.ohnolab.org/~kimoto/:gskk
DISTFILES+= ${GSKK_SRCS}:gskk
GSKK_SRCS= ${GSKK_VERS}.t.gz
GSKK_VERS= gskk-20041208
.endif
post-extract:
.if ${PORT_OPTIONS:M2CHDIC}
${CP} ${DISTDIR}/${DIST_SUBDIR}/2ch.t ${WRKSRC}/mkworddic
${PRINTF} "/mkworddic\\\\/base.t/a\\\\\\nread @top_srcdir@/mkworddic/2ch.t\\n" | \
${REINPLACE_CMD} -f /dev/stdin ${WRKSRC}/mkworddic/dict.args.in
.endif
.if ${PORT_OPTIONS:MODIC}
${CP} ${DISTDIR}/${DIST_SUBDIR}/${ODIC_SRCS} ${WRKSRC}/mkworddic
${PRINTF} "/mkworddic\\\\/base.t/a\\\\\\nread @top_srcdir@/mkworddic/${ODIC_SRCS}\\n" | \
${REINPLACE_CMD} -f /dev/stdin ${WRKSRC}/mkworddic/dict.args.in
.endif
.if ${PORT_OPTIONS:MGSKKDIC}
${CP} ${DISTDIR}/${DIST_SUBDIR}/${GSKK_SRCS} ${WRKSRC}/mkworddic
${GUNZIP_CMD} ${WRKSRC}/mkworddic/${GSKK_SRCS}
${PRINTF} "/mkworddic\\\\/base.t/a\\\\\\nread @top_srcdir@/mkworddic/${GSKK_VERS}.t\\n" | \
${REINPLACE_CMD} -f /dev/stdin ${WRKSRC}/mkworddic/dict.args.in
.endif
post-patch:
${REINPLACE_CMD} -e \
's| install-lispLISP||g' ${WRKSRC}/src-util/Makefile.in
post-install:
${MKDIR} ${STAGEDIR}${PREFIX}/${ELISPDIR}
${INSTALL_DATA} ${WRKSRC}/src-util/*.el ${STAGEDIR}${PREFIX}/${ELISPDIR}
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/ELISP ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>