1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00
freebsd-ports/databases/mysql++1/Makefile

47 lines
1.5 KiB
Makefile

# ports collection makefile for: MySQL++
# Date created: 20th July 2000
# Whom: Miklos Niedermayer <mico@bsd.hu>
#
# $FreeBSD$
#
PORTNAME= mysql++
PORTVERSION= 1.7.40
PORTREVISION= 2
CATEGORIES= databases devel
MASTER_SITES= http://tangentsoft.net/mysql++/releases/
PKGNAMESUFFIX= -mysql${MYSQL_VER}
MAINTAINER= sergey@network-asp.biz
COMMENT= Complex C++ API for MySQL${MYSQL_VER}
USE_MYSQL= yes
USE_AUTOTOOLS= libtool
CONFIGURE_ARGS= --with-mysql=${LOCALBASE} \
--includedir=${PREFIX}/include/mysql++ \
--disable-examples
USE_LDCONFIG= yes
CONFLICTS= ${PORTNAME}*-2.*
NO_LATEST_LINK= yes
post-install:
.if !defined(NOPORTDOCS)
@${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}
@${MKDIR} ${EXAMPLESDIR}
@${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 | \
${SED} -e "s|/usr/include/mysql|${LOCALBASE}/include/mysql|" | \
${SED} -e "s|-lmysqlpp|-L${PREFIX}/lib -L${LOCALBASE}/lib/mysql -lmysqlpp|" \
> ${EXAMPLESDIR}/Makefile
@${RM} -f ${EXAMPLESDIR}/Makefile.temp
.endif
.include <bsd.port.mk>