blob: 4c5afd8dfc8d2c6b33913e19ce20230b2d122a77 (
plain) (
tree)
|
|
# New ports collection makefile for: Migemo
# Date created: 19 February 2001
# Whom: MANTANI Nobutaka <nobutaka@nobutaka.com>
#
# $FreeBSD$
#
PORTNAME= migemo
PORTVERSION= 0.40
PORTREVISION= 6
PORTEPOCH= 1
CATEGORIES= japanese elisp
MASTER_SITES= http://0xcc.net/migemo/ \
${MASTER_SITE_LOCAL:S/$/:skkdic/}
MASTER_SITE_SUBDIR= nobutaka/:skkdic
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${SKKDIC_FILE}.bz2:skkdic
DIST_SUBDIR= migemo
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= nobutaka@FreeBSD.org
COMMENT?= Japanese incremental search tool
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
.if !defined(SLAVE_PORT)
USE_AUTOTOOLS= automake14 autoconf213
EXTRA_PATCHES= ${FILESDIR}/extra-patch-Makefile.am ${FILESDIR}/extra-patch-configure.in
PLIST_SUB= MIGEMO="" ELISP="@comment "
.endif
USE_RUBY= yes
BUILD_DEPENDS+= ${RUBY_SITELIBDIR}/romkan.rb:${PORTSDIR}/japanese/ruby-romkan \
${RUBY_SITELIBDIR}/bsearch.rb:${PORTSDIR}/devel/ruby-bsearch
RUN_DEPENDS+= ${RUBY_SITELIBDIR}/romkan.rb:${PORTSDIR}/japanese/ruby-romkan \
${RUBY_SITELIBDIR}/bsearch.rb:${PORTSDIR}/devel/ruby-bsearch
CONFIGURE_ARGS+=--with-rubydir=${RUBY_SITELIBDIR}
MAKE_JOBS_UNSAFE= yes
SKKDIC_FILE= SKK-JISYO.L-20101223
.include <bsd.port.pre.mk>
.if ${ARCH} == "ia64"
BROKEN= Does not compile on ia64
.endif
post-extract:
.if ${SLAVE_PORT} == "no"
${BZIP2_CMD} -cd ${DISTDIR}/${DIST_SUBDIR}/${SKKDIC_FILE}.bz2 > ${WRKSRC}/SKK-JISYO.L
.endif
post-configure:
.if ${SLAVE_PORT} == "no"
(cd ${WRKSRC}; ${CAT} SKK-JISYO.L | ${RUBY} migemo-convert.rb > migemo-dict)
${CP} ${AUTOMAKE_DIR}/config.guess ${WRKSRC}
${CP} ${AUTOMAKE_DIR}/config.sub ${WRKSRC}
.endif
post-install:
.if ${SLAVE_PORT} == "yes"
@${CAT} ${PKGMESSAGE}
.endif
.if ${RUBY_VER} == 1.9
BROKEN= does not build with ruby 1.9
.endif
.include <bsd.port.post.mk>
|