diff --git a/devel/pcsc-ada/Makefile b/devel/pcsc-ada/Makefile index b3252a5d838a..826d29f1f1a1 100644 --- a/devel/pcsc-ada/Makefile +++ b/devel/pcsc-ada/Makefile @@ -62,20 +62,27 @@ post-patch: tests/runner.adb \ tests/test_pcscada.adb) +do-build: +# We cannot use a redefined ALL_TARGET because MAKE_JOBS_SAFE is set +# for PROCESSORS, but that also sets -j for gmake can break build + (cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \ + ${MAKE_CMD} ${MAKE_ARGS:NDESTDIR=*} ${ALL_TARGET}) + do-install: - ${MKDIR} ${STAGEDIR}${PREFIX}/lib/gnat \ + @${MKDIR} ${STAGEDIR}${PREFIX}/lib/gnat \ ${STAGEDIR}${PREFIX}/lib/pcscada \ - ${STAGEDIR}${PREFIX}/include/pcscada + ${STAGEDIR}${PREFIX}/include/pcscada \ + ${STAGEDIR}${EXAMPLESDIR}/src \ + ${STAGEDIR}${EXAMPLESDIR}/bin \ + ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/src/* ${STAGEDIR}${PREFIX}/include/pcscada ${INSTALL_DATA} ${WRKSRC}/lib/static/* \ ${STAGEDIR}${PREFIX}/lib/pcscada ${INSTALL_DATA} ${FILESDIR}/pcscada.gpr ${STAGEDIR}${PREFIX}/lib/gnat .if ${PORT_OPTIONS:MDOCS} - ${MKDIR} ${STAGEDIR}${DOCSDIR} (cd ${WRKSRC}/doc && ${COPYTREE_SHARE} html ${STAGEDIR}${DOCSDIR}) .endif .if ${PORT_OPTIONS:MEXAMPLES} - ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/src ${STAGEDIR}${EXAMPLESDIR}/bin (cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . \ ${STAGEDIR}${EXAMPLESDIR}/src) ${RM} ${STAGEDIR}${EXAMPLESDIR}/src/*/*.bak