1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00
freebsd-ports/textproc/mguesser/Makefile
Mark Pulford cab3a431b8 Update to 0.2.
Fix REINPLACE, -E is required.
De-pkg-comment.
2003-02-22 16:15:22 +00:00

31 lines
793 B
Makefile

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