mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-22 08:58:47 +00:00
9346b215f0
are no more self hosting so we are stuck with 0.25 version while pkgconf provide the same set of features as 0.27 and a compatible frontend. A symlink to pkg-config has been added for convenience and compatibility This also introduces a new macro to use pkgconf in your ports: USE_PKGCONFIG it can take the following arguments: - yes (meaning build only dep) - build (meaning build only dep) - run (meaning run only dep) - both (meaning run and build dep) From now USE_GNOME= pkgconfig is deprecated in favour of USE_PKGCONFIG The old gnome macro has been modified to use pkgconf but still the sameway: run and build dep to avoid large breakage. While here fix some ports relying on pkg-config but not specifying it, fix some ports broken because testing wrong .pc files, and fix ports using pkg-config --version to determine pkg-config version instead of pkg-config --modversion pkg-config like recommanded by pkg-config With Hat: portmgr Exp-runs by: bapt (pointhat-west), beat (pointyhat)
49 lines
1.4 KiB
Makefile
49 lines
1.4 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.3
|
|
CATEGORIES= textproc
|
|
MASTER_SITES= # none known, please fix
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Intelligent predictive text entry platform
|
|
|
|
BUILD_DEPENDS= help2man:${PORTSDIR}/misc/help2man
|
|
|
|
USE_SQLITE= 3
|
|
USE_AUTOTOOLS= libtool
|
|
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
|
|
USE_LDCONFIG= yes
|
|
USE_PKGCONFIG= yes
|
|
|
|
MAN1= soothsayer_demo.1 soothsayer_demo_text.1 \
|
|
soothsayer_simulator.1 text2ngram.1
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
PORT_VERBS= ${PORTNAME} text2ngram
|
|
|
|
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 '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>
|