aboutsummaryrefslogtreecommitdiffstats
path: root/devel/m17n-lib/Makefile
blob: 397f1f8210d5cc41d841472926d39978f54dfb2d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# New ports collection makefile for:    m17n-lib
# Date created:             29 May 2004
# Whom:                 Kimura Fuyuki <fuyuki@hadaly.org>
#
# $FreeBSD$
#

PORTNAME=   m17n-lib
PORTVERSION=    1.6.1
PORTREVISION=   2
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=  bison:${PORTSDIR}/devel/bison \
        m17n-db>=1.6.1:${PORTSDIR}/devel/m17n-db
LIB_DEPENDS=    fontconfig.1:${PORTSDIR}/x11-fonts/fontconfig \
        freetype.9:${PORTSDIR}/print/freetype2 \
        fribidi.3:${PORTSDIR}/converters/fribidi \
        gd.4:${PORTSDIR}/graphics/gd \
        otf.0:${PORTSDIR}/print/libotf
RUN_DEPENDS=    m17n-db>=1.6.1:${PORTSDIR}/devel/m17n-db

MAKE_JOBS_UNSAFE=   yes

USE_XORG=   ice sm x11 xaw xft xt
USE_GNOME=  gnometarget libxml2 pkgconfig
USE_AUTOTOOLS=  autoconf libtool
USE_LDCONFIG=   yes

OPTIONS=    ANTHY   "With Anthy support" off \
        ISPELL  "With Ispell support" off \
        THAI    "With libThai support" off

.include <bsd.port.pre.mk>

CONFIGURE_ARGS+=    --disable-nls

.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>