Ticket #11093: diff

File diff, 3.0 KB (added by vinc17@…, 18 years ago)

Patch to upgrade to 2.12.1.8 and add readline support

  • files/patch-Makefile

     
    1 --- Makefile.orig       Thu Jul 29 01:18:56 2004
    2 +++ Makefile    Tue Sep  7 17:08:51 2004
    3 @@ -572,7 +572,7 @@
     1--- Makefile.orig       2007-02-07 01:35:20.000000000 +0100
     2+++ Makefile    2007-02-18 17:35:50.000000000 +0100
     3@@ -429,9 +429,9 @@
     4 #
     5 # When in doubt, leave HAVE_MALLOC_H empty.
     6 #
     7-HAVE_MALLOC_H=
     8+#HAVE_MALLOC_H=
     9 #HAVE_MALLOC_H= YES
     10-#HAVE_MALLOC_H= NO
     11+HAVE_MALLOC_H= NO
    412 
     13 # Determine if we have the <stdlib.h> include file.
     14 #
     15@@ -571,7 +571,7 @@
     16 
    517 #INCDIR= /usr/local/include
    618 #INCDIR= /dev/env/DJDIR/include
    719-INCDIR= /usr/include
     
    921 
    1022 # Where to install calc realted things
    1123 #
    12 @@ -599,15 +599,15 @@
     24@@ -598,15 +598,15 @@
    1325 #
    1426 #BINDIR= /usr/local/bin
    1527 #BINDIR= /dev/env/DJDIR/bin
     
    2840 
    2941 #CALC_INCDIR= /usr/local/include/calc
    3042 #CALC_INCDIR= /dev/env/DJDIR/include/calc
    31 @@ -670,7 +670,7 @@
     43@@ -669,7 +669,7 @@
    3244 #
    3345 # If in doubt, use T=
    3446 #
     
    3749 
    3850 # where man pages are installed
    3951 #
    40 @@ -681,7 +681,7 @@
     52@@ -680,7 +680,7 @@
    4153 #MANDIR=
    4254 #MANDIR= /usr/local/man/man1
    4355 #MANDIR= /usr/man/man1
     
    4658 #MANDIR= /dev/env/DJDIR/man/man1
    4759 #MANDIR= /usr/man/u_man/man1
    4860 #MANDIR= /usr/contrib/man/man1
     61@@ -785,22 +785,22 @@
     62 #
     63 # If in doubt, set USE_READLINE, READLINE_LIB and READLINE_INCLUDE to nothing.
     64 #
     65-USE_READLINE=
     66-#USE_READLINE= -DUSE_READLINE
     67+#USE_READLINE=
     68+USE_READLINE= -DUSE_READLINE
     69 #
     70-READLINE_LIB=
     71+#READLINE_LIB=
     72 #READLINE_LIB= -lreadline -lhistory -lncurses
     73 #READLINE_LIB= -L/usr/gnu/lib -lreadline -lhistory -lncurses
     74-#READLINE_LIB= -L/usr/local/lib -lreadline -lhistory -lncurses
     75+READLINE_LIB= -L___PREFIX___/lib -lreadline -lhistory -lncurses
     76 #
     77 # For Apple OS X: install fink from http://fink.sourceforge.net
     78 #                and then do a 'fink install readline' and then use:
     79 #
     80 #READLINE_LIB= -L/sw/lib -lreadline -lhistory -lncurses
     81 #
     82-READLINE_INCLUDE=
     83+#READLINE_INCLUDE=
     84 #READLINE_INCLUDE= -I/usr/gnu/include
     85-#READLINE_INCLUDE= -I/usr/local/include
     86+READLINE_INCLUDE= -I___PREFIX___/include
     87 
     88 # If $PAGER is not set, use this program to display a help file
     89 #
  • Portfile

     
    22
    33PortSystem 1.0
    44name             calc
    5 version          2.12.1.5
     5version          2.12.1.8
    66categories       math
    77maintainers      toby@opendarwin.org
    88description      Arbitrary precision calculator
     
    2020homepage         http://www.isthe.com/chongo/tech/comp/calc/
    2121platforms        darwin
    2222master_sites     sourceforge
    23 checksums        sha1 7a25ee74a6096413b36281e7ab120ae8103b75db
     23checksums        sha1 4ff5f8adb638565814319513e8acdf98191cb580
    2424
     25depends_lib      port:readline \
     26                 port:ncurses
     27
    2528patchfiles       patch-Makefile
    2629post-patch {
    2730        reinplace "s|___PREFIX___|${prefix}|" ${worksrcpath}/Makefile