mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-06 06:30:19 +00:00
b9ea6f5223
PR: 97523 Submitted by: TAKATSU Tomonari <tota@rtfm.jp>
51 lines
1.0 KiB
Makefile
51 lines
1.0 KiB
Makefile
# New ports collection makefile for: mecab
|
|
# Date created: 2 April 2003
|
|
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= mecab
|
|
PORTVERSION= 0.91
|
|
PORTREVISION= 1
|
|
CATEGORIES= japanese textproc
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_JP}
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}/${SUB_DIR}
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Yet Another Part-of-Speech and Morphological Analyzer
|
|
|
|
SUB_DIR= 20027
|
|
|
|
USE_PERL5_BUILD= yes
|
|
GNU_CONFIGURE= yes
|
|
INSTALLS_SHLIB= yes
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="${PTHREAD_CFLAGS}"
|
|
|
|
MAN1= mecab.1
|
|
|
|
DOCS= AUTHORS README doc/*.html
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${PERL_LEVEL} < 500800
|
|
IGNORE= requires perl 5.8.x or later. Install lang/perl5.8 and try again
|
|
.endif
|
|
|
|
post-install:
|
|
.if !defined(NOPORTDOCS)
|
|
${MKDIR} ${DOCSDIR}
|
|
.for f in ${DOCS}
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/
|
|
.endfor
|
|
.endif
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -e 's/-lpthread/${PTHREAD_LIBS}/g' \
|
|
-e 's/-O3/${CFLAGS}/' ${WRKSRC}/${CONFIGURE_SCRIPT}
|
|
|
|
.include <bsd.port.post.mk>
|