1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-27 10:03:20 +00:00
freebsd-ports/databases/mysql++3/Makefile
Jan Beich a4d74703b4 databases/mysql++3: unbreak with libc++ 8
In file included from ./lib/beemutex.cpp:31:
In file included from ./lib/beemutex.h:46:
In file included from ./lib/exceptions.h:34:
In file included from ./lib/options.h:39:
In file included from /usr/include/c++/v1/deque:163:
In file included from /usr/include/c++/v1/__split_buffer:6:
In file included from /usr/include/c++/v1/type_traits:406:
In file included from /usr/include/c++/v1/cstddef:38:
./version:1:2: error: invalid preprocessing directive
 #!/bin/sh
  ^
./version:2:1: error: unknown type name 'echo'
echo 3.2.2
^
./version:2:6: error: expected unqualified-id
echo 3.2.2
     ^

PR:		236192
Approved by:	portmgr blanket
2019-03-04 18:34:55 +00:00

43 lines
1.1 KiB
Makefile

# Created by: Vlad GALU <dudu@dudu.ro>
# $FreeBSD$
PORTNAME= mysql++
PORTVERSION= 3.2.2
CATEGORIES= databases devel
MASTER_SITES= http://tangentsoft.net/mysql++/releases/ \
T32.TecNik93.com/ports/others_ports/${PORTNAME}/sources/
PKGNAMESUFFIX= -mysql${MYSQL_VER}
MAINTAINER= dudu@dudu.ro
COMMENT= Complex C++ API for MySQL${MYSQL_VER}
USES= gmake mysql
GNU_CONFIGURE= yes
CONFIGURE_ARGS+=--with-mysql=${LOCALBASE} --enable-thread-check
USE_LDCONFIG= yes
PLIST_SUB+= VER=${PORTVERSION}
CONFLICTS= ${PORTNAME}*-1.*
PORTDOCS= *
PORTEXAMPLES= *
OPTIONS_DEFINE= DOCS EXAMPLES
post-patch:
# Avoid conflict with C++20 <version> by ignoring <...> under WRKSRC
@${REINPLACE_CMD} -i .c++20 '/MYSQLPP_CXXFLAGS/s/-I/-iquote/' \
${WRKSRC}/Makefile.in
post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC}/doc/ && ${COPYTREE_SHARE} pdf ${STAGEDIR}${DOCSDIR})
(cd ${WRKSRC}/doc/ && ${COPYTREE_SHARE} html ${STAGEDIR}${DOCSDIR})
post-install-EXAMPLES-on:
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/examples/*.h ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/examples/*.cpp ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>