mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-29 05:38:00 +00:00
eabbfd75e3
PR: 213570 Submitted by: mat Exp-run by: antoine Sponsored by: Absolight
44 lines
1.6 KiB
Makefile
44 lines
1.6 KiB
Makefile
# Created by: Miklos Niedermayer <mico@bsd.hu>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= mysql++
|
|
PORTVERSION= 1.7.40
|
|
PORTREVISION= 3
|
|
CATEGORIES= databases devel
|
|
MASTER_SITES= http://tangentsoft.net/mysql++/releases/
|
|
PKGNAMESUFFIX= 1-mysql${MYSQL_VER}
|
|
|
|
MAINTAINER= sergey@network-asp.biz
|
|
COMMENT= Complex C++ API for MySQL${MYSQL_VER}
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --with-mysql=${LOCALBASE} \
|
|
--includedir=${PREFIX}/include/mysql++ \
|
|
--disable-examples
|
|
INSTALL_TARGET= install-strip
|
|
USES= libtool
|
|
USE_LDCONFIG= yes
|
|
USE_MYSQL= yes
|
|
|
|
CONFLICTS= ${PORTNAME}*-2.*
|
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
|
|
|
post-install:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}/userman/html ${STAGEDIR}${DOCSDIR}/refman/html
|
|
@${INSTALL_DATA} ${WRKSRC}/doc/userman/html/* ${STAGEDIR}${DOCSDIR}/userman/html
|
|
@${INSTALL_DATA} ${WRKSRC}/doc/refman/html/* ${STAGEDIR}${DOCSDIR}/refman/html
|
|
@${INSTALL_DATA} ${WRKSRC}/doc/*.pdf ${STAGEDIR}${DOCSDIR}
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
@${INSTALL_DATA} ${WRKSRC}/examples/*.cpp ${STAGEDIR}${EXAMPLESDIR}
|
|
@${INSTALL_DATA} ${WRKSRC}/examples/*.h ${STAGEDIR}${EXAMPLESDIR}
|
|
@${INSTALL_DATA} ${WRKSRC}/examples/README ${STAGEDIR}${EXAMPLESDIR}
|
|
@${INSTALL_DATA} ${WRKSRC}/examples/Makefile.simple ${STAGEDIR}${EXAMPLESDIR}/Makefile.temp
|
|
@${SED} -e "s|/usr/include/mysql++|${PREFIX}/include/mysql++|" < ${STAGEDIR}${EXAMPLESDIR}/Makefile.temp | \
|
|
${SED} -e "s|/usr/include/mysql|${LOCALBASE}/include/mysql|" | \
|
|
${SED} -e "s|-lmysqlpp|-L${PREFIX}/lib -L${LOCALBASE}/lib/mysql -lmysqlpp|" \
|
|
> ${STAGEDIR}${EXAMPLESDIR}/Makefile
|
|
@${RM} ${STAGEDIR}${EXAMPLESDIR}/Makefile.temp
|
|
|
|
.include <bsd.port.mk>
|