pkgsrc/databases/jdbc-mysql51/Makefile
2017-01-01 17:16:39 +00:00

31 lines
931 B
Makefile

# $NetBSD: Makefile,v 1.1 2017/01/01 17:16:39 spz Exp $
#
DISTNAME= mysql-connector-java-5.1.40
PKGNAME= ${DISTNAME:S/mysql-connector-java/jdbc-mysql/}
CATEGORIES= databases
MASTER_SITES= ${MASTER_SITE_MYSQL:=Connector-J/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.mysql.com/products/connector/j/
COMMENT= MySQL 5.1 JDBC driver
USE_JAVA= run
USE_JAVA2= 1.5
NO_BUILD= yes
DOCDIR= share/doc/${PKGBASE}
PLIST_SUBST+= DISTNAME=${DISTNAME:Q}
do-install:
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/lib/java
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/${DISTNAME}-bin.jar \
${DESTDIR}${PREFIX}/lib/java
${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/docs/README.txt ${DESTDIR}${PREFIX}/${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/docs/connector-j.html ${DESTDIR}${PREFIX}/${DOCDIR}
.include "../../mk/java-vm.mk"
.include "../../mk/bsd.pkg.mk"