freebsd-ports/textproc/libexttextcat/Makefile
Baptiste Daroussin 4735340533 - add an OPTION to allow libexttextcat to be a dropin replacement for libtextcat
- add a check target to all runinng libexttextcat check

PR:		ports/167945
Submitted by:	Peter Jeremy <peter@rulingia.com>
2012-05-18 23:10:51 +00:00

62 lines
1.4 KiB
Makefile

# New ports collection makefile for: libexttextcat
# Date created: 2012-01-21
# Whom: Baptiste Daroussin <bapt@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= libexttextcat
PORTVERSION= 3.2.0
PORTREVISION= 2
CATEGORIES= textproc
MASTER_SITES= http://dev-www.libreoffice.org/src/libexttextcat/
MAINTAINER= office@FreeBSD.org
COMMENT= Language guessing by N-Gram-Based Text Categorization
LICENSE= BSD
CONFLICTS_INSTALL= libtextcat*
USE_XZ= yes
GNU_CONFIGURE= yes
USE_GMAKE= yes
USE_GNOME= gnomehack
USE_LDCONFIG= yes
PORTDOCS= README README.libtextcat TODO
OPTIONS= COMPAT_TEXTCAT "Install libtextcat compatible files" Off
.include <bsd.port.options.mk>
.if defined(WITH_COMPAT_TEXTCAT)
PLIST_SUB+= TEXTCAT=''
.else
PLIST_SUB+= TEXTCAT='@comment '
.endif
.if defined(WITH_LM_FILES)
PLIST_SUB+= LM=''
.else
PLIST_SUB+= LM='@comment '
.endif
post-install:
.if defined(WITH_COMPAT_TEXTCAT)
${LN} -sf libexttextcat/textcat.h ${PREFIX}/include/
${LN} -sf libexttextcat ${PREFIX}/include/libtextcat
${LN} -sf libexttextcat.a ${PREFIX}/lib/libtextcat.a
${LN} -sf libexttextcat.la ${PREFIX}/lib/libtextcat.la
${LN} -sf libexttextcat.so.0 ${PREFIX}/lib/libtextcat.so
${LN} -sf libexttextcat.so.0 ${PREFIX}/lib/libtextcat.so.0
.endif
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
.endif
check:
cd ${WRKSRC}/src && make check
.include <bsd.port.mk>