mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-20 04:02:27 +00:00
d72c560b21
Hat: portmgr
38 lines
1.1 KiB
Makefile
38 lines
1.1 KiB
Makefile
# New ports collection makefile for: soothsayer
|
|
# Date created: 7 August 2007
|
|
# Whom: Andrew Pantyukhin <infofarmer@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= soothsayer
|
|
PORTVERSION= 0.6
|
|
CATEGORIES= textproc
|
|
MASTER_SITES= SF
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Intelligent predictive text entry platform
|
|
|
|
BUILD_DEPENDS= swig>=1.3.31:${PORTSDIR}/devel/swig13
|
|
|
|
USE_LDCONFIG= yes
|
|
USE_SQLITE= 3
|
|
USE_GNOME= pkgconfig
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --disable-static --localstatedir=${PREFIX}/var/${PORTNAME}
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS= -L${LOCALBASE}/lib
|
|
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
|
|
|
|
PORT_VERBS= ${PORTNAME} text2ngram
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|\$$\^|$${.ALLSRC}|' ${WRKSRC}/resources/Makefile.in
|
|
@${REINPLACE_CMD} -e '1s|/.*|/bin/sh|'\
|
|
${WRKSRC}/resources/profiles/generate_soothsayer_config.sh
|
|
@${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|" \
|
|
${WRKSRC}/configure
|
|
|
|
.include <bsd.port.mk>
|