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
|
2009-09-01 01:35:27 +02:00
|
|
|
PORTVERSION= 1.5.5
|
2010-03-28 08:47:48 +02:00
|
|
|
PORTREVISION= 4
|
2004-05-29 19:45:46 +02:00
|
|
|
CATEGORIES= devel
|
2009-01-11 12:11:03 +01:00
|
|
|
MASTER_SITES= http://www.m17n.org/m17n-lib-download/ \
|
|
|
|
http://anthesphoria.net/FreeBSD/ports/distfiles/
|
2004-05-29 19:45:46 +02:00
|
|
|
|
2009-01-11 12:11:03 +01:00
|
|
|
MAINTAINER= nikola.lecic@anthesphoria.net
|
2004-05-29 19:45:46 +02:00
|
|
|
COMMENT= A library for the multilingual text handling
|
|
|
|
|
2009-09-01 01:35:27 +02:00
|
|
|
BUILD_DEPENDS= m17n-db>=1.5.5:${PORTSDIR}/devel/m17n-db
|
2009-08-22 19:36:57 +02:00
|
|
|
LIB_DEPENDS= fribidi.3:${PORTSDIR}/converters/fribidi \
|
2005-03-03 13:51:48 +01:00
|
|
|
gd.4:${PORTSDIR}/graphics/gd \
|
2007-10-23 13:40:51 +02:00
|
|
|
otf.0:${PORTSDIR}/print/libotf
|
2009-09-01 01:35:27 +02:00
|
|
|
RUN_DEPENDS= m17n-db>=1.5.5:${PORTSDIR}/devel/m17n-db
|
2004-05-29 19:45:46 +02:00
|
|
|
|
2009-06-21 21:11:39 +02:00
|
|
|
MAKE_JOBS_UNSAFE= yes
|
|
|
|
|
2007-10-23 13:40:51 +02:00
|
|
|
USE_XORG= xaw xft xt
|
2005-03-03 13:51:48 +01:00
|
|
|
USE_GNOME= gnometarget libxml2 pkgconfig
|
2009-08-02 21:36:34 +02:00
|
|
|
USE_AUTOTOOLS= libtool:22
|
2005-03-03 13:51:48 +01:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
2009-01-11 12:11:03 +01:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib -lintl"
|
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 \
|
2007-10-23 13:40:51 +02:00
|
|
|
ISPELL "With Ispell support" off \
|
|
|
|
THAI "With libThai support" off
|
2004-05-29 19:45:46 +02:00
|
|
|
|
|
|
|
.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
|
2007-10-23 13:40:51 +02:00
|
|
|
CONFIGURE_ARGS+= --without-anthy
|
2004-05-29 19:45:46 +02:00
|
|
|
.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
|
|
|
|
|
2007-10-23 13:40:51 +02:00
|
|
|
.if defined(WITH_THAI)
|
|
|
|
LIB_DEPENDS+= thai.0:${PORTSDIR}/devel/libthai
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-libthai
|
|
|
|
.endif
|
|
|
|
|
2004-05-29 19:45:46 +02:00
|
|
|
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'
|
2004-05-29 19:45:46 +02:00
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|