| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.29 2016/12/31 08:09:14 dholland Exp $ | | 1 | # $NetBSD: Makefile,v 1.30 2016/12/31 09:15:00 dholland Exp $ |
2 | | | 2 | |
3 | .include "../../lang/ocaml/Makefile.common" | | 3 | .include "../../lang/ocaml/Makefile.common" |
4 | DISTINFO_FILE= ${PKGDIR}/../../lang/ocaml/distinfo | | 4 | DISTINFO_FILE= ${PKGDIR}/../../lang/ocaml/distinfo |
5 | PATCHDIR= ${PKGDIR}/../../lang/ocaml/patches | | 5 | PATCHDIR= ${PKGDIR}/../../lang/ocaml/patches |
6 | | | 6 | |
7 | PKGNAME= ${DISTNAME:S/ocaml/ocaml-graphics/} | | 7 | PKGNAME= ${DISTNAME:S/ocaml/ocaml-graphics/} |
8 | PKGREVISION= 6 | | 8 | PKGREVISION= 6 |
9 | | | 9 | |
10 | COMMENT+= (graphics library) | | 10 | COMMENT+= (graphics library) |
11 | | | 11 | |
12 | CONFIGURE_ARGS+= -x11include ${X11BASE}/include | | 12 | CONFIGURE_ARGS+= -x11include ${X11BASE}/include |
13 | CONFIGURE_ARGS+= -x11lib ${X11BASE}/lib | | 13 | CONFIGURE_ARGS+= -x11lib ${X11BASE}/lib |
14 | | | 14 | |
| @@ -49,22 +49,29 @@ SUBST_SED.depend= -e 's,/usr/X11R6,${X11 | | | @@ -49,22 +49,29 @@ SUBST_SED.depend= -e 's,/usr/X11R6,${X11 |
49 | SUBST_MESSAGE.depend= Fixing .depend in otherlibs/graph. | | 49 | SUBST_MESSAGE.depend= Fixing .depend in otherlibs/graph. |
50 | | | 50 | |
51 | SUBST_CLASSES+= mklib | | 51 | SUBST_CLASSES+= mklib |
52 | SUBST_STAGE.mklib= post-patch | | 52 | SUBST_STAGE.mklib= post-patch |
53 | SUBST_FILES.mklib= otherlibs/Makefile.shared | | 53 | SUBST_FILES.mklib= otherlibs/Makefile.shared |
54 | SUBST_SED.mklib= -e 's,^MKLIB=.*,MKLIB=ocamlmklib,g' | | 54 | SUBST_SED.mklib= -e 's,^MKLIB=.*,MKLIB=ocamlmklib,g' |
55 | SUBST_MESSAGE.mklib= Fixing MKLIB in otherlibs/Makefile.shared. | | 55 | SUBST_MESSAGE.mklib= Fixing MKLIB in otherlibs/Makefile.shared. |
56 | | | 56 | |
57 | SUBST_CLASSES+= comp | | 57 | SUBST_CLASSES+= comp |
58 | SUBST_STAGE.comp= post-patch | | 58 | SUBST_STAGE.comp= post-patch |
59 | SUBST_FILES.comp= otherlibs/Makefile | | 59 | SUBST_FILES.comp= otherlibs/Makefile |
60 | SUBST_SED.comp= -e 's,^CAMLC=.*,CAMLC=ocamlc,g' | | 60 | SUBST_SED.comp= -e 's,^CAMLC=.*,CAMLC=ocamlc,g' |
61 | SUBST_SED.comp+= -e '/^CAMLOPT=/{;N;s,^CAMLOPT=.*,CAMLOPT=ocamlopt,g;}' | | 61 | SUBST_SED.comp+= -e '/^CAMLOPT=/{;N;s,^CAMLOPT=.*,CAMLOPT=ocamlopt,g;}' |
62 | SUBST_MESSAGE.comp= Fixing CAMLC OCAMLOPT in otherlibs/Makefile. | | 62 | SUBST_SED.comp+= -e 's,^MKLIB=.*,MKLIB=ocamlmklib,g' |
| | | 63 | SUBST_MESSAGE.comp= Fixing CAMLC OCAMLOPT MKLIB in otherlibs/Makefile. |
| | | 64 | |
| | | 65 | SUBST_CLASSES+= comp2 |
| | | 66 | SUBST_STAGE.comp2= post-patch |
| | | 67 | SUBST_FILES.comp2= otherlibs/graph/Makefile |
| | | 68 | SUBST_SED.comp2= -e 's,..CAMLRUN..*ocamldep,ocamldep,g' |
| | | 69 | SUBST_MESSAGE.comp2= Fixing ocamldep in otherlibs/graph/Makefile. |
63 | | | 70 | |
64 | INSTALLATION_DIRS+= lib/ocaml/stublibs | | 71 | INSTALLATION_DIRS+= lib/ocaml/stublibs |
65 | | | 72 | |
66 | post-build: | | 73 | post-build: |
67 | ${CP} ${PKGDIR}/PLIST ${WRKDIR}/.PLIST_SRC | | 74 | ${CP} ${PKGDIR}/PLIST ${WRKDIR}/.PLIST_SRC |
68 | | | 75 | |
69 | .include "../../x11/libX11/buildlink3.mk" | | 76 | .include "../../x11/libX11/buildlink3.mk" |
70 | .include "../../mk/bsd.pkg.mk" | | 77 | .include "../../mk/bsd.pkg.mk" |