2005-05-09 09:51:35 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.7 2005/05/09 13:51:35 avsm Exp $
|
2005-03-18 19:33:50 -05:00
|
|
|
|
|
|
|
.if ${MACHINE_ARCH} == "hppa"
|
|
|
|
BROKEN= "ocamldoc hangs build"
|
|
|
|
.endif
|
2004-06-12 18:03:12 -04:00
|
|
|
|
|
|
|
COMMENT= "Objective Caml bindings for PostgreSQL"
|
|
|
|
CATEGORIES= databases
|
|
|
|
|
2005-05-09 09:51:35 -04:00
|
|
|
V= 1.4.5
|
2004-06-12 18:03:12 -04:00
|
|
|
DISTNAME= postgresql-ocaml-${V}
|
|
|
|
PKGNAME= ocaml-postgresql-${V}
|
|
|
|
MASTER_SITES= http://www.oefai.at/~markus/ocaml_sources/
|
|
|
|
|
|
|
|
MAINTAINER= Anil Madhavapeddy <avsm@openbsd.org>
|
|
|
|
HOMEPAGE= http://www.oefai.at/~markus/ocaml_sources/
|
|
|
|
|
|
|
|
# LGPL
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
|
2004-08-10 16:41:47 -04:00
|
|
|
MODULES= lang/ocaml
|
2004-06-12 18:03:12 -04:00
|
|
|
NO_REGRESS= Yes
|
|
|
|
ALL_TARGET= all ${MODOCAML_NATIVE:S,Yes,allopt,:S,No,,}
|
|
|
|
USE_GMAKE= Yes
|
|
|
|
|
2004-07-26 06:15:28 -04:00
|
|
|
LIB_DEPENDS= pq.3:postgresql-client-*:databases/postgresql
|
2004-06-12 18:03:12 -04:00
|
|
|
MY_CFLAGS= ${CFLAGS} -I${LOCALBASE}/include/postgresql
|
|
|
|
MY_LIBDIRS= ${LOCALBASE]/lib
|
|
|
|
EXAMPLES_DIR= ${PREFIX}/share/examples/ocaml-postgresql
|
2004-07-23 10:15:04 -04:00
|
|
|
MAKE_ENV= MY_CFLAGS="${MY_CFLAGS}" MY_LIBDIRS="${MY_LIBDIRS}"
|
|
|
|
PGOCAMLDIR= ${PREFIX}/lib/ocaml/postgresql
|
2004-06-12 18:03:12 -04:00
|
|
|
|
2004-07-23 10:15:04 -04:00
|
|
|
BYTECODE_FILES= postgresql.cma postgresql.cmi postgresql.mli libpostgresql_stubs.a
|
|
|
|
NATIVE_FILES= postgresql.a postgresql.cmxa
|
|
|
|
INST_FILES= ${BYTECODE_FILES} ${MODOCAML_NATIVE:S,Yes,${NATIVE_FILES},:S,No,,}
|
2004-06-12 18:03:12 -04:00
|
|
|
|
2004-07-23 10:15:04 -04:00
|
|
|
do-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PGOCAMLDIR}
|
|
|
|
for i in ${INST_FILES}; do ${INSTALL_DATA} ${WRKBUILD}/lib/$$i ${PGOCAMLDIR}; done
|
2004-06-12 18:03:12 -04:00
|
|
|
${INSTALL_DATA_DIR} ${EXAMPLES_DIR}
|
|
|
|
@cp -R ${WRKSRC}/examples/* ${EXAMPLES_DIR}
|
2004-07-23 10:15:04 -04:00
|
|
|
@echo INCDIRS = ${LOCALBASE}/lib/ocaml/postgresql >> ${EXAMPLES_DIR}/OCamlMakefile
|
2004-06-12 18:03:12 -04:00
|
|
|
@echo LIBDIRS = ${LOCALBASE}/lib >> ${EXAMPLES_DIR}/OCamlMakefile
|
|
|
|
@cat ${WRKSRC}/OCamlMakefile >> ${EXAMPLES_DIR}/OCamlMakefile
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|