99fcbb2484
- New LIB_DEPENDS syntax. - Remove references to PTHREAD_CFLAGS and PTHREAD_LIBS. - Staging. - japanese/tomoe: remove FreeBSD 6 support.
85 lines
2.5 KiB
Makefile
85 lines
2.5 KiB
Makefile
# Created by: Hajimu UMEMOTO <ume@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= tomoe
|
|
PORTVERSION= 0.6.0
|
|
PORTREVISION= 5
|
|
CATEGORIES= japanese
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
|
|
|
MAINTAINER= ume@FreeBSD.org
|
|
COMMENT= Tegaki Online MOji-ninshiki Engine
|
|
|
|
BUILD_DEPENDS= p5-XML-Parser>=0:${PORTSDIR}/textproc/p5-XML-Parser
|
|
|
|
GNU_CONFIGURE= yes
|
|
USES= gettext gmake libtool pathfix perl5 pkgconfig
|
|
USE_LDCONFIG= yes
|
|
USE_PERL5= build
|
|
|
|
CONFIGURE_ENV= PYTHON_VERSION=${PYTHON_VERSION:S;python;;} \
|
|
pyexecdir=${PYTHON_SITELIBDIR} \
|
|
GMSGFMT="${LOCALBASE}/bin/msgfmt"
|
|
CFLAGS+= -I${LOCALBASE}/include
|
|
|
|
OPTIONS_DEFINE= DICT_RUBY EST MYSQL PYTHON RUBY UNIHAN
|
|
OPTIONS_DEFAULT= PYTHON
|
|
OPTIONS_SUB= yes
|
|
DICT_RUBY_DESC= Enable Ruby based dictionary module
|
|
DICT_RUBY_CONFIGURE_ENABLE= dict-ruby
|
|
EST_DESC= Enable Hyper Estraier dictionary module
|
|
EST_CONFIGURE_WITH= est
|
|
MYSQL_DESC= Enable MySQL dictionary module
|
|
MYSQL_USE= MYSQL=yes
|
|
MYSQL_CONFIGURE_WITH= mysql
|
|
PYTHON_DESC= Enable Python module
|
|
PYTHON_USE= PYTHON=yes GNOME=pygtk2
|
|
PYTHON_CONFIGURE_OFF= --with-python=no
|
|
RUBY_DESC= Enable Ruby module
|
|
RUBY_USE= RUBY=yes
|
|
RUBY_CONFIGURE_OFF= --with-ruby=no
|
|
RUBY_BUILD_DEPENDS= rubygem-glib2>0:${PORTSDIR}/devel/rubygem-glib2
|
|
RUBY_RUN_DEPENDS= rubygem-glib2>0:${PORTSDIR}/devel/rubygem-glib2
|
|
RUBY_CFLAGS= -I${LOCALBASE}/include/ruby-${RUBY_VER} \
|
|
-I${LOCALBASE}/include/ruby-${RUBY_VER}/${RUBY_ARCH}
|
|
UNIHAN_DESC= Enable Unihan database dictionary module
|
|
UNIHAN_CONFIGURE_ENABLE= unihan
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MRUBY}
|
|
BROKEN= Broken with gem version of glib2
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MUNIHAN}
|
|
.if ${OSVERSION} >= 700042
|
|
BROKEN= Broken with Unihan with gcc 4.2
|
|
.endif
|
|
.if ${ARCH} == "sparc64"
|
|
BROKEN= Not buildable with Unihan on sparc64
|
|
.endif
|
|
MASTER_SITES+= ftp://ftp.unicode.org/Public/UNIDATA/:unihan
|
|
DISTFILES+= Unihan.zip:unihan
|
|
EXTRACT_DEPENDS+= ${UNZIP_CMD}:${PORTSDIR}/archivers/unzip
|
|
BUILD_DEPENDS+= \
|
|
${RUBY_SITEARCHLIBDIR}/uconv.so:${PORTSDIR}/japanese/ruby-uconv \
|
|
${RUBY_SITELIBDIR}/suikyo/suikyo.rb:${PORTSDIR}/japanese/suikyo
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MUNIHAN}
|
|
post-extract:
|
|
cd ${WRKSRC}/module/dict && \
|
|
${UNZIP_CMD} -qo ${DISTDIR}/Unihan.zip -d ${WRKSRC}/module/dict
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|glib/ge.*\.h>|glib.h>|g' \
|
|
-e 's|glib/ga.*\.h>|glib.h>|g' \
|
|
${WRKSRC}/lib/glib-compat-key-file.h \
|
|
${WRKSRC}/lib/tomoe.c \
|
|
${WRKSRC}/lib/glib-utils.h
|
|
|
|
.include <bsd.port.mk>
|