pkgsrc/databases/ocaml-mysql/Makefile
jaapb 4c1fa70336 Updated package to latest version, 1.2.0; updated package to work with
ocaml.mk framework and added patch to support int64 properly (patch from
upstream). Changes include:

* Tue Mar 10 2015 (1.2.0)
  * Get rid of Camlp4 dependency
  * Use mysql_config in configure

* Thu Oct 16 2014 (1.1.3)
  * + OPT_FOUND_ROWS (Dmitry Grebeniuk)
  * configure: build with percona
2016-07-02 09:42:14 +00:00

36 lines
832 B
Makefile

# $NetBSD: Makefile,v 1.21 2016/07/02 09:42:14 jaapb Exp $
#
VERSION= 1.2.0
GITHUB_PROJECT= ocaml-mysql
GITHUB_TAG= v${VERSION}
DISTNAME= ${GITHUB_PROJECT}-${VERSION}
CATEGORIES= databases
MASTER_SITES= ${MASTER_SITE_GITHUB:=ygrek/}
MAINTAINER= jaapb@NetBSD.org
HOMEPAGE= http://ocaml-mysql.forge.ocamlcore.org/
COMMENT= Ocaml library for MySQL database access
LICENSE= gnu-lgpl-v2.1
USE_PKGLOCALEDIR= yes
GNU_CONFIGURE= yes
USE_TOOLS+= gmake
DOCDIR= ${PREFIX}/share/doc/ocaml-mysql
INSTALLATION_DIRS= ${DOCDIR}
OCAML_USE_FINDLIB= yes
.include "../../mk/ocaml.mk"
BUILD_TARGET= all htdoc
.if ${OCAML_USE_OPT_COMPILER} == "yes"
BUILD_TARGET+= opt
.endif
post-install:
cd ${WRKSRC}/doc/mysql/html && ${INSTALL_DATA} *.html ${DESTDIR}${DOCDIR}
.include "../../mk/mysql.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"