diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2017-03-10 17:01:48 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2017-03-10 17:01:48 +0800 |
commit | 17aa1942bfb9e45f7a1072859a1af52b27a089fb (patch) | |
tree | 9373f9c9fd94003a44f15d12ef8a8351bf8f79f2 /devel/ocaml-magic/Makefile | |
parent | e383043d25a45643669bbcaee4ffa08d52d54ed6 (diff) | |
download | freebsd-ports-gnome-17aa1942bfb9e45f7a1072859a1af52b27a089fb.tar.gz freebsd-ports-gnome-17aa1942bfb9e45f7a1072859a1af52b27a089fb.tar.zst freebsd-ports-gnome-17aa1942bfb9e45f7a1072859a1af52b27a089fb.zip |
- Add LICENSE
- Switch to options helpers
Diffstat (limited to 'devel/ocaml-magic/Makefile')
-rw-r--r-- | devel/ocaml-magic/Makefile | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/devel/ocaml-magic/Makefile b/devel/ocaml-magic/Makefile index 89ac1c51a542..758d1fae5222 100644 --- a/devel/ocaml-magic/Makefile +++ b/devel/ocaml-magic/Makefile @@ -12,6 +12,9 @@ DISTNAME= ${PKGNAMEPREFIX}${PORTNAME}-${PORTVERSION} 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> |