2004-08-27 20:40:15 +02:00
|
|
|
# ports collection makefile for: mysqlcppapi
|
|
|
|
# Date created: 4 August 2004
|
|
|
|
# Whom: Jie Gao <gaoj@cpsc.ucalgary.ca>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= mysqlcppapi
|
|
|
|
PORTVERSION= 1.9.3
|
2006-02-23 11:40:44 +01:00
|
|
|
PORTREVISION= 2
|
2004-08-27 20:40:15 +02:00
|
|
|
CATEGORIES= databases devel
|
2009-08-22 02:18:43 +02:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}%202/${PORTVERSION}
|
2004-08-27 20:40:15 +02:00
|
|
|
|
2007-03-14 08:47:33 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2004-08-27 20:40:15 +02:00
|
|
|
COMMENT= A fork of mysql++ C++ API for MySQL
|
|
|
|
|
2010-12-04 08:34:27 +01:00
|
|
|
USE_AUTOTOOLS= libtool
|
2004-08-27 20:40:15 +02:00
|
|
|
USE_MYSQL= yes
|
2005-01-26 15:00:12 +01:00
|
|
|
USE_GNOME= pkgconfig gnomehack
|
2004-08-27 20:40:15 +02:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
|
2009-01-05 18:27:29 +01:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
2004-08-27 20:40:15 +02:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
|
|
|
CONFIGURE_ARGS= --with-mysql=${LOCALBASE}
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
USE_LDCONFIG= yes
|
2004-08-27 20:40:15 +02:00
|
|
|
|
|
|
|
post-patch:
|
|
|
|
${REINPLACE_CMD} s/libmysqlcppapi-1.9/libmysqlcppapi/g \
|
|
|
|
${WRKSRC}/mysqlcppapi/Makefile.in ${WRKSRC}/examples/Makefile.in
|
|
|
|
${FIND} ${WRKSRC}/mysqlcppapi -name Makefile.in \
|
2009-01-05 18:27:29 +01:00
|
|
|
-exec ${REINPLACE_CMD} -e \
|
2004-08-27 20:40:15 +02:00
|
|
|
'/^library_includedir =/s,\$$(GENERIC_LIBRARY_NAME)-2.0/,,g' '{}' \;
|
|
|
|
|
2009-01-05 18:27:29 +01:00
|
|
|
.include <bsd.port.mk>
|