summaryrefslogtreecommitdiffstats
path: root/textproc/soothsayer/Makefile
blob: ec1c9e880933bb964b75fe22817335a42e03a95e (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
# Created by: Andrew Pantyukhin <infofarmer@FreeBSD.org>
# $FreeBSD$

PORTNAME=	soothsayer
PORTVERSION=	0.6.3
PORTREVISION=	3
CATEGORIES=	textproc
MASTER_SITES=	SF/presage/${PORTNAME}/${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Intelligent predictive text entry platform

LICENSE=	GPLv2+

BUILD_DEPENDS=	help2man:misc/help2man

USES=		libtool localbase ncurses pkgconfig sqlite
GNU_CONFIGURE=	yes
CONFIGURE_ENV=	ac_cv_path_CPPUNIT_CONFIG=no \
		ac_cv_path_PYTHON=no \
		ac_cv_path_SWIG=no \
		ac_cv_prog_HAVE_DOT=no \
		ac_cv_prog_HAVE_DOXYGEN=no
CONFIGURE_ARGS=	--disable-python-binding --localstatedir="${PREFIX}/var"
INSTALL_TARGET=	install-strip
USE_LDCONFIG=	yes

MAKE_JOBS_UNSAFE=	yes

post-patch:
	@${REINPLACE_CMD} -e 's|\$$\^|$${.ALLSRC}| ; \
		 s|lib/soothsayer|soothsayer|g' ${WRKSRC}/resources/Makefile.in
	@${REINPLACE_CMD} -e 's|lib/soothsayer|soothsayer|' \
		${WRKSRC}/resources/profiles/Makefile.in
	@${REINPLACE_CMD} -e 's@lcurses@lncurses@g' \
		${WRKSRC}/src/tools/Makefile.in
	@${REINPLACE_CMD} -E -e "s|(LIBS=.*)-lsqlite3(.*)|\1\`pkg-config --static --libs sqlite3\`\2|" \
		-e "s|(.*SQLITE_LIBS=.*)-lsqlite3(.*)|\1\`pkg-config --static --libs sqlite3\`\2|" \
		-e 's@lcurses@lncurses@g' \
		${WRKSRC}/configure

.include <bsd.port.mk>
OpenPOWER on IntegriCloud