freebsd-ports/math/pari/files/patch-af
Pav Lucistnik 8887f148c0 - Update to 2.3.0
PR:		ports/98531
Submitted by:	Yoshiaki Uchikawa <yoshiaki@kt.rim.or.jp> (maintainer)
2006-06-05 21:42:13 +00:00

101 lines
3.4 KiB
Text

--- config/Makefile.SH.orig Tue Jan 17 00:52:21 2006
+++ config/Makefile.SH Tue Feb 28 18:09:23 2006
@@ -162,7 +162,7 @@
CC_FLAVOR =
CC = $CC \$(CC_FLAVOR)
CPPFLAGS = $CPPFLAGS
-CFLAGS = $CFLAGS
+CFLAGS = $CFLAGS -fPIC
DLCFLAGS = $DLCFLAGS
LD_FLAVOR = \$(CC_FLAVOR)
LD = $LD \$(LD_FLAVOR)
@@ -221,13 +221,15 @@
# Change these installation directories to suit your needs.
# DESTDIR is used to install to a false hierachy (to build a Debian package)
-INCLUDEDIR= "\$(DESTDIR)$includedir"
-LIBDIR = "\$(DESTDIR)$libdir"
-BINDIR = "\$(DESTDIR)$bindir"
-MANDIR = "\$(DESTDIR)$mandir"
-EMACSDIR = "\$(DESTDIR)$emacsdir"
-DATADIR = "\$(DESTDIR)$datadir"
-SYSDATADIR= "\$(DESTDIR)$sysdatadir"
+INCLUDEDIR= "\$(DESTDIR)$includedir"
+LIBDIR = "\$(DESTDIR)$libdir"
+BINDIR = "\$(DESTDIR)$bindir"
+MANDIR = "\$(DESTDIR)\${PREFIX}/man/man1"
+EMACSDIR = "\$(DESTDIR)$emacsdir"
+ALLDIR = "\${PREFIX}/share/doc/pari"
+READMEDIR = "\$(ALLDIR)"
+DATADIR = "\$(ALLDIR)"
+SYSDATADIR= "\$(DESTDIR)$sysdatadir"
EXDIR = \$(DATADIR)/examples
MISCDIR = \$(DATADIR)/misc
@@ -385,7 +387,7 @@
-\$(LN) gp.1 \$(MANDIR)/pari.1
-\$(LN) gp-$version.1 \$(MANDIR)/gp.1
-install-misc: $install_emacs_files
+install-misc: $install_emacs_files install-top
-mkdir -p \$(MISCDIR) \$(BINDIR)
\$(INSTALL_PROGRAM) $misc/tex2mail \$(BINDIR)
\$(INSTALL_DATA) $doc/tex2mail.1 \$(MANDIR)
@@ -398,6 +400,19 @@
\$(INSTALL_DATA) $misc/pari.xpm \$(MISCDIR)
\$(INSTALL_PROGRAM) $misc/xgp \$(MISCDIR)
+install-top::
+ -mkdir -p \$(READMEDIR)
+ \$(INSTALL_DATA) $TOP/AUTHORS \$(READMEDIR)
+ \$(INSTALL_DATA) $TOP/Announce.2.1 \$(READMEDIR)
+ \$(INSTALL_DATA) $TOP/CHANGES \$(READMEDIR)
+ \$(INSTALL_DATA) $TOP/COMPAT \$(READMEDIR)
+ \$(INSTALL_DATA) $TOP/COPYING \$(READMEDIR)
+ \$(INSTALL_DATA) $TOP/CVS.txt \$(READMEDIR)
+ \$(INSTALL_DATA) $TOP/MACHINES \$(READMEDIR)
+ \$(INSTALL_DATA) $TOP/NEW \$(READMEDIR)
+ \$(INSTALL_DATA) $TOP/README \$(READMEDIR)
+ \$(INSTALL_DATA) $TOP/TODO \$(READMEDIR)
+
install-cfg::
-mkdir -p \$(SYSDATADIR)
-\$(INSTALL_DATA) pari.cfg \$(SYSDATADIR)
@@ -408,7 +423,7 @@
install-doc::
-mkdir -p \$(BINDIR) \$(DOCDIR)
- -cd $doc; \$(MAKE) all
+# -cd $doc; \$(MAKE) all
-\$(INSTALL_PROGRAM) $doc/gphelp \$(BINDIR)
-\$(INSTALL_DATA) $doc/Makefile \$(DOCDIR)
-\$(INSTALL_DATA) $doc/translations \$(DOCDIR)
@@ -426,11 +441,11 @@
-\$(INSTALL_DATA) $doc/usersch4.tex \$(DOCDIR)
-\$(INSTALL_DATA) $doc/usersch5.tex \$(DOCDIR)
-\$(INSTALL_DATA) $doc/paricfg.tex \$(DOCDIR)
- -\$(INSTALL_DATA) $doc/libpari.dvi \$(DOCDIR)
- -\$(INSTALL_DATA) $doc/users.dvi \$(DOCDIR)
- -\$(INSTALL_DATA) $doc/tutorial.dvi \$(DOCDIR)
- -\$(INSTALL_DATA) $doc/refcard.dvi \$(DOCDIR)
- -\$(INSTALL_DATA) $doc/refcard.ps \$(DOCDIR)
+# -\$(INSTALL_DATA) $doc/libpari.dvi \$(DOCDIR)
+# -\$(INSTALL_DATA) $doc/users.dvi \$(DOCDIR)
+# -\$(INSTALL_DATA) $doc/tutorial.dvi \$(DOCDIR)
+# -\$(INSTALL_DATA) $doc/refcard.dvi \$(DOCDIR)
+# -\$(INSTALL_DATA) $doc/refcard.ps \$(DOCDIR)
install-examples:
-mkdir -p \$(EXDIR)
@@ -524,9 +539,9 @@
--eval '(setq load-path (append (list ".") load-path))' \
-f batch-byte-compile *.el
-$install_emacs_files: elc
+$install_emacs_files: #elc
-mkdir -p \$(EMACSDIR)
- -cd $emx; for f in *.elc *.el pariemacs.txt; do \
+ -cd $emx; for f in *.el pariemacs.txt; do \
\$(INSTALL_DATA) \$\$f \$(EMACSDIR); \
done
EOT