svn commit: r349884 - head/devel/aifad
Pawel Pekala
pawel at FreeBSD.org
Tue Apr 1 19:46:09 UTC 2014
Author: pawel
Date: Tue Apr 1 19:46:09 2014
New Revision: 349884
URL: http://svnweb.freebsd.org/changeset/ports/349884
QAT: https://qat.redports.org/buildarchive/r349884/
Log:
- Add staging support
- Convert to new LIB_DEPENDS format
- Define DOCS EXAMPLES options
Modified:
head/devel/aifad/Makefile
Modified: head/devel/aifad/Makefile
==============================================================================
--- head/devel/aifad/Makefile Tue Apr 1 19:43:27 2014 (r349883)
+++ head/devel/aifad/Makefile Tue Apr 1 19:46:09 2014 (r349884)
@@ -15,30 +15,26 @@ BUILD_DEPENDS= menhir:${PORTSDIR}/devel/
ocaml-cfg>0:${PORTSDIR}/devel/ocaml-cfg \
ocaml-pcre>0:${PORTSDIR}/devel/ocaml-pcre \
ocaml-res>0:${PORTSDIR}/devel/ocaml-res
-LIB_DEPENDS= pcre:${PORTSDIR}/devel/pcre
+LIB_DEPENDS= libpcre.so:${PORTSDIR}/devel/pcre
USE_OCAML= yes
NO_OCAML_RUNDEPENDS=yes
HAS_CONFIGURE= yes
-CONFIGURE_ARGS= --prefix ${PREFIX}
+CONFIGURE_ARGS= --prefix ${STAGEDIR}${PREFIX}
PORTDOCS= *
PORTEXAMPLES= *
PLIST_FILES= bin/${PORTNAME}
-NO_STAGE= yes
+OPTIONS_DEFINE= DOCS EXAMPLES
+
post-install:
- @${STRIP_CMD} ${PREFIX}/bin/${PORTNAME}
-.if !defined(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}
-.for i in AUTHORS.txt CHANGES.txt README.md TODO.md
- (cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${DOCSDIR})
-.endfor
-.endif
-.if !defined(NOPORTEXAMPLES)
- @${MKDIR} ${EXAMPLESDIR}
- (cd ${WRKSRC}/examples && ${INSTALL_DATA} * ${EXAMPLESDIR})
-.endif
+ @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ (cd ${WRKSRC} && ${INSTALL_DATA} AUTHORS.txt CHANGES.txt README.md \
+ TODO.md ${STAGEDIR}${DOCSDIR})
+ @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ (cd ${WRKSRC}/examples && ${INSTALL_DATA} * ${STAGEDIR}${EXAMPLESDIR})
.include <bsd.port.mk>
More information about the svn-ports-all
mailing list