2004-05-29 19:45:46 +02:00
|
|
|
# New ports collection makefile for: m17n-lib
|
|
|
|
# Date created: 29 May 2004
|
|
|
|
# Whom: Kimura Fuyuki <fuyuki@hadaly.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= m17n-lib
|
2007-07-07 03:56:02 +02:00
|
|
|
PORTVERSION= 1.3.4
|
2004-05-29 19:45:46 +02:00
|
|
|
CATEGORIES= devel
|
2006-09-03 04:13:38 +02:00
|
|
|
MASTER_SITES= http://www.m17n.org/m17n-lib-download/
|
2004-05-29 19:45:46 +02:00
|
|
|
|
2004-10-21 09:50:49 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2004-05-29 19:45:46 +02:00
|
|
|
COMMENT= A library for the multilingual text handling
|
|
|
|
|
2005-03-03 13:51:48 +01:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/share/m17n/mdb.dir:${PORTSDIR}/devel/m17n-db
|
2004-05-29 19:45:46 +02:00
|
|
|
LIB_DEPENDS= fribidi.0:${PORTSDIR}/converters/fribidi \
|
2005-03-03 13:51:48 +01:00
|
|
|
gd.4:${PORTSDIR}/graphics/gd \
|
2004-08-17 16:03:27 +02:00
|
|
|
otf.0:${PORTSDIR}/print/libotf \
|
2005-03-03 13:51:48 +01:00
|
|
|
Xft.2:${PORTSDIR}/x11-fonts/libXft
|
2004-05-29 19:45:46 +02:00
|
|
|
RUN_DEPENDS= ${LOCALBASE}/share/m17n/mdb.dir:${PORTSDIR}/devel/m17n-db
|
|
|
|
|
2007-02-01 03:42:05 +01:00
|
|
|
USE_AUTOTOOLS= libtool:15
|
2004-05-29 19:45:46 +02:00
|
|
|
USE_XLIB= yes
|
2005-03-03 13:51:48 +01:00
|
|
|
USE_GNOME= gnometarget libxml2 pkgconfig
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
2006-08-15 00:55:18 +02:00
|
|
|
USE_LDCONFIG= yes
|
2004-05-29 19:45:46 +02:00
|
|
|
|
|
|
|
OPTIONS= ANTHY "With Anthy support" off \
|
|
|
|
ISPELL "With Ispell support" off
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2005-03-03 13:51:48 +01:00
|
|
|
.if defined(WITH_ANTHY)
|
2004-07-04 05:20:26 +02:00
|
|
|
LIB_DEPENDS+= anthy.1:${PORTSDIR}/japanese/anthy
|
2004-05-29 19:45:46 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ENV+= ac_cv_lib_anthydic_anthy_init_sessions=no
|
|
|
|
.endif
|
|
|
|
|
2005-03-03 13:51:48 +01:00
|
|
|
.if defined(WITH_ISPELL)
|
2004-05-29 19:45:46 +02:00
|
|
|
BUILD_DEPENDS+= ispell:${PORTSDIR}/textproc/ispell
|
|
|
|
RUN_DEPENDS+= ispell:${PORTSDIR}/textproc/ispell
|
|
|
|
.else
|
|
|
|
CONFIGURE_ENV+= HAVE_ISPELL=no
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
2005-03-03 13:51:48 +01:00
|
|
|
@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
|
|
|
|
's|$${libdir}/pkgconfig|$${prefix}/libdata/pkgconfig|g ; \
|
|
|
|
s|-ldl||g'
|
2007-07-07 03:56:02 +02:00
|
|
|
@${REINPLACE_CMD} -e '/if test/s|==|=|g' ${WRKSRC}/configure
|
2004-05-29 19:45:46 +02:00
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|