blob: cab92d2755336dcdabb3f6e2034e0c8fddef7d06 (
plain)
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
49
|
# $NetBSD: Makefile,v 1.6 2011/12/16 16:49:26 hans Exp $
#
.include "../../textproc/mecab/Makefile.common"
DISTNAME= mecab-${MECAB_VERSION}
PKGNAME= mecab-base-${MECAB_VERSION}
COMMENT= Yet Another Part-of-Speech and Morphological Analyzer
LICENSE= gnu-gpl-v2 OR gnu-lgpl-v2.1 OR modified-bsd
PKG_DESTDIR_SUPPORT= user-destdir
GNU_CONFIGURE= yes
USE_LANGUAGES= c c++
USE_LIBTOOL= yes
OWN_DIRS= ${PREFIX:Q}/lib/mecab/dic
.include "../../mk/bsd.prefs.mk"
.include "../../mk/compiler.mk"
.if ${OPSYS} == "SunOS"
USE_TOOLS+= gmake
. if !empty(CC_VERSION:Mgcc-4.[6-9].*)
CFLAGS.SunOS+= -D_XOPEN_SOURCE=600 -std=c99
. endif
.endif
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
TEST_TARGET= check
EGDIR= ${PREFIX}/share/examples/mecab
CONF_FILES= ${EGDIR:Q}/mecabrc ${PKG_SYSCONFDIR:Q}/mecabrc
SUBST_CLASSES+= confdir
SUBST_STAGE.confdir= pre-configure
SUBST_FILES.confdir= Makefile.in
SUBST_SED.confdir= -e "s,\$$(sysconfdir),${EGDIR},"
SUBST_CLASSES+= pthread
SUBST_STAGE.pthread= pre-configure
SUBST_FILES.pthread= configure
SUBST_SED.pthread= -e 's|-lpthread||g'
PTHREAD_AUTO_VARS= yes
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|