freebsd-ports/textproc/soothsayer/Makefile
Tijl Coosemans 68edbeeaae - Display a stage-qa warning when ports use PREFIX/var instead of /var
- Add --localstatedir=/var to _LATE_CONFIGURE_ARGS (like --mandir) but not
  when CONFIGURE_ARGS already sets it.  (GNU configure scripts set it to
  PREFIX/var when PREFIX != /usr.)
- Add --localstatedir="${PREFIX}/var" to CONFIGURE_ARGS in some ports so
  they aren't affected by this change (for now at least).  This commit is
  meant to ensure that new ports don't make the same mistake.

- games/acm: the configure script in this port is very old; instead of
  patching it more, just replace GNU_CONFIGURE with HAS_CONFIGURE.
- irc/charybdis: it already used /var but adding --localstatedir=/var
  changed the behaviour of the configure script; adjust the port to this.

PR:		199506
Exp-run by:	antoine
Approved by:	portmgr (antoine)
2015-04-20 19:06:29 +00:00

41 lines
1.2 KiB
Makefile

# Created by: Andrew Pantyukhin <infofarmer@FreeBSD.org>
# $FreeBSD$
PORTNAME= soothsayer
PORTVERSION= 0.6.3
PORTREVISION= 1
CATEGORIES= textproc
MASTER_SITES= SF/presage/${PORTNAME}/${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Intelligent predictive text entry platform
LICENSE= GPLv2 # (or later)
BUILD_DEPENDS= help2man:${PORTSDIR}/misc/help2man
USES= libtool pkgconfig
USE_SQLITE= 3
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
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
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 -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>