Date: Fri, 10 Mar 2017 09:01:48 +0000 (UTC) From: Dmitry Marakasov <amdmi3@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r435821 - head/devel/ocaml-magic Message-ID: <201703100901.v2A91meZ050520@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: amdmi3 Date: Fri Mar 10 09:01:48 2017 New Revision: 435821 URL: https://svnweb.freebsd.org/changeset/ports/435821 Log: - Add LICENSE - Switch to options helpers Modified: head/devel/ocaml-magic/Makefile Modified: head/devel/ocaml-magic/Makefile ============================================================================== --- head/devel/ocaml-magic/Makefile Fri Mar 10 05:57:42 2017 (r435820) +++ head/devel/ocaml-magic/Makefile Fri Mar 10 09:01:48 2017 (r435821) @@ -12,6 +12,9 @@ DISTNAME= ${PKGNAMEPREFIX}${PORTNAME}-${ MAINTAINER= ports@FreeBSD.org COMMENT= OCaml binding for libmagic(3) +LICENSE= LGPL21 +LICENSE_FILE= ${WRKSRC}/LICENSE + USE_OCAML= yes USE_OCAML_FINDLIB= yes USE_OCAML_LDCONFIG= yes @@ -21,20 +24,18 @@ MAKE_JOBS_UNSAFE= yes USES= gmake GNU_CONFIGURE= yes -ALL_TARGET+= doc examples +ALL_TARGET= doc examples DOCSDIR= ${OCAML_DOCSDIR}/${PORTNAME} EXAMPLESDIR= ${OCAML_EXAMPLESDIR}/${PORTNAME} OPTIONS_DEFINE= DOCS EXAMPLES -# This really is overzealous but I work this way -.if !exists(/usr/lib/libmagic.so) -LIB_DEPENDS+= libmagic.so:sysutils/file -.endif - -post-install: - ${MKDIR} ${STAGEDIR}${DOCSDIR} ${STAGEDIR}${EXAMPLESDIR} +post-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/doc/html/* ${STAGEDIR}${DOCSDIR} + +post-install-EXAMPLES-on: + @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${INSTALL_DATA} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR} .include <bsd.port.mk>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201703100901.v2A91meZ050520>