1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-25 09:34:11 +00:00

cad/alliance: unbreak

- upstream has not released a new version, but several fixes have been
  committed: get the source from GitLab and remove BROKEN;
- change WWW;
- enable shared libs;
- optionalize examples and tutorial.
This commit is contained in:
Thierry Thomas 2022-11-20 16:33:34 +01:00
parent c8332032ae
commit 99731f4c23
5 changed files with 909 additions and 567 deletions

View File

@ -1,25 +1,26 @@
PORTNAME= alliance
DISTVERSION= 5.1.1
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= cad
MASTER_SITES= ftp://asim.lip6.fr/pub/alliance/distribution/5.0/ \
ftp://ftp.lyx.org/lip6/softs/alliance/distribution/5.0/ \
ftp://ftp.jussieu.fr/lip6/softs/alliance/distribution/5.0/
MAINTAINER= ports@FreeBSD.org
COMMENT= Complete set of CAD tools and libraries for VLSI design
WWW= https://www-soc.lip6.fr/equipe-cian/logiciels/alliance/
WWW= http://coriolis.lip6.fr/
LICENSE= Alliance
LICENSE_NAME= Alliance VLSI Cad System License
LICENSE_FILE= ${WRKSRC}/LICENCE
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
BROKEN= fails to build with latest TeX2021
BROKEN_aarch64= fails to link: collect2: error: ld returned 1 exit status
BUILD_DEPENDS= fig2dev:print/fig2dev
USE_GITLAB= yes
GL_SITE= https://gitlab.lip6.fr
GL_ACCOUNT= vlsi-eda
GL_COMMIT= ebece102e15c110fc79f1da50524c68fd9523f0c
USES= autoreconf:build gmake libtool magick:build motif tar:bz2 xorg
USE_GCC= yes
USE_TEX= dvipsk:build latex:build
@ -28,7 +29,10 @@ USE_XORG= ice sm x11 xext xt
HAS_CONFIGURE= yes
CONFIGURE_ENV+= ALLIANCE_TOP=${ALLIANCE_TOP} YACC=${YACC}
CONFIGURE_ARGS+=--mandir=${MANPREFIX}/man \
--prefix=${ALLIANCE_TOP}
--prefix=${ALLIANCE_TOP} \
--enable-alc-shared \
--enable-shared
USE_LDCONFIG= ${ALLIANCE_TOP}/lib
MAKE_JOBS_UNSAFE= yes
INSTALL_TARGET= install-strip
@ -37,21 +41,33 @@ CFLAGS+= -fcommon
CONFLICTS_INSTALL= ocp publib
SUB_FILES= pkg-message
WRKSRC= ${WRKDIR}/alliance/src
WRKSRC_SUBDIR= alliance/src
ALLIANCE_TOP= ${PREFIX}/alliance
post-patch:
@${REINPLACE_CMD} -e '/include <malloc.h>/d' \
OPTIONS_DEFINE= DOCS EXAMPLES
pre-configure:
${REINPLACE_CMD} -e '/include <malloc.h>/d' \
${WRKSRC}/xgra/src/XSB_parse.c
# Recursive make commands should always use the variable MAKE, not the
# explicit command name `make' (see the GNU make manual, section 5.7.1)
@${REINPLACE_CMD} -e 's/; make/; $$(MAKE)/' \
${REINPLACE_CMD} -e 's/; make/; $$(MAKE)/' \
${WRKSRC}/documentation/Makefile.am \
${WRKSRC}/documentation/alliance-examples/Makefile \
${WRKSRC}/documentation/tutorials/Makefile.am
${RM} ${WRKSRC}/documentation/tutorials/Makefile.am.bak \
${WRKSRC}/documentation/alliance-examples/Makefile.bak
cd ${WRKSRC} && ./autostuff
pre-configure:
@cd ${WRKSRC} && ./autostuff
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${ALLIANCE_TOP}/tutorials
(cd ${WRKSRC}/documentation/tutorials && \
${COPYTREE_SHARE} . ${STAGEDIR}${ALLIANCE_TOP}/tutorials)
post-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${ALLIANCE_TOP}/examples
(cd ${WRKSRC}/documentation/alliance-examples && \
${COPYTREE_SHARE} . ${STAGEDIR}${ALLIANCE_TOP}/examples)
.include <bsd.port.mk>

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1568066206
SHA256 (alliance-5.1.1.tar.bz2) = 811f201881af46d9d36f1c60b184c136fd2b8bebbe932a29e07ced40394ecc10
SIZE (alliance-5.1.1.tar.bz2) = 4486561
TIMESTAMP = 1668881909
SHA256 (vlsi-eda-alliance-ebece102e15c110fc79f1da50524c68fd9523f0c_GL0.tar.gz) = 76ef11f47f3645f546cc75a70f65d343d2c5139b703830cbf4f45b95c63e6313
SIZE (vlsi-eda-alliance-ebece102e15c110fc79f1da50524c68fd9523f0c_GL0.tar.gz) = 6164197

View File

@ -1,15 +0,0 @@
Add "float" package to avoid "Unknown float option 'H'" error
Obtained from Debian
--- documentation/tutorials/start/start.tex.orig 2014-08-02 23:38:00 UTC
+++ documentation/tutorials/start/start.tex
@@ -9,7 +9,7 @@
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass{article}
-\usepackage{charter,setspace,fancybox}
+\usepackage{charter,setspace,fancybox,float}
\textwidth 15cm
\textheight 23cm
\oddsidemargin +0.75cm

View File

@ -4,3 +4,6 @@ synthesis tools, and automatic place and route tools. A complete set
of portable CMOS libraries is provided. Alliance is the result of a
twelve year effort spent at ASIM department of LIP6 laboratory of
the Pierre et Marie Curie University (Paris VI, France).
Remark: Coriolis was started in the year 2000 as a replacement for the place &
route stage of Alliance, and thus Alliance does not get many development.

File diff suppressed because it is too large Load Diff