- replace 'ocamlfind install' based install with our own do-install target

so that /usr/local/lib/ocaml/ld.conf doesn't get modified durring the
build. idea from databases/ocaml-postgresql.  NOTE: these ports need some
more adjustment after unlock. they need @exec/unexec to properly tweek
/usr/local/lib/ocaml/ld.conf.
- add no-autoheader to quiet warning
okay naddy@ pvalchev@
This commit is contained in:
kurt 2007-08-07 18:58:17 +00:00
parent 4c29196332
commit 2695e61be2
2 changed files with 13 additions and 8 deletions

View File

@ -1,11 +1,11 @@
# $OpenBSD: Makefile,v 1.8 2007/02/18 06:23:38 pvalchev Exp $
# $OpenBSD: Makefile,v 1.9 2007/08/07 18:58:17 kurt Exp $
COMMENT= "Objective Caml bindings for SQLite3"
CATEGORIES= databases
V= 0.2.0
DISTNAME= ocaml-sqlite3-${V}
PKGNAME= ${DISTNAME}p4
PKGNAME= ${DISTNAME}p5
EXTRACT_SUFX= .tar.bz2
MASTER_SITES= http://metamatix.org/~ocaml/
WRKDIST= ${WRKDIR}/ocaml-sqlite3
@ -21,7 +21,7 @@ PERMIT_DISTFILES_CDROM= Yes
MODULES= lang/ocaml
NO_REGRESS= Yes
CONFIGURE_STYLE=autoconf
CONFIGURE_STYLE=autoconf no-autoheader
AUTOCONF_VERSION=2.59
ALL_TARGET= all ${MODOCAML_NATIVE:S,Yes,opt,:S,No,,}
USE_GMAKE= Yes
@ -33,7 +33,14 @@ LIB_DEPENDS= sqlite3.>=8::databases/sqlite3
BUILD_DEPENDS= ::sysutils/findlib
RUN_DEPENDS= ::sysutils/findlib
pre-fake:
${INSTALL_DATA_DIR} ${PREFIX}/lib/ocaml/site-lib
SQOCAMLDIR= ${PREFIX}/lib/ocaml/site-lib/sqlite3
BYTECODE_FILES= META sqlite3.cma sqlite3.cmi sqlite3.mli
NATIVE_FILES= libsqlite3.a sqlite3.a sqlite3.cmx sqlite3.cmxa
INST_FILES= ${BYTECODE_FILES} ${MODOCAML_NATIVE:S,Yes,${NATIVE_FILES},:S,No,,}
do-install:
${INSTALL_DATA_DIR} ${SQOCAMLDIR}
cd ${WRKBUILD} && ${INSTALL_DATA} ${INST_FILES} ${SQOCAMLDIR}
.include <bsd.port.mk>

View File

@ -1,7 +1,5 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2006/06/01 01:20:25 avsm Exp $
@comment bin/sqlite3top
@comment $OpenBSD: PLIST,v 1.2 2007/08/07 18:58:17 kurt Exp $
lib/ocaml/
lib/ocaml/site-lib/
lib/ocaml/site-lib/sqlite3/
lib/ocaml/site-lib/sqlite3/META
lib/ocaml/site-lib/sqlite3/sqlite3.cma