2000-07-21 05:06:59 +00:00
|
|
|
# ports collection makefile for: MySQL++
|
|
|
|
# Date created: 20th July 2000
|
|
|
|
# Whom: Miklos Niedermayer <mico@bsd.hu>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= mysql++
|
|
|
|
PORTVERSION= 1.7
|
|
|
|
CATEGORIES= databases devel
|
|
|
|
MASTER_SITES= http://gd.tuwien.ac.at/db/mysql/mysql++/ \
|
|
|
|
http://www.mysql.com/Downloads/mysql++/
|
|
|
|
|
|
|
|
MAINTAINER= mico@bsd.hu
|
|
|
|
|
|
|
|
LIB_DEPENDS= mysqlclient:${PORTSDIR}/databases/mysql322-client
|
|
|
|
|
|
|
|
HAS_CONFIGURE= yes
|
|
|
|
CONFIGURE_ENV= CXXFLAGS="${CXXFLAGS} -D_FIX_FOR_BSD_ "
|
2000-08-01 23:28:34 +00:00
|
|
|
INSTALL_SHLIB= yes
|
2000-07-21 05:06:59 +00:00
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
${RM} ${WRKSRC}/examples/Makefile.in
|
|
|
|
${ECHO} "all:" >${WRKSRC}/examples/Makefile.in
|
|
|
|
${ECHO} "install:" >>${WRKSRC}/examples/Makefile.in
|
|
|
|
|
|
|
|
do-install:
|
2000-08-01 23:28:34 +00:00
|
|
|
@${INSTALL_PROGRAM} ${WRKDIR}/${DISTNAME}/sqlplusint/.libs/libsqlplus.so.1 ${PREFIX}/lib
|
|
|
|
@${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/sqlplusint/.libs/libsqlplus.a ${PREFIX}/lib
|
|
|
|
@(cd ${PREFIX}/lib && ${RM} -f libsqlplus.so && ${LN} -s libsqlplus.so.1 libsqlplus.so)
|
|
|
|
@ranlib ${PREFIX}/lib/libsqlplus.a
|
|
|
|
@ldconfig -m ${PREFIX}/lib
|
|
|
|
@mkdir -p ${PREFIX}/share/examples/mysql++
|
|
|
|
@mkdir -p ${PREFIX}/share/doc/mysql++
|
|
|
|
@${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/examples/*.cc ${PREFIX}/share/examples/mysql++
|
|
|
|
@${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/doc/man-text/* ${PREFIX}/share/doc/mysql++
|
|
|
|
@mkdir -p ${PREFIX}/include/mysql
|
|
|
|
@${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/sqlplusint/mysql++ ${WRKDIR}/${DISTNAME}/sqlplusint/*.hh ${PREFIX}/include/mysql
|
|
|
|
@${INSTALL_DATA} ${FILESDIR}/README ${PREFIX}/share/examples/mysql++
|
2000-07-21 05:06:59 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|