Fri Mar 6 01:19:30 2015 UTC ()
Don't steer away from the documented procedure, use bsd.prefs.mk


(sevan)
diff -r1.8 -r1.9 pkgsrc/textproc/ocaml-text/Makefile

cvs diff -r1.8 -r1.9 pkgsrc/textproc/ocaml-text/Makefile (expand / switch to unified diff)

--- pkgsrc/textproc/ocaml-text/Makefile 2015/03/04 15:31:34 1.8
+++ pkgsrc/textproc/ocaml-text/Makefile 2015/03/06 01:19:30 1.9
@@ -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
4DISTNAME= ocaml-text-0.6 4DISTNAME= ocaml-text-0.6
5PKGREVISION= 4 5PKGREVISION= 4
6CATEGORIES= textproc 6CATEGORIES= textproc
7MASTER_SITES= http://forge.ocamlcore.org/frs/download.php/937/ 7MASTER_SITES= http://forge.ocamlcore.org/frs/download.php/937/
8 8
9MAINTAINER= jaapb@kerguelen.org 9MAINTAINER= jaapb@kerguelen.org
10HOMEPAGE= http://ocaml-text.forge.ocamlcore.org/ 10HOMEPAGE= http://ocaml-text.forge.ocamlcore.org/
11COMMENT= OCaml Unicode library 11COMMENT= OCaml Unicode library
12LICENSE= modified-bsd 12LICENSE= modified-bsd
13 13
14HAS_CONFIGURE= yes 14HAS_CONFIGURE= yes
15CONFIGURE_ARGS+= --prefix ${PREFIX} --destdir ${DESTDIR} 15CONFIGURE_ARGS+= --prefix ${PREFIX} --destdir ${DESTDIR}
16 16
17DEPENDS+= ocaml-findlib-[0-9]*:../../devel/ocaml-findlib 17DEPENDS+= ocaml-findlib-[0-9]*:../../devel/ocaml-findlib
18 18
19SUBST_CLASSES+= destdir 19SUBST_CLASSES+= destdir
20SUBST_STAGE.destdir= post-configure 20SUBST_STAGE.destdir= post-configure
21SUBST_MESSAGE.destdir= Changing install location to DESTDIR 21SUBST_MESSAGE.destdir= Changing install location to DESTDIR
22SUBST_FILES.destdir= setup.ml 22SUBST_FILES.destdir= setup.ml
23SUBST_SED.destdir= -e 's,"install" :: findlib_name,"install" :: "-destdir ${DESTDIR}${PREFIX}/lib/ocaml/site-lib" :: "-ldconf /dev/null" :: findlib_name,' 23SUBST_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
27PLIST_VARS= opt 27PLIST_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")
30PLIST.opt= yes 30PLIST.opt= yes
31.endif 31.endif
32 32
33do-configure: 33do-configure:
34 cd ${WRKSRC} && ocaml setup.ml -configure ${CONFIGURE_ARGS} 34 cd ${WRKSRC} && ocaml setup.ml -configure ${CONFIGURE_ARGS}
35 35
36do-build: 36do-build:
37 cd ${WRKSRC} && ocaml setup.ml -build 37 cd ${WRKSRC} && ocaml setup.ml -build
38 38