aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/link-grammar/Makefile
blob: fe72a711bc44136654a98d1c76af1ab15509c28a (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
# New ports collection makefile for:    link-grammar
# Date created:             22 May 2005
# Whom:                 Mezz <mezz@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   link-grammar
PORTVERSION=    4.7.4
CATEGORIES= textproc
MASTER_SITES=   http://www.abisource.com/downloads/${PORTNAME}/${PORTVERSION}/

MAINTAINER= gnome@FreeBSD.org
COMMENT=    A grammar checking library

LIB_DEPENDS=    pspell.16:${PORTSDIR}/textproc/aspell

USE_GNOME=  gnomehack ltverhack pkgconfig
USE_GMAKE=  yes
USE_AUTOTOOLS=  libtool
USE_LDCONFIG=   yes
USE_DOS2UNIX=   yes
USE_CSTD=   gnu99
CFLAGS+=    ${PTHREAD_CFLAGS}
CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib
CONFIGURE_ARGS= --enable-pthreads \
        --disable-java-bindings \
        --disable-hunspell \
        --enable-aspell
MAKE_JOBS_UNSAFE=   yes

DOCS=       AUTHORS LICENSE MAINTAINERS README
MAN1=       link-parser.1

post-patch:
    @${REINPLACE_CMD} -e "s|-lpthread|${PTHREAD_LIBS}|g" \
        ${WRKSRC}/configure ${WRKSRC}/${PORTNAME}/Makefile.in

.ifndef (NOPORTDOCS)
post-install:
    @${MKDIR} ${DOCSDIR}
.for i in ${DOCS}
    @${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>