aboutsummaryrefslogblamecommitdiff
path: root/textproc/mguesser/Makefile
blob: e5bf1062788328f0f1f8f4e9ae84136d17fa441d (plain) (tree)
1
2
3
4
5
6
7
8
9
                                             
           

                        
                   


                                                   
                                 
                                                               
 
           
                             
                                                                     


                                                      

           


                                                                      

                      
# Created by: Mark Pulford <mark@kyne.com.au>
# $FreeBSD$

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

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Tool for guessing a text's charset and language

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

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

.include <bsd.port.mk>