freebsd-ports/devel/m17n-lib/Makefile
Philip M. Gollucci 31f730dd56 - Update m17n ports
- devel/m17n-lib         to 1.5.4 [1]
    - devel/m17n-db          to 1.5.4 [1]
    - textproc/scim-m17n     to 0.2.3 [2]
    - textproc/m17n-contrib  to 1.1.9 [3]
    - textproc/m17-im-config mark MAKE_JOBS_UNSAFE=yes [4]

PR:             ports/135933 [1], ports/135934 [2], ports/135935, ports/135946 [4]
Submitted by:   Nikola Lecic <nikola.lecic@anthesphoria.net> (maintainer)
2009-06-23 04:46:05 +00:00

62 lines
1.6 KiB
Makefile

# New ports collection makefile for: m17n-lib
# Date created: 29 May 2004
# Whom: Kimura Fuyuki <fuyuki@hadaly.org>
#
# $FreeBSD$
#
PORTNAME= m17n-lib
PORTVERSION= 1.5.4
CATEGORIES= devel
MASTER_SITES= http://www.m17n.org/m17n-lib-download/ \
http://anthesphoria.net/FreeBSD/ports/distfiles/
MAINTAINER= nikola.lecic@anthesphoria.net
COMMENT= A library for the multilingual text handling
BUILD_DEPENDS= m17n-db>=1.5.4:${PORTSDIR}/devel/m17n-db
LIB_DEPENDS= fribidi.0:${PORTSDIR}/converters/fribidi \
gd.4:${PORTSDIR}/graphics/gd \
otf.0:${PORTSDIR}/print/libotf
RUN_DEPENDS= m17n-db>=1.5.4:${PORTSDIR}/devel/m17n-db
MAKE_JOBS_UNSAFE= yes
USE_XORG= xaw xft xt
USE_GNOME= gnometarget libxml2 pkgconfig
USE_AUTOTOOLS= libtool:15
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib -lintl"
USE_LDCONFIG= yes
OPTIONS= ANTHY "With Anthy support" off \
ISPELL "With Ispell support" off \
THAI "With libThai support" off
.include <bsd.port.pre.mk>
.if defined(WITH_ANTHY)
LIB_DEPENDS+= anthy.1:${PORTSDIR}/japanese/anthy
.else
CONFIGURE_ARGS+= --without-anthy
.endif
.if defined(WITH_ISPELL)
BUILD_DEPENDS+= ispell:${PORTSDIR}/textproc/ispell
RUN_DEPENDS+= ispell:${PORTSDIR}/textproc/ispell
.else
CONFIGURE_ENV+= HAVE_ISPELL=no
.endif
.if defined(WITH_THAI)
LIB_DEPENDS+= thai.0:${PORTSDIR}/devel/libthai
.else
CONFIGURE_ARGS+= --without-libthai
.endif
post-patch:
@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
's|$${libdir}/pkgconfig|$${prefix}/libdata/pkgconfig|g ; \
s|-ldl||g'
.include <bsd.port.post.mk>