| @@ -1,38 +1,38 @@ | | | @@ -1,38 +1,38 @@ |
1 | # $NetBSD: Makefile,v 1.8 2015/03/04 15:31:34 sevan Exp $ | | 1 | # $NetBSD: Makefile,v 1.9 2015/03/06 01:19:30 sevan Exp $ |
2 | # | | 2 | # |
3 | | | 3 | |
4 | DISTNAME= ocaml-text-0.6 | | 4 | DISTNAME= ocaml-text-0.6 |
5 | PKGREVISION= 4 | | 5 | PKGREVISION= 4 |
6 | CATEGORIES= textproc | | 6 | CATEGORIES= textproc |
7 | MASTER_SITES= http://forge.ocamlcore.org/frs/download.php/937/ | | 7 | MASTER_SITES= http://forge.ocamlcore.org/frs/download.php/937/ |
8 | | | 8 | |
9 | MAINTAINER= jaapb@kerguelen.org | | 9 | MAINTAINER= jaapb@kerguelen.org |
10 | HOMEPAGE= http://ocaml-text.forge.ocamlcore.org/ | | 10 | HOMEPAGE= http://ocaml-text.forge.ocamlcore.org/ |
11 | COMMENT= OCaml Unicode library | | 11 | COMMENT= OCaml Unicode library |
12 | LICENSE= modified-bsd | | 12 | LICENSE= modified-bsd |
13 | | | 13 | |
14 | HAS_CONFIGURE= yes | | 14 | HAS_CONFIGURE= yes |
15 | CONFIGURE_ARGS+= --prefix ${PREFIX} --destdir ${DESTDIR} | | 15 | CONFIGURE_ARGS+= --prefix ${PREFIX} --destdir ${DESTDIR} |
16 | | | 16 | |
17 | DEPENDS+= ocaml-findlib-[0-9]*:../../devel/ocaml-findlib | | 17 | DEPENDS+= ocaml-findlib-[0-9]*:../../devel/ocaml-findlib |
18 | | | 18 | |
19 | SUBST_CLASSES+= destdir | | 19 | SUBST_CLASSES+= destdir |
20 | SUBST_STAGE.destdir= post-configure | | 20 | SUBST_STAGE.destdir= post-configure |
21 | SUBST_MESSAGE.destdir= Changing install location to DESTDIR | | 21 | SUBST_MESSAGE.destdir= Changing install location to DESTDIR |
22 | SUBST_FILES.destdir= setup.ml | | 22 | SUBST_FILES.destdir= setup.ml |
23 | SUBST_SED.destdir= -e 's,"install" :: findlib_name,"install" :: "-destdir ${DESTDIR}${PREFIX}/lib/ocaml/site-lib" :: "-ldconf /dev/null" :: findlib_name,' | | 23 | SUBST_SED.destdir= -e 's,"install" :: findlib_name,"install" :: "-destdir ${DESTDIR}${PREFIX}/lib/ocaml/site-lib" :: "-ldconf /dev/null" :: findlib_name,' |
24 | | | 24 | |
25 | .include "../../mk/bsd.fast.prefs.mk" | | 25 | .include "../../mk/bsd.prefs.mk" |
26 | | | 26 | |
27 | PLIST_VARS= opt | | 27 | PLIST_VARS= opt |
28 | .if (${MACHINE_ARCH} == "i386") || (${MACHINE_ARCH} == "powerpc") || \ | | 28 | .if (${MACHINE_ARCH} == "i386") || (${MACHINE_ARCH} == "powerpc") || \ |
29 | (${MACHINE_ARCH} == "sparc") || (${MACHINE_ARCH} == "x86_64") | | 29 | (${MACHINE_ARCH} == "sparc") || (${MACHINE_ARCH} == "x86_64") |
30 | PLIST.opt= yes | | 30 | PLIST.opt= yes |
31 | .endif | | 31 | .endif |
32 | | | 32 | |
33 | do-configure: | | 33 | do-configure: |
34 | cd ${WRKSRC} && ocaml setup.ml -configure ${CONFIGURE_ARGS} | | 34 | cd ${WRKSRC} && ocaml setup.ml -configure ${CONFIGURE_ARGS} |
35 | | | 35 | |
36 | do-build: | | 36 | do-build: |
37 | cd ${WRKSRC} && ocaml setup.ml -build | | 37 | cd ${WRKSRC} && ocaml setup.ml -build |
38 | | | 38 | |