1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-12 03:00:28 +00:00
freebsd-ports/textproc/rast/Makefile
Dmitry Marakasov 6f6fbe4bdf - Add LDFLAGS to CONFIGURE_ENV and MAKE_ENV (as it was done with LDFLAGS)
- Fix all ports that add {CPP,LD}FLAGS to *_ENV to modify flags instead

PR:		157936
Submitted by:	myself
Exp-runs by:	pav
Approved by:	pav
2011-09-23 22:26:39 +00:00

80 lines
2.1 KiB
Makefile

# New ports collection makefile for: rast
# Date created: Jan 2 2006
# Whom: Jun Kuriyama <kuriyama@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= rast
PORTVERSION= 0.3.1
PORTREVISION= 3
CATEGORIES= textproc
MASTER_SITES= http://projects.netlab.jp/rast/archives/ \
http://dist.bsdlab.org/
MAINTAINER= kuriyama@FreeBSD.org
COMMENT= Full-text search system using N-gram
BUILD_DEPENDS= nkf:${PORTSDIR}/japanese/nkf
LIB_DEPENDS= apr-1:${PORTSDIR}/devel/apr1
USE_AUTOTOOLS= libtool
USE_BZIP2= YES
USE_BDB= 42
GNU_CONFIGURE= YES
USE_RUBY= YES
CONFIGURE_ARGS= \
--with-apr-config=${LOCALBASE}/bin/apr-1-config \
--with-apu-config=${LOCALBASE}/bin/apu-1-config \
--with-db-includes="-I${BDB_INCLUDE_DIR}" \
--with-db-libs="-L${BDB_LIB_DIR} -l${BDB_LIB_NAME}" \
--with-ruby=${LOCALBASE}/bin/ruby \
--with-default-encoding=${DEFAULT_ENCODING} \
--with-filter-moduledir=${PREFIX}/lib/rast/filters
LDFLAGS+= -lz
CFLAGS+= -I${LOCALBASE}/include
USE_LDCONFIG= YES
MAKE_JOBS_UNSAFE= yes
MAN1= rast-config.1 rast-create.1 rast-delete.1 rast-optimize.1 \
rast-register.1 rast-search.1
.if defined(WITH_ICU)
CONFIGURE_ARGS+= --with-icu-config=${LOCALBASE}/bin/icu-config
BUILD_DEPENDS+= icu-config:${PORTSDIR}/devel/icu
DEFAULT_ENCODING= utf8
PLIST_SUB+= WITH_UTF8=""
.else
CONFIGURE_ARGS+= --without-icu-config
PLIST_SUB+= WITH_UTF8="@comment "
.endif
.if defined(WITH_MECAB)
CONFIGURE_ARGS+= --with-mecab-config=${LOCALBASE}/bin/mecab-config
BUILD_DEPENDS+= mecab-config:${PORTSDIR}/japanese/mecab
PLIST_SUB+= WITH_MECAB_EUC_JP=""
.else
CONFIGURE_ARGS+= --without-mecab-config
PLIST_SUB+= WITH_MECAB_EUC_JP="@comment "
.endif
.if defined(WITH_XMLRPC_C)
CONFIGURE_ARGS+= --with-xmlrpc-c-config=${LOCALBASE}/bin/xmlrpc-c-config
BUILD_DEPENDS+= xmlrpc-c-config:${PORTSDIR}/net/xmlrpc-c
PLIST_SUB+= WITH_XMLRPC_C=""
MAN1+= rast_xmlrpc_server_abyss.1
.else
CONFIGURE_ARGS+= --without-xmlrpc-c-config
PLIST_SUB+= WITH_XMLRPC_C="@comment "
.endif
.include <bsd.port.pre.mk>
DEFAULT_ENCODING?= euc_jp
.if ${RUBY_VER} == 1.9
BROKEN= does not compile with ruby 1.9
.endif
.include <bsd.port.post.mk>