| @@ -1,19 +1,18 @@ | | | @@ -1,19 +1,18 @@ |
1 | # $NetBSD: Makefile,v 1.9 2011/12/06 00:19:23 sbd Exp $ | | 1 | # $NetBSD: Makefile,v 1.10 2012/03/04 09:26:55 asau Exp $ |
2 | # | | 2 | # |
3 | | | 3 | |
4 | DISTNAME= findlib-1.2.6 | | 4 | DISTNAME= findlib-1.2.8 |
5 | PKGNAME= ocaml-${DISTNAME} | | 5 | PKGNAME= ocaml-${DISTNAME} |
6 | PKGREVISION= 1 | | | |
7 | CATEGORIES= devel | | 6 | CATEGORIES= devel |
8 | MASTER_SITES= http://download.camlcity.org/download/ | | 7 | MASTER_SITES= http://download.camlcity.org/download/ |
9 | | | 8 | |
10 | MAINTAINER= pkgsrc-users@NetBSD.org | | 9 | MAINTAINER= pkgsrc-users@NetBSD.org |
11 | HOMEPAGE= http://www.camlcity.org/ | | 10 | HOMEPAGE= http://www.camlcity.org/ |
12 | COMMENT= Library finder for OCaml | | 11 | COMMENT= Library finder for OCaml |
13 | | | 12 | |
14 | PKG_DESTDIR_SUPPORT= user-destdir | | 13 | PKG_DESTDIR_SUPPORT= user-destdir |
15 | | | 14 | |
16 | USE_TOOLS+= gmake m4 | | 15 | USE_TOOLS+= gmake m4 |
17 | USE_PKGLOCALEDIR= yes | | 16 | USE_PKGLOCALEDIR= yes |
18 | HAS_CONFIGURE= yes | | 17 | HAS_CONFIGURE= yes |
19 | MAKE_JOBS_SAFE= no | | 18 | MAKE_JOBS_SAFE= no |
| @@ -36,15 +35,18 @@ SUBST_SED.ofr+= -e 's,@PREFIX@,${PREFIX | | | @@ -36,15 +35,18 @@ SUBST_SED.ofr+= -e 's,@PREFIX@,${PREFIX |
36 | SUBST_SED.ofr+= -e 's,@FGREP@,'${FGREP:Q}',' | | 35 | SUBST_SED.ofr+= -e 's,@FGREP@,'${FGREP:Q}',' |
37 | | | 36 | |
38 | SUBST_CLASSES+= pathes | | 37 | SUBST_CLASSES+= pathes |
39 | SUBST_STAGE.pathes= post-install | | 38 | SUBST_STAGE.pathes= post-install |
40 | SUBST_FILES.pathes= ${DESTDIR}${PREFIX}/lib/ocaml/site-lib/findlib/Makefile.config | | 39 | SUBST_FILES.pathes= ${DESTDIR}${PREFIX}/lib/ocaml/site-lib/findlib/Makefile.config |
41 | SUBST_SED.pathes= -e 's,^\(OCAML_CORE_BIN=\).*,\1'${PREFIX:Q}/bin',' | | 40 | SUBST_SED.pathes= -e 's,^\(OCAML_CORE_BIN=\).*,\1'${PREFIX:Q}/bin',' |
42 | | | 41 | |
43 | post-extract: | | 42 | post-extract: |
44 | ${CP} ${FILESDIR}/ocaml-findlib-register.sh ${WRKSRC} | | 43 | ${CP} ${FILESDIR}/ocaml-findlib-register.sh ${WRKSRC} |
45 | | | 44 | |
46 | post-install: | | 45 | post-install: |
47 | ${INSTALL_SCRIPT} ${WRKSRC}/ocaml-findlib-register.sh ${DESTDIR}${PREFIX}/libexec/ocaml-findlib-register | | 46 | ${INSTALL_SCRIPT} ${WRKSRC}/ocaml-findlib-register.sh ${DESTDIR}${PREFIX}/libexec/ocaml-findlib-register |
48 | | | 47 | |
| | | 48 | do-test: |
| | | 49 | ${RUN} cd ${WRKSRC}; ${SH} itest |
| | | 50 | |
49 | .include "../../lang/ocaml/buildlink3.mk" | | 51 | .include "../../lang/ocaml/buildlink3.mk" |
50 | .include "../../mk/bsd.pkg.mk" | | 52 | .include "../../mk/bsd.pkg.mk" |