aboutsummaryrefslogtreecommitdiffstats
path: root/databases/mysql++1
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2017-12-08 17:00:29 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2017-12-08 17:00:29 +0800
commit5bb026c4fb4c38f357ceb2bef6187a967c541544 (patch)
tree992a6673a9c08de5104103014a3a03dd711a7cc3 /databases/mysql++1
parent2763fe42779212b27ca6f27daf4de538bd833971 (diff)
downloadfreebsd-ports-gnome-5bb026c4fb4c38f357ceb2bef6187a967c541544.tar.gz
freebsd-ports-gnome-5bb026c4fb4c38f357ceb2bef6187a967c541544.tar.zst
freebsd-ports-gnome-5bb026c4fb4c38f357ceb2bef6187a967c541544.zip
- Add LICENSE
- Unsilence installation commands - Simplify installation Approved by: portmgr blanket
Diffstat (limited to 'databases/mysql++1')
-rw-r--r--databases/mysql++1/Makefile26
1 files changed, 14 insertions, 12 deletions
diff --git a/databases/mysql++1/Makefile b/databases/mysql++1/Makefile
index 5ca6b464b47a..688ebff3bf55 100644
--- a/databases/mysql++1/Makefile
+++ b/databases/mysql++1/Makefile
@@ -11,33 +11,35 @@ PKGNAMESUFFIX= 1-mysql${MYSQL_VER}
MAINTAINER= sergey@network-asp.biz
COMMENT= Complex C++ API for MySQL${MYSQL_VER}
+LICENSE= LGPL21+
+LICENSE_FILE= ${WRKSRC}/LGPL
+
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-mysql=${LOCALBASE} \
--includedir=${PREFIX}/include/mysql++ \
--disable-examples
INSTALL_TARGET= install-strip
-USES= libtool
+USES= libtool mysql
USE_LDCONFIG= yes
-USE_MYSQL= yes
CONFLICTS= ${PORTNAME}*-2.*
OPTIONS_DEFINE= DOCS EXAMPLES
-post-install:
+post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}/userman/html ${STAGEDIR}${DOCSDIR}/refman/html
- @${INSTALL_DATA} ${WRKSRC}/doc/userman/html/* ${STAGEDIR}${DOCSDIR}/userman/html
- @${INSTALL_DATA} ${WRKSRC}/doc/refman/html/* ${STAGEDIR}${DOCSDIR}/refman/html
- @${INSTALL_DATA} ${WRKSRC}/doc/*.pdf ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/doc/userman/html/* ${STAGEDIR}${DOCSDIR}/userman/html
+ ${INSTALL_DATA} ${WRKSRC}/doc/refman/html/* ${STAGEDIR}${DOCSDIR}/refman/html
+ ${INSTALL_DATA} ${WRKSRC}/doc/*.pdf ${STAGEDIR}${DOCSDIR}
+
+post-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
- @${INSTALL_DATA} ${WRKSRC}/examples/*.cpp ${STAGEDIR}${EXAMPLESDIR}
- @${INSTALL_DATA} ${WRKSRC}/examples/*.h ${STAGEDIR}${EXAMPLESDIR}
- @${INSTALL_DATA} ${WRKSRC}/examples/README ${STAGEDIR}${EXAMPLESDIR}
- @${INSTALL_DATA} ${WRKSRC}/examples/Makefile.simple ${STAGEDIR}${EXAMPLESDIR}/Makefile.temp
- @${SED} -e "s|/usr/include/mysql++|${PREFIX}/include/mysql++|" < ${STAGEDIR}${EXAMPLESDIR}/Makefile.temp | \
+ ${INSTALL_DATA} ${WRKSRC}/examples/*.cpp ${STAGEDIR}${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/examples/*.h ${STAGEDIR}${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/examples/README ${STAGEDIR}${EXAMPLESDIR}
+ ${SED} -e "s|/usr/include/mysql++|${PREFIX}/include/mysql++|" < ${WRKSRC}/examples/Makefile.simple | \
${SED} -e "s|/usr/include/mysql|${LOCALBASE}/include/mysql|" | \
${SED} -e "s|-lmysqlpp|-L${PREFIX}/lib -L${LOCALBASE}/lib/mysql -lmysqlpp|" \
> ${STAGEDIR}${EXAMPLESDIR}/Makefile
- @${RM} ${STAGEDIR}${EXAMPLESDIR}/Makefile.temp
.include <bsd.port.mk>