diff --git a/textproc/py-hyperestraier-python/Makefile b/textproc/py-hyperestraier-python/Makefile index fc541b49f0b4..0216530bfe0f 100644 --- a/textproc/py-hyperestraier-python/Makefile +++ b/textproc/py-hyperestraier-python/Makefile @@ -18,13 +18,15 @@ USE_PYDISTUTILS=yes PORTEXAMPLES= example.py asyn_example.py EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}${PKGNAMESUFFIX} +OPTIONS_DEFINE= EXAMPLES + +.include -NO_STAGE= yes post-install: -.if !defined(NOPORTEXAMPLES) - @${MKDIR} ${EXAMPLESDIR} - ${INSTALL_DATA} ${WRKSRC}/example.py ${EXAMPLESDIR}/ - ${INSTALL_DATA} ${WRKSRC}/asyn_example.py ${EXAMPLESDIR}/ +.if ${PORT_OPTIONS:MEXAMPLES} + @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/example.py ${STAGEDIR}${EXAMPLESDIR}/ + ${INSTALL_DATA} ${WRKSRC}/asyn_example.py ${STAGEDIR}${EXAMPLESDIR}/ .endif .include