1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00
freebsd-ports/japanese/tomoe/Makefile

105 lines
2.6 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: ja-tomoe
# Date created: 18 Dec 2005
# Whom: Hajimu UMEMOTO <ume@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= tomoe
2007-08-16 16:32:28 +00:00
PORTVERSION= 0.6.0
2007-04-08 17:47:16 +00:00
#PORTREVISION= 0
CATEGORIES= japanese
2007-08-16 16:32:28 +00:00
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=tomoe
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
2007-01-06 15:19:07 +00:00
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= ume@FreeBSD.org
COMMENT= Tegaki Online MOji-ninshiki Engine
USE_GNOME= lthack gnomehack
2007-08-16 16:32:28 +00:00
GNU_CONFIGURE= yes
USE_GETTEXT= yes
USE_GMAKE= yes
2006-12-17 08:00:23 +00:00
USE_LDCONFIG= yes
2007-01-06 15:19:07 +00:00
USE_RUBY= yes
BUILD_DEPENDS+= ${RUBY_SITEARCHLIBDIR}/glib2.so:${PORTSDIR}/devel/ruby-glib2
RUN_DEPENDS+= ${RUBY_SITEARCHLIBDIR}/glib2.so:${PORTSDIR}/devel/ruby-glib2
# We cannot use ${ARCH} nor ${UNAME} which are defined in bsd.port.mk, here.
UNAME= /usr/bin/uname
ARCH!= ${UNAME} -p
OPTIONS=DICT_RUBY "Enable Ruby based dictionary module" off \
EST "Enable Hyper Estraier dictionary module" off \
2007-08-16 16:32:28 +00:00
MYSQL "Enable MySQL dictionary module" off \
PYTHON "Enable Python module" on
.if ${ARCH} == "sparc64"
OPTIONS+=UNIHAN "Enable Unihan database dictionary module" off
.else
OPTIONS+=UNIHAN "Enable Unihan database dictionary module" on
.endif
.include <bsd.port.pre.mk>
.if defined(WITH_DICT_RUBY)
CONFIGURE_ARGS+=--enable-dict-ruby
PLIST_SUB+= DICT_RUBY=""
.else
PLIST_SUB+= DICT_RUBY="@comment "
.endif
.if defined(WITH_EST)
CONFIGURE_ARGS+=--with-est
PLIST_SUB+= EST=""
.else
PLIST_SUB+= EST="@comment "
.endif
.if defined(WITH_MYSQL)
USE_MYSQL= yes
CONFIGURE_ARGS+=--with-mysql
PLIST_SUB+= MYSQL=""
.else
PLIST_SUB+= MYSQL="@comment "
.endif
2007-08-16 16:32:28 +00:00
.if defined(WITHOUT_PYTHON)
CONFIGURE_ARGS+=--with-python=no
PLIST_SUB+= PYTHON="@comment "
.else
USE_PYTHON= yes
.include "${PORTSDIR}/Mk/bsd.python.mk"
PLIST_SUB+= PYTHON=""
.endif
.if defined(WITH_UNIHAN)
.if ${ARCH} == "sparc64"
BROKEN= Not buildable with Unihan on sparc64
.endif
MASTER_SITES+= ftp://ftp.unicode.org/Public/UNIDATA/:unihan
DISTFILES+= Unihan.zip:unihan
2007-01-06 15:19:07 +00:00
EXTRACT_DEPENDS+= unzip:${PORTSDIR}/archivers/unzip
BUILD_DEPENDS+= \
2007-01-06 15:19:07 +00:00
${RUBY_SITEARCHLIBDIR}/uconv.so:${PORTSDIR}/japanese/ruby-uconv \
${RUBY_SITELIBDIR}/suikyo/suikyo.rb:${PORTSDIR}/japanese/suikyo
PLIST_SUB+= UNIHAN=""
.else
CONFIGURE_ARGS+=--disable-unihan
PLIST_SUB+= UNIHAN="@comment "
.endif
2007-01-06 15:19:07 +00:00
2007-08-16 16:32:28 +00:00
CONFIGURE_ENV+= CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
PYTHON_VERSION=${PYTHON_VERSION:S;python;;} \
pyexecdir=${PYTHON_SITELIBDIR} \
GMSGFMT='/usr/local/bin/msgfmt'
.if defined(WITH_UNIHAN)
2007-01-06 15:19:07 +00:00
post-extract:
cd ${WRKSRC}/module/dict && \
${UNZIP_CMD} -qo ${DISTDIR}/Unihan.zip -d ${WRKSRC}/module/dict
.endif
2007-01-06 15:19:07 +00:00
.include <bsd.port.post.mk>