aboutsummaryrefslogtreecommitdiffstats
path: root/devel/aifad
diff options
context:
space:
mode:
authorpawel <pawel@FreeBSD.org>2014-04-02 03:46:09 +0800
committerpawel <pawel@FreeBSD.org>2014-04-02 03:46:09 +0800
commitbc47d41364af27c03fbef1fb992c91e832723913 (patch)
tree412d696f0df39c92ac996167039b809ee2aa7527 /devel/aifad
parent169f1ecb5df1aff58e35df665fd656f5aa9e16ae (diff)
downloadfreebsd-ports-gnome-bc47d41364af27c03fbef1fb992c91e832723913.tar.gz
freebsd-ports-gnome-bc47d41364af27c03fbef1fb992c91e832723913.tar.zst
freebsd-ports-gnome-bc47d41364af27c03fbef1fb992c91e832723913.zip
- Add staging support
- Convert to new LIB_DEPENDS format - Define DOCS EXAMPLES options
Diffstat (limited to 'devel/aifad')
-rw-r--r--devel/aifad/Makefile24
1 files changed, 10 insertions, 14 deletions
diff --git a/devel/aifad/Makefile b/devel/aifad/Makefile
index 385469d77f88..d94ad1b4aeb9 100644
--- a/devel/aifad/Makefile
+++ b/devel/aifad/Makefile
@@ -15,30 +15,26 @@ BUILD_DEPENDS= menhir:${PORTSDIR}/devel/menhir \
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>