Skip to content

Commit

Permalink
use make install for nauty install, add TLS libs
Browse files Browse the repository at this point in the history
  • Loading branch information
dimpase committed Jan 14, 2024
1 parent e249bef commit e45809a
Showing 1 changed file with 3 additions and 19 deletions.
22 changes: 3 additions & 19 deletions build/pkgs/nauty/spkg-install.in
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,6 @@ if [ "$SAGE_FAT_BINARY" = "yes" ]; then
NAUTY_CONFIGURE+="--enable-generic --disable-popcnt"
fi

# Nauty doesn't have an install target; passing a prefix to configure is
# useless (but harmless)
sdh_configure CC="$CC -fPIC" $NAUTY_CONFIGURE
sdh_make

# No install target so we resort to manual copy
PROGRAMS="
addedgeg addptg amtog ancestorg assembleg biplabg catg complg converseg copyg
countg countneg cubhamg deledgeg delptg dimacs2g directg dreadnaut dretodot
dretog edgetransg genbg genbgL geng gengL genposetg genquarticg genrang
genspecialg gentourng gentreeg genktreeg hamheuristic labelg linegraphg listg
multig nbrhoodg newedgeg pickg planarg productg ranlabg ransubg shortg showg
subdivideg twohamg underlyingg vcolg watercluster2 NRswitchg"
sdh_install $PROGRAMS "$SAGE_LOCAL/bin"

sdh_install nauty.h "$SAGE_LOCAL/include/nauty"

cp nauty.a libnauty.a
sdh_install libnauty.a "$SAGE_LOCAL/lib"
sdh_configure --prefix="$SAGE_LOCAL" --includedir="$SAGE_LOCAL/include/nauty" $NAUTY_CONFIGURE
sdh_make all TLSlibs
sdh_make install TLSinstall

0 comments on commit e45809a

Please sign in to comment.