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)
35 lines
896 B
Makefile
35 lines
896 B
Makefile
# ports collection makefile for: mysqlcppapi
|
|
# Date created: 4 August 2004
|
|
# Whom: Jie Gao <gaoj@cpsc.ucalgary.ca>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= mysqlcppapi
|
|
PORTVERSION= 1.9.3
|
|
PORTREVISION= 3
|
|
CATEGORIES= databases devel
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}%202/${PORTVERSION}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= A fork of mysql++ C++ API for MySQL
|
|
|
|
USE_AUTOTOOLS= libtool
|
|
USE_MYSQL= yes
|
|
USE_GNOME= gnomehack
|
|
USE_PKGCONFIG= yes
|
|
GNU_CONFIGURE= yes
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
CONFIGURE_ARGS= --with-mysql=${LOCALBASE}
|
|
USE_LDCONFIG= yes
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} s/libmysqlcppapi-1.9/libmysqlcppapi/g \
|
|
${WRKSRC}/mysqlcppapi/Makefile.in ${WRKSRC}/examples/Makefile.in
|
|
${FIND} ${WRKSRC}/mysqlcppapi -name Makefile.in \
|
|
-exec ${REINPLACE_CMD} -e \
|
|
'/^library_includedir =/s,\$$(GENERIC_LIBRARY_NAME)-2.0/,,g' '{}' \;
|
|
|
|
.include <bsd.port.mk>
|