summaryrefslogtreecommitdiffstats
path: root/textproc/libtranslate/Makefile
blob: ddb6fc75b36964d1cfe7bf1cbae2781a77ea2d82 (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
# New ports collection makefile for:    libtranslate
# Date created:         15 Jan 2005
# Whom:             Jean-Yves Lefort <jylefort@brutele.be>
#
# $FreeBSD$
#

PORTNAME=       libtranslate
PORTVERSION=        0.99
PORTREVISION=       4
CATEGORIES=     textproc
MASTER_SITES=       ${MASTER_SITE_SAVANNAH}
MASTER_SITE_SUBDIR= ${PORTNAME}

MAINTAINER=     jylefort@FreeBSD.org
COMMENT=        A natural language translation library

USE_GETOPT_LONG=    yes
USE_GNOME=      glib20 gnomehack intlhack
GNU_CONFIGURE=      yes
USE_GMAKE=      yes
USE_LDCONFIG=       yes
CPPFLAGS=       -I${LOCALBASE}/include
LDFLAGS=        -L${LOCALBASE}/lib
CONFIGURE_ENV=      CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
CONFIGURE_ARGS=     --with-html-dir=${PREFIX}/share/doc

OPTIONS=        GENERIC "generic module" on \
            TALKFILTERS "talkfilters module" on

MAN1=           translate.1

.include <bsd.port.pre.mk>

.if defined(WITHOUT_GENERIC)
CONFIGURE_ARGS+=    --disable-generic
PLIST_SUB+=     GENERIC="@comment "
.else
PLIST_SUB+=     GENERIC=""
USE_GNOME+=     libxml2
LIB_DEPENDS+=       soup-2.2:${PORTSDIR}/devel/libsoup22
MAN5+=          services.xml.5
.endif

.if defined(WITHOUT_TALKFILTERS)
CONFIGURE_ARGS+=    --disable-talkfilters
PLIST_SUB+=     TALKFILTERS="@comment "
.else
PLIST_SUB+=     TALKFILTERS=""
LIB_DEPENDS+=       talkfilters:${PORTSDIR}/misc/talkfilters
.endif

post-patch:
    @${REINPLACE_CMD} -e 's|echo aout|echo elf|' ${WRKSRC}/configure

.include <bsd.port.post.mk>