aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/mguesser/Makefile
blob: 03496fd334e3bf7ccd1381a326d78fd630bc785d (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
# New ports collection makefile for:    mguesser
# Date created:         Jun 15, 2001
# Whom:             Mark Pulford <mark@kyne.com.au>
#
# $FreeBSD$
#

PORTNAME=   mguesser
PORTVERSION=    0.2
CATEGORIES= textproc
MASTER_SITES=   http://www.mnogosearch.org/guesser/

MAINTAINER= markp@FreeBSD.org
COMMENT=    A tool for guessing a text's charset and language

CFLAGS+=    -DUDM_GUESSER_STANDALONG -DLMDIR=\"${PREFIX}/share/mguesser\"
MAKE_ENV+=  CFLAGS="${$CFLAGS}"
USE_REINPLACE=  yes

post-patch:
    ${REINPLACE_CMD} -E \
        "s/^CC=.+//g; s|^CFLAGS=|CFLAGS+=|g; s|-Wall -g||g; \
        s|./maps|${PREFIX}/share/mguesser|g" ${WRKSRC}/Makefile

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/mguesser ${PREFIX}/bin
    ${MKDIR} ${PREFIX}/share/mguesser
    ${INSTALL_DATA} ${WRKSRC}/maps/*.lm ${PREFIX}/share/mguesser

.include <bsd.port.mk>