aboutsummaryrefslogtreecommitdiffstats
path: root/databases/mysql++3/Makefile
blob: 3fa1aae87a9e97fd2b33a1369b9418e663fb1cdc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# ports collection makefile for:    MySQL++
# Date created:             2008-04-03
# Whom:                 Vlad GALU <dudu@dudu.ro>
#
# $FreeBSD$
#

PORTNAME=   mysql++
PORTVERSION=    3.1.0
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}

USE_MYSQL=  yes
USE_AUTOTOOLS=  libtool
CONFIGURE_ARGS+=--with-mysql=${LOCALBASE} --enable-thread-check
USE_LDCONFIG=   yes
USE_GMAKE=  yes
PLIST_SUB+= VER=${PORTVERSION}

CONFLICTS=  ${PORTNAME}*-1.*

PORTDOCS=   *
PORTEXAMPLES=   *

post-install:
.ifndef(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
    (cd ${WRKSRC}/doc/ && ${COPYTREE_SHARE} pdf ${DOCSDIR})
    (cd ${WRKSRC}/doc/ && ${COPYTREE_SHARE} html ${DOCSDIR})
.endif
.ifndef(NOPORTEXAMPLES)
    ${MKDIR} ${EXAMPLESDIR}
    ${INSTALL_DATA} ${WRKSRC}/examples/*.h ${EXAMPLESDIR}
    ${INSTALL_DATA} ${WRKSRC}/examples/*.cpp ${EXAMPLESDIR}
.endif

.include <bsd.port.mk>