Still adjusting the library & include pathes.

This commit is contained in:
Jean-Paul Chaput 2011-02-10 13:36:58 +00:00
parent 525cd7250d
commit 2eb3754846
4 changed files with 22 additions and 10 deletions

View File

@ -13,11 +13,23 @@ export DH_VERBOSE=1
dh $@ --with python-central
override_dh_auto_configure:
dh_auto_configure -- --enable-alc-shared --disable-static
override_dh_makeshlibs:
dh_makeshlibs
ldsoconfdir="/etc/ld.so.conf.d"; \
allianceldsoconf="$${ldsoconfdir}/alliance.conf"; \
echo "# Alliance VLSI design system" > $${allianceldsoconf}; \
echo "/usr/lib/alliance/lib" > $${allianceldsoconf};
override_dh_auto_install:
dh_auto_install
destdir="`pwd`/debian/alliance"; \
prefix="/usr"; \
sharedir="$${prefix}/share"; \
prefix="/usr/lib/alliance"; \
sharedir="/usr/share"; \
alliancesharedir="$${sharedir}/alliance"; \
celldir="$${alliancesharedir}/cell"; \
docdir="$${sharedir}/doc/alliance"; \

View File

@ -205,8 +205,8 @@ sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
pushd %{buildroot}%{_sysconfdir}/profile.d
chmod 0644 alc_env.*
sed -i "s|@DATE@|`date`|" alc_env*
sed "s|ALLIANCE_TOP *= *\([^;]*\)|ALLIANCE_TOP=%{_prefix}|" alc_env.sh
sed "s|setenv *ALLIANCE_TOP *\([^;]*\)|setenv ALLIANCE_TOP %{_prefix}|" alc_env.csh
sed -i "s|ALLIANCE_TOP *= *\([^;]*\)|ALLIANCE_TOP=%{prefix}|" alc_env.sh
sed -i "s|setenv *ALLIANCE_TOP *\([^;]*\)|setenv ALLIANCE_TOP %{prefix}|" alc_env.csh
popd

View File

@ -7,7 +7,7 @@
# Alliance CAD system environnement
# Usage (in C-shell) : > source alc_env.csh
# (C) 1997 Czo -- <Olivier.Sirol@lip6.fr>
# $Id: alc_env.csh.in,v 1.12 2011/02/10 11:44:53 jpc Exp $
# $Id: alc_env.csh.in,v 1.13 2011/02/10 13:36:58 jpc Exp $
# Generated from alc_env.csh.in on @DATE@
# $ALLIANCE_OS and $ALLIANCE_TOP are the only variables you will
@ -23,7 +23,7 @@
setenv ALLIANCE_TOP "@prefix@"
set SYSCONF_TOP "${ALLIANCE_TOP}"
set CELLS_TOP "${ALLIANCE_TOP}"
if ( "${ALLIANCE_TOP}" == "/usr" ) then
if ( "${ALLIANCE_TOP}" == "/usr/lib/alliance" ) then
# For installation in the FHS.
set SYSCONF_TOP "/etc/alliance"
set CELLS_TOP "/usr/share/alliance/cells"
@ -76,7 +76,7 @@
# System PATH variables, only needed when not installed in the FHS.
if ( "${ALLIANCE_TOP}" != "/usr" ) then
if ( "${ALLIANCE_TOP}" != "/usr/lib/alliance" ) then
if ( $?PATH ) then
setenv PATH "${PATH}:${ALLIANCE_TOP}/bin"
else

View File

@ -7,7 +7,7 @@
# Alliance CAD system environnement
# Usage (in Bourne-shell) : > . alc_env.sh
# (C) 1997 Czo -- <Olivier.Sirol@lip6.fr>
# $Id: alc_env.sh.in,v 1.12 2011/02/10 11:44:53 jpc Exp $
# $Id: alc_env.sh.in,v 1.13 2011/02/10 13:36:58 jpc Exp $
# Generated from alc_env.sh.in on @DATE@
# $ALLIANCE_OS and $ALLIANCE_TOP are the only variables you will
@ -23,7 +23,7 @@
ALLIANCE_TOP=@prefix@; export ALLIANCE_TOP
SYSCONF_TOP=$ALLIANCE_TOP
CELLS_TOP=$ALLIANCE_TOP
if [ "$ALLIANCE_TOP" = "/usr" ]; then
if [ "$ALLIANCE_TOP" = "/usr/lib/alliance" ]; then
# FHS Installation.
SYSCONF_TOP="/etc/alliance"
CELLS_TOP="/usr/share/alliance/cells"
@ -77,7 +77,7 @@
# System PATH variables, only needed when not installed in the FHS.
if [ "$ALLIANCE_TOP" != "/usr" ]; then
if [ "$ALLIANCE_TOP" != "/usr/lib/alliance" ]; then
PATH=$PATH:$ALLIANCE_TOP/bin
export PATH