2009-08-11 10:24:35 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.16 2009/08/11 14:24:35 avsm Exp $
|
2006-05-31 21:20:25 -04:00
|
|
|
|
2007-09-15 16:34:00 -04:00
|
|
|
COMMENT= Objective Caml bindings for SQLite3
|
2006-05-31 21:20:25 -04:00
|
|
|
CATEGORIES= databases
|
|
|
|
|
2009-08-11 10:24:35 -04:00
|
|
|
V= 1.5.2
|
2009-05-19 21:40:56 -04:00
|
|
|
DISTNAME= release-${V}
|
2009-08-11 10:24:35 -04:00
|
|
|
PKGNAME= ocaml-sqlite3-${V}
|
2006-05-31 21:20:25 -04:00
|
|
|
EXTRACT_SUFX= .tar.bz2
|
2009-05-19 21:40:56 -04:00
|
|
|
MASTER_SITES= http://hg.ocaml.info/release/ocaml-sqlite3/archive/
|
|
|
|
WRKDIST= ${WRKDIR}/ocaml-sqlite3-release-${V}
|
2006-05-31 21:20:25 -04:00
|
|
|
|
|
|
|
MAINTAINER= Anil Madhavapeddy <avsm@openbsd.org>
|
2009-05-19 21:40:56 -04:00
|
|
|
HOMEPAGE= http://www.ocaml.info/home/ocaml_sources.html
|
2006-05-31 21:20:25 -04:00
|
|
|
|
|
|
|
# BSD
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
|
|
|
|
MODULES= lang/ocaml
|
|
|
|
NO_REGRESS= Yes
|
2009-05-19 21:40:56 -04:00
|
|
|
CONFIGURE_STYLE=gnu
|
2006-05-31 21:20:25 -04:00
|
|
|
AUTOCONF_VERSION=2.59
|
2009-05-19 21:40:56 -04:00
|
|
|
ALL_TARGET= docs bytecode ${MODOCAML_NATIVE:S,Yes,opt,:S,No,,}
|
2006-05-31 21:20:25 -04:00
|
|
|
USE_GMAKE= Yes
|
2009-05-19 21:40:56 -04:00
|
|
|
NO_REGRESS= Yes
|
2006-05-31 21:20:25 -04:00
|
|
|
|
2009-05-19 21:40:56 -04:00
|
|
|
CONFIGURE_ENV= CFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib -L."
|
2006-05-31 21:20:25 -04:00
|
|
|
CONFIGURE_ARGS= --with-sqlite3=${LOCALBASE}
|
|
|
|
|
2009-03-15 07:45:08 -04:00
|
|
|
BUILD_DEPENDS= ${RUN_DEPENDS}
|
2009-06-16 21:20:59 -04:00
|
|
|
RUN_DEPENDS= ::sysutils/findlib
|
|
|
|
LIB_DEPENDS= sqlite3::databases/sqlite3
|
2006-06-29 13:37:27 -04:00
|
|
|
|
2009-05-19 21:40:56 -04:00
|
|
|
FAKE_ENV= OCAMLFIND_DESTDIR=${PREFIX}/lib/ocaml/site-lib/sqlite3
|
2007-08-07 14:58:17 -04:00
|
|
|
|
2009-05-19 21:40:56 -04:00
|
|
|
pre-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/lib/ocaml/site-lib/sqlite3
|
2007-08-07 14:58:17 -04:00
|
|
|
|
2009-05-19 21:40:56 -04:00
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/ocaml-sqlite3
|
|
|
|
for i in ${WRKBUILD}/doc/*; do ${INSTALL_DATA} $$i ${PREFIX}/share/doc/ocaml-sqlite3/; done
|
2006-05-31 21:20:25 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|