git: 18bc81251857 - main - x11-toolkits/ocaml-lablgtk2: switch to options helpers
Dmitry Marakasov
amdmi3 at FreeBSD.org
Mon Apr 26 14:20:44 UTC 2021
The branch main has been updated by amdmi3:
URL: https://cgit.FreeBSD.org/ports/commit/?id=18bc81251857f20016d280e18bbd36eb6ce0272a
commit 18bc81251857f20016d280e18bbd36eb6ce0272a
Author: Dmitry Marakasov <amdmi3 at FreeBSD.org>
AuthorDate: 2021-04-26 10:19:35 +0000
Commit: Dmitry Marakasov <amdmi3 at FreeBSD.org>
CommitDate: 2021-04-26 14:19:20 +0000
x11-toolkits/ocaml-lablgtk2: switch to options helpers
Approved by: portmgr blanket
---
x11-toolkits/ocaml-lablgtk2/Makefile | 24 +++++++-----------------
1 file changed, 7 insertions(+), 17 deletions(-)
diff --git a/x11-toolkits/ocaml-lablgtk2/Makefile b/x11-toolkits/ocaml-lablgtk2/Makefile
index 8add0d7f0f02..b7c5271be2e4 100644
--- a/x11-toolkits/ocaml-lablgtk2/Makefile
+++ b/x11-toolkits/ocaml-lablgtk2/Makefile
@@ -10,6 +10,7 @@ MAINTAINER= danfe at FreeBSD.org
COMMENT= Objective Caml interface to GTK+ 2.x
LICENSE= LGPL21
+LICENSE_FILE= ${WRKSRC}/COPYING
USES= gmake gnome pkgconfig
USE_GNOME= gtk20
@@ -39,25 +40,14 @@ CONFIGURE_ENV= CAMLP4O="camlp4 pa_o.cmo pa_op.cmo pr_dump.cmo"
PATTERN= [[:space:]]*(do|then)?[[:space:]]*)cp([[:space:]]
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MDOCS}
DOCSDIR= ${OCAML_DOCSDIR}/${PORTNAME}
PORTDOCS= COPYING README
-.endif
-
-.if ${PORT_OPTIONS:MEXAMPLES}
EXAMPLESDIR= ${OCAML_EXAMPLESDIR}/${PORTNAME}
PORTEXAMPLES= *
-.endif
-.if ${PORT_OPTIONS:MLIBRSVG2}
-CONFIGURE_ARGS+= --with-rsvg
-USE_GNOME+= librsvg2
-EXAMPLES_SUBDIRS+= rsvg
-.else
-CONFIGURE_ARGS+= --without-rsvg
-.endif
+LIBRSVG2_CONFIGURE_WITH=rsvg
+LIBRSVG2_USE= GNOME=librsvg2
+LIBRSVG2_VARS= EXAMPLES_SUBDIRS+=rsvg
post-patch:
@${REINPLACE_CMD} -E \
@@ -69,11 +59,11 @@ post-patch:
-e 's,(-ldconf )("\$$\(DESTDIR\)\$$\(OCAMLLDCONF\)"),\1ignore,' \
${WRKSRC}/src/Makefile
-post-install:
+post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
-.if ${PORT_OPTIONS:MDOCS}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
-.endif
+
+post-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
@cd ${WRKSRC}/examples && ${COPYTREE_SHARE} \
"*.ml *.png *.rgb *.xpm text ${EXAMPLES_SUBDIRS}" \
More information about the dev-commits-ports-all
mailing list