2000-07-21 07:06:59 +02:00
|
|
|
# ports collection makefile for: MySQL++
|
|
|
|
# Date created: 20th July 2000
|
|
|
|
# Whom: Miklos Niedermayer <mico@bsd.hu>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= mysql++
|
2005-06-04 02:29:16 +02:00
|
|
|
PORTVERSION= 1.7.40
|
2006-02-23 11:40:44 +01:00
|
|
|
PORTREVISION= 1
|
2000-07-21 07:06:59 +02:00
|
|
|
CATEGORIES= databases devel
|
2004-11-20 22:31:15 +01:00
|
|
|
MASTER_SITES= http://tangentsoft.net/mysql++/releases/
|
2005-12-15 19:41:41 +01:00
|
|
|
PKGNAMESUFFIX= -mysql${MYSQL_VER}
|
2000-07-21 07:06:59 +02:00
|
|
|
|
2005-01-14 03:21:43 +01:00
|
|
|
MAINTAINER= sergey@network-asp.biz
|
2005-12-15 19:41:41 +01:00
|
|
|
COMMENT= Complex C++ API for MySQL${MYSQL_VER}
|
2000-07-21 07:06:59 +02:00
|
|
|
|
2003-09-29 23:59:52 +02:00
|
|
|
USE_MYSQL= yes
|
2010-12-04 08:34:27 +01:00
|
|
|
USE_AUTOTOOLS= libtool
|
2006-02-23 11:40:44 +01:00
|
|
|
CONFIGURE_ARGS= --with-mysql=${LOCALBASE} \
|
|
|
|
--includedir=${PREFIX}/include/mysql++ \
|
2005-12-15 19:41:41 +01:00
|
|
|
--disable-examples
|
- 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
|
2000-07-21 07:06:59 +02:00
|
|
|
|
2005-12-15 19:41:41 +01:00
|
|
|
CONFLICTS= ${PORTNAME}*-2.*
|
|
|
|
NO_LATEST_LINK= yes
|
|
|
|
|
2005-03-05 07:47:29 +01:00
|
|
|
post-install:
|
2003-09-29 23:59:52 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
2005-05-09 23:59:39 +02:00
|
|
|
@${MKDIR} ${DOCSDIR}/userman/html ${DOCSDIR}/refman/html
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/doc/userman/html/* ${DOCSDIR}/userman/html
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/doc/refman/html/* ${DOCSDIR}/refman/html
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/doc/*.pdf ${DOCSDIR}
|
2003-12-14 17:47:40 +01:00
|
|
|
@${MKDIR} ${EXAMPLESDIR}
|
2005-03-05 07:47:29 +01:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/examples/*.cpp ${EXAMPLESDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/examples/*.h ${EXAMPLESDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/examples/README ${EXAMPLESDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/examples/Makefile.simple ${EXAMPLESDIR}/Makefile.temp
|
|
|
|
@${SED} -e "s|/usr/include/mysql++|${PREFIX}/include/mysql++|" < ${EXAMPLESDIR}/Makefile.temp | \
|
2005-12-15 19:41:41 +01:00
|
|
|
${SED} -e "s|/usr/include/mysql|${LOCALBASE}/include/mysql|" | \
|
|
|
|
${SED} -e "s|-lmysqlpp|-L${PREFIX}/lib -L${LOCALBASE}/lib/mysql -lmysqlpp|" \
|
|
|
|
> ${EXAMPLESDIR}/Makefile
|
2005-03-05 07:47:29 +01:00
|
|
|
@${RM} -f ${EXAMPLESDIR}/Makefile.temp
|
2003-09-29 23:59:52 +02:00
|
|
|
.endif
|
2000-07-21 07:06:59 +02:00
|
|
|
|
2009-01-05 18:27:29 +01:00
|
|
|
.include <bsd.port.mk>
|