aboutsummaryrefslogtreecommitdiff
path: root/textproc/libexttextcat
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2012-10-09 23:33:12 +0000
committerCy Schubert <cy@FreeBSD.org>2012-10-09 23:33:12 +0000
commitbebe0a2e9f09bd257c26d0f94b658c5b50d4587a (patch)
tree63ab8ca866490166bd662bc13255bb82c75f38ee /textproc/libexttextcat
parent6e92c3faf6de540c6466799f6c3c90b4673de513 (diff)
Notes
Diffstat (limited to 'textproc/libexttextcat')
-rw-r--r--textproc/libexttextcat/Makefile11
-rw-r--r--textproc/libexttextcat/pkg-plist6
2 files changed, 11 insertions, 6 deletions
diff --git a/textproc/libexttextcat/Makefile b/textproc/libexttextcat/Makefile
index d9cf059102e5..76e49734386d 100644
--- a/textproc/libexttextcat/Makefile
+++ b/textproc/libexttextcat/Makefile
@@ -2,6 +2,7 @@
PORTNAME= libexttextcat
PORTVERSION= 3.3.1
+PORTREVISION= 1
CATEGORIES= textproc
MASTER_SITES= http://dev-www.libreoffice.org/src/libexttextcat/
@@ -10,8 +11,6 @@ COMMENT= Language guessing by N-Gram-Based Text Categorization
LICENSE= BSD
-CONFLICTS_INSTALL= libtextcat*
-
USE_XZ= yes
GNU_CONFIGURE= yes
USE_GMAKE= yes
@@ -20,15 +19,21 @@ USE_LDCONFIG= yes
PORTDOCS= README README.libtextcat TODO
-OPTIONS_DEFINE= COMPAT_TEXTCAT DOCS
+OPTIONS_DEFINE= COMPAT_TEXTCAT DOCS
COMPAT_TEXTCAT_DESC= Install libtextcat compatible files
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MCOMPAT_TEXTCAT}
+.if exists(${PREFIX}/lib/libtextcat.a)
+CONFLICTS_INSTALL= libtextcat*
+.endif
PLIST_SUB+= TEXTCAT=''
+PLIST_SUB+= EXEEXT=''
.else
PLIST_SUB+= TEXTCAT='@comment '
+PLIST_SUB+= EXEEXT='x'
+MAKE_ARGS= EXEEXT=x
.endif
post-install:
diff --git a/textproc/libexttextcat/pkg-plist b/textproc/libexttextcat/pkg-plist
index 95f455c9c123..085445465df7 100644
--- a/textproc/libexttextcat/pkg-plist
+++ b/textproc/libexttextcat/pkg-plist
@@ -1,4 +1,4 @@
-bin/createfp
+bin/createfp%%EXEEXT%%
include/libexttextcat/common.h
include/libexttextcat/constants.h
include/libexttextcat/exttextcat-version.h
@@ -174,6 +174,6 @@ share/vala/vapi/libexttextcat.vapi
%%DATADIR%%/zh-Hant.lm
%%DATADIR%%/zu.lm
@dirrm %%DATADIR%%
-@dirrm share/vala/vapi
-@dirrm share/vala/
+@dirrmtry share/vala/vapi
+@dirrmtry share/vala/
@dirrm include/libexttextcat