diff options
author | joerg <joerg> | 2010-01-30 18:25:11 +0000 |
---|---|---|
committer | joerg <joerg> | 2010-01-30 18:25:11 +0000 |
commit | a5695c2b6f49f3222b98993aa17d49fa771b60b9 (patch) | |
tree | 7cd6c9e0f849ea1974317131c733188ef5e60ee4 /databases/ocaml-mysql | |
parent | 166c29f62e5135eab1d6971274a1ed581a81f0ae (diff) | |
download | pkgsrc-a5695c2b6f49f3222b98993aa17d49fa771b60b9.tar.gz |
DESTDIR support
Diffstat (limited to 'databases/ocaml-mysql')
-rw-r--r-- | databases/ocaml-mysql/Makefile | 4 | ||||
-rw-r--r-- | databases/ocaml-mysql/distinfo | 3 | ||||
-rw-r--r-- | databases/ocaml-mysql/patches/patch-ac | 19 |
3 files changed, 24 insertions, 2 deletions
diff --git a/databases/ocaml-mysql/Makefile b/databases/ocaml-mysql/Makefile index 664ccb1862e..d6070add294 100644 --- a/databases/ocaml-mysql/Makefile +++ b/databases/ocaml-mysql/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.6 2010/01/29 17:23:45 joerg Exp $ +# $NetBSD: Makefile,v 1.7 2010/01/30 18:25:11 joerg Exp $ # DISTNAME= ocaml-mysql-1.0.4 @@ -10,6 +10,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://raevnos.pennmush.org/code/ocaml-mysql/ COMMENT= Ocaml library for MySQL database access +PKG_DESTDIR_SUPPORT= user-destdir + BUILD_DEPENDS+= ocaml-findlib-[0-9]*:../../devel/ocaml-findlib USE_PKGLOCALEDIR= yes diff --git a/databases/ocaml-mysql/distinfo b/databases/ocaml-mysql/distinfo index ede3e1d341d..d8821b612df 100644 --- a/databases/ocaml-mysql/distinfo +++ b/databases/ocaml-mysql/distinfo @@ -1,7 +1,8 @@ -$NetBSD: distinfo,v 1.2 2006/10/14 01:56:57 rillig Exp $ +$NetBSD: distinfo,v 1.3 2010/01/30 18:25:11 joerg Exp $ SHA1 (ocaml-mysql-1.0.4.tar.gz) = e8b7c2d84eee9ae798cd5dcd3ba68fc64c321f9b RMD160 (ocaml-mysql-1.0.4.tar.gz) = 57b316fdbdd26762916859d04ab0ca15c1365203 Size (ocaml-mysql-1.0.4.tar.gz) = 119584 bytes SHA1 (patch-aa) = b06f338db5887f5656d8d50b6fcfdd4bf2d920e0 SHA1 (patch-ab) = 4b7768554ec4fe8a01578bc4c63ae52e6fc208d4 +SHA1 (patch-ac) = 6358392234477ee746469fa1cc58b7d838030154 diff --git a/databases/ocaml-mysql/patches/patch-ac b/databases/ocaml-mysql/patches/patch-ac new file mode 100644 index 00000000000..cc179949929 --- /dev/null +++ b/databases/ocaml-mysql/patches/patch-ac @@ -0,0 +1,19 @@ +$NetBSD: patch-ac,v 1.1 2010/01/30 18:25:11 joerg Exp $ + +--- OCamlMakefile.orig 2010-01-30 18:14:57.000000000 +0000 ++++ OCamlMakefile +@@ -1102,11 +1102,13 @@ subprojs: $(SUBPROJS:%=subproj_%) + + ########################################################################### + # (UN)INSTALL RULES FOR LIBRARIES ++INSTALLDIR=`$(OCAMLC) -where`/site-lib + + .PHONY: libinstall + libinstall: all + $(QUIET)printf "\nInstalling library with ocamlfind\n" +- $(OCAMLFIND) install $(OCAMLFIND_INSTFLAGS) $(RESULT) META $(LIBINSTALL_FILES) ++ ${BSD_INSTALL_DATA_DIR} ${DESTDIR}$(INSTALLDIR) ++ $(OCAMLFIND) install -destdir ${DESTDIR}$(INSTALLDIR) $(OCAMLFIND_INSTFLAGS) $(RESULT) META $(LIBINSTALL_FILES) + $(QUIET)printf "\nInstallation successful.\n" + + .PHONY: libuninstall |