diff options
author | danfe <danfe@FreeBSD.org> | 2015-09-13 20:49:13 +0800 |
---|---|---|
committer | danfe <danfe@FreeBSD.org> | 2015-09-13 20:49:13 +0800 |
commit | c2b58757e589589dd8e1b77399a7cdbb1a71ac0d (patch) | |
tree | 5b233ce26cb0cb1b237a34dcf9b2db3c89d0963a /math/asir2000 | |
parent | babce535cd9393cad29093b68c1e91ef23be81cb (diff) | |
download | freebsd-ports-gnome-c2b58757e589589dd8e1b77399a7cdbb1a71ac0d.tar.gz freebsd-ports-gnome-c2b58757e589589dd8e1b77399a7cdbb1a71ac0d.tar.zst freebsd-ports-gnome-c2b58757e589589dd8e1b77399a7cdbb1a71ac0d.zip |
- Attempt to fix the build on Tier-2 systems by avoiding reallocarray()
conflict (tested on PowerPC only; the build on sparc64 should be fine,
but cannot be easily completed on flame due to missing X11 bits)
- Tighten COMMENT and fix common style bugs in the Makefile while here
Diffstat (limited to 'math/asir2000')
-rw-r--r-- | math/asir2000/Makefile | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/math/asir2000/Makefile b/math/asir2000/Makefile index 66ca14f7972b..ca9f982c846b 100644 --- a/math/asir2000/Makefile +++ b/math/asir2000/Makefile @@ -11,7 +11,7 @@ DISTFILES= ${ASIR_SRC} ${ASIR_DOC} ${GC_SRC} EXTRACT_ONLY= ${ASIR_SRC} MAINTAINER= ports@FreeBSD.org -COMMENT= The system Risa/Asir is a general computer algebra system +COMMENT= General computer algebra system (Risa/Asir) LICENSE= RALUL LICENSE_NAME= Risa/Asir Limited Use License @@ -42,18 +42,19 @@ OPTIONS_DEFINE= DOCS PORTDOCS= * PORTDATA= * -BROKEN_ia64= does not compile -BROKEN_powerpc= does not compile -BROKEN_sparc64= does not compile - post-extract: - @( cd ${WRKSRC}; ${TAR} xfz ${DISTDIR}/${GC_SRC} ) + @${TAR} xfz ${DISTDIR}/${GC_SRC} -C ${WRKSRC} @${MKDIR} ${WRKDIR}/asirdoc @${TAR} xfz ${DISTDIR}/${ASIR_DOC} -C ${WRKDIR}/asirdoc post-patch: - ${REINPLACE_CMD} '-e s|$${DESTDIR}|${STAGEDIR}|g' \ + @${REINPLACE_CMD} -e 's|$${DESTDIR}|${STAGEDIR}|' \ ${WRKSRC}/lib/Makefile.am + @${REINPLACE_CMD} -e 's|reallocarray|_&|' \ + ${WRKSRC}/include/ca.h ${WRKSRC}/parse/eval.c \ + ${WRKSRC}/parse/glob.c ${WRKSRC}/parse/load.c \ + ${WRKSRC}/parse/pvar.c ${WRKSRC}/parse/struct.c \ + ${WRKSRC}/parse/util.c post-install: ${MKDIR} ${STAGEDIR}${DATADIR} @@ -68,10 +69,11 @@ post-install: ${LN} -fs ${PREFIX}/bin/asir ${STAGEDIR}${DATADIR}/ox_plot ${LN} -fs ${PREFIX}/bin/asir ${STAGEDIR}${DATADIR}/ox_launch ${LN} -fs ${DATADIR} ${STAGEDIR}${PREFIX}/lib/asir - ${INSTALL_MAN} ${WRKDIR}/asirdoc/${PORTNAME}.1 ${STAGEDIR}${MAN1PREFIX}/man/man1 + ${INSTALL_MAN} ${WRKDIR}/asirdoc/${PORTNAME}.1 \ + ${STAGEDIR}${MAN1PREFIX}/man/man1 post-install-DOCS-on: - ${MKDIR} ${STAGEDIR}${DOCSDIR} - (cd ${WRKDIR}/asirdoc/ && ${COPYTREE_SHARE} \* ${STAGEDIR}${DOCSDIR}) + @${MKDIR} ${STAGEDIR}${DOCSDIR} + (cd ${WRKDIR}/asirdoc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}) .include <bsd.port.mk> |