aboutsummaryrefslogtreecommitdiffstats
path: root/databases/mysql++/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'databases/mysql++/Makefile')
-rw-r--r--databases/mysql++/Makefile45
1 files changed, 19 insertions, 26 deletions
diff --git a/databases/mysql++/Makefile b/databases/mysql++/Makefile
index 7c6f3645e82b..660555747f70 100644
--- a/databases/mysql++/Makefile
+++ b/databases/mysql++/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= mysql++
-PORTVERSION= 2.1.1
+PORTVERSION= 2.3.2
CATEGORIES= databases devel
MASTER_SITES= http://tangentsoft.net/mysql++/releases/
PKGNAMESUFFIX= -mysql${MYSQL_VER}
@@ -14,42 +14,35 @@ PKGNAMESUFFIX= -mysql${MYSQL_VER}
MAINTAINER= ports@FreeBSD.org
COMMENT= Complex C++ API for MySQL${MYSQL_VER}
-USE_MYSQL= yes
-USE_AUTOTOOLS= libtool:15
-CONFIGURE_ARGS= --with-mysql=${LOCALBASE} --disable-examples
-USE_LDCONFIG= yes
-
-USE_GMAKE= yes
-
CONFLICTS= ${PORTNAME}*-1.*
NOT_FOR_ARCHS= amd64 sparc64
NOT_FOR_ARCHS_REASON_amd64= Fails to compile
NOT_FOR_ARCHS_REASON_sparc64= Fails to compile
-.if !defined(NOPORTDOCS)
+USE_MYSQL= yes
+USE_GMAKE= yes
+USE_AUTOTOOLS= libtool:15
+CONFIGURE_ARGS= --with-mysql=${LOCALBASE}
+USE_LDCONFIG= yes
+
+PLIST_SUB= VERSION=${PORTVERSION}
+
PORTDOCS= *
-.endif
+PORTEXAMPLES= *
+
+PORTSCOUT= limit:^2\.
post-install:
- @${RM} -f ${PREFIX}/lib/libmysqlpp.so.3
- @${LN} -s ${PREFIX}/lib/libmysqlpp.so ${PREFIX}/lib/libmysqlpp.so.3
.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} ${DOCSDIR}/html
+ @(cd ${WRKSRC}/doc/html && ${COPYTREE_SHARE} . ${DOCSDIR}/html)
+ @${MKDIR} ${DOCSDIR}/pdf
+ @(cd ${WRKSRC}/doc/pdf && ${COPYTREE_SHARE} . ${DOCSDIR}/pdf)
+.endif
+.if !defined(NOPORTEXAMPLES)
@${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|-I../lib|-I${PREFIX}/include/mysql++|" < ${EXAMPLESDIR}/Makefile.temp | \
- ${SED} -e "s|/usr/include/mysql|${LOCALBASE}/include/mysql|" | \
- ${SED} -e "s|CXX=g++||" | \
- ${SED} -e "s|-lmysqlpp|-L${PREFIX}/lib -L${LOCALBASE}/lib/mysql -lmysqlpp|" \
- > ${EXAMPLESDIR}/Makefile
- @${RM} -f ${EXAMPLESDIR}/Makefile.temp
+ @(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${EXAMPLESDIR})
.endif
.include <bsd.port.mk>