freebsd-ports/databases/mysql++/Makefile
Ade Lovett 54a0b86543 Mass-conversion to the USE_AUTOTOOLS New World Order. The code present
in bsd.autotools.mk essentially makes this a no-op given that all the
old variables set a USE_AUTOTOOLS_COMPAT variable, which is parsed in
exactly the same way as USE_AUTOTOOLS itself.

Moreover, USE_AUTOTOOLS has already been extensively tested by the GNOME
team -- all GNOME 2.12.x ports use it.

Preliminary documentation can be found at:
	http://people.FreeBSD.org/~ade/autotools.txt

which is in the process of being SGMLized before introduction into the
Porters Handbook.

Light blue touch-paper.  Run.
2005-11-15 06:52:12 +00:00

48 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
CATEGORIES= databases devel
MASTER_SITES= http://tangentsoft.net/mysql++/releases/
MAINTAINER= sergey@network-asp.biz
COMMENT= Complex C++ API for MySQL
USE_MYSQL= yes
USE_AUTOTOOLS= libtool:15
CONFIGURE_ARGS= --with-mysql=${LOCALBASE} --includedir=${PREFIX}/include/mysql++
CONFIGURE_ARGS+= --disable-examples
INSTALLS_SHLIB= yes
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500039
USE_GCC= 3.4
.endif
PKGNAMESUFFIX= -mysql${MYSQL_VER}
COMMENT+= ${MYSQL_VER}
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.post.mk>