Changeset 57166


Ignore:
Timestamp:
Sep 7, 2009, 12:17:45 AM (10 years ago)
Author:
raimue@…
Message:

math/calc:
Update to latest stable, 2.12.3.3. Fixes the build on Snow Leopard.

Location:
trunk/dports/math/calc
Files:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/dports/math/calc/Portfile

    r30237 r57166  
    33PortSystem 1.0
    44name             calc
    5 version          2.12.1.8
     5version          2.12.3.3
    66categories       math
    77maintainers      nomaintainer
     
    2121platforms        darwin
    2222master_sites     sourceforge
    23 checksums        sha1 4ff5f8adb638565814319513e8acdf98191cb580
     23checksums        md5     2b6b511bba836653a444094622e65041 \
     24                 sha1    1bd946c36e9bedea9166996951aae36f7ad872ae \
     25                 rmd160  75aacf7b572533da4430ecd2b6493fd31b15f210
     26use_bzip2        yes
    2427
    2528depends_lib      port:readline \
    2629                 port:ncurses
    2730
    28 patchfiles       patch-Makefile
     31patchfiles       patch-Makefile.diff
    2932post-patch {
    3033        reinplace "s|___PREFIX___|${prefix}|" ${worksrcpath}/Makefile
    3134        reinplace "s|___DESTROOT___|${destroot}|" ${worksrcpath}/Makefile
     35        reinplace "s|___CC___|${configure.cc}|" ${worksrcpath}/Makefile
     36        reinplace "s|___MACOSX_DEPLOYMENT_TARGET___|${macosx_deployment_target}|" ${worksrcpath}/Makefile
    3237}
    3338
    3439use_configure    no
     40use_parallel_build no
    3541
    3642test.run         yes
  • trunk/dports/math/calc/files/patch-Makefile.diff

    r57086 r57166  
    1 --- Makefile.orig       2007-02-07 01:35:20.000000000 +0100
    2 +++ Makefile    2007-02-18 17:35:50.000000000 +0100
    3 @@ -571,7 +571,7 @@
     1--- Makefile.orig       2009-09-07 02:07:08.000000000 +0200
     2+++ Makefile    2009-09-07 02:07:42.000000000 +0200
     3@@ -585,7 +585,7 @@
    44 
    55 #INCDIR= /usr/local/include
     
    1010 # Where to install calc realted things
    1111 #
    12 @@ -598,15 +598,15 @@
     12@@ -612,15 +612,15 @@
    1313 #
    1414 #BINDIR= /usr/local/bin
     
    2727+CALC_SHAREDIR= ___PREFIX___/share/calc
    2828 
    29  #CALC_INCDIR= /usr/local/include/calc
    30  #CALC_INCDIR= /dev/env/DJDIR/include/calc
    31 @@ -669,7 +669,7 @@
     29 # NOTE: Do not set CALC_INCDIR to /usr/include or /usr/local/include!!!
     30 #      Always be sure that the CALC_INCDIR path ends in /calc to avoid
     31@@ -687,7 +687,7 @@
    3232 #
    3333 # If in doubt, use T=
     
    3838 # where man pages are installed
    3939 #
    40 @@ -680,7 +680,7 @@
     40@@ -698,7 +698,7 @@
    4141 #MANDIR=
    4242 #MANDIR= /usr/local/man/man1
     
    4747 #MANDIR= /usr/man/u_man/man1
    4848 #MANDIR= /usr/contrib/man/man1
    49 @@ -785,22 +785,22 @@
     49@@ -825,11 +825,11 @@
    5050 #
    5151 # If in doubt, set USE_READLINE, READLINE_LIB and READLINE_INCLUDE to nothing.
     
    5757 #
    5858-READLINE_LIB=
     59-READLINE_EXTRAS=
    5960+#READLINE_LIB=
    60  #READLINE_LIB= -lreadline -lhistory -lncurses
    61  #READLINE_LIB= -L/usr/gnu/lib -lreadline -lhistory -lncurses
    62 -#READLINE_LIB= -L/usr/local/lib -lreadline -lhistory -lncurses
    63 +READLINE_LIB= -L___PREFIX___/lib -lreadline -lhistory -lncurses
     61+#READLINE_EXTRAS=
    6462 #
     63 #READLINE_LIB= -lreadline
     64 #READLINE_EXTRAS= -lhistory -lncurses
     65@@ -840,6 +840,9 @@
     66 #READLINE_LIB= -L/usr/local/lib -lreadline
     67 #READLINE_EXTRAS= -lhistory -lncurses
     68 #
     69+READLINE_LIB= -L___PREFIX___/local/lib -lreadline
     70+READLINE_EXTRAS= -lhistory -lncurses
     71+#
    6572 # For Apple OS X: install fink from http://fink.sourceforge.net
    6673 #                and then do a 'fink install readline' and then use:
    6774 #
    68  #READLINE_LIB= -L/sw/lib -lreadline -lhistory -lncurses
     75@@ -1167,7 +1170,7 @@
     76 CC_SHARE= -fPIC
     77 DEFAULT_LIB_INSTALL_PATH= ${PWD}:${LIBDIR}:/usr/local/lib
     78 LD_SHARE= ${DARWIN_ARCH}
     79-LIBCALC_SHLIB= -single_module -undefined dynamic_lookup -dynamiclib
     80+LIBCALC_SHLIB= -single_module -undefined dynamic_lookup -dynamiclib -install_name ${LIBDIR}/libcalc${LIB_EXT_VERSION}
     81 ifdef ALLOW_CUSTOM
     82 LIBCUSTCALC_SHLIB= -single_module -undefined dynamic_lookup -dynamiclib
     83 else
     84@@ -1184,7 +1187,7 @@
     85 CCOPT= ${DEBUG}
     86 CCMISC= ${DARWIN_ARCH}
    6987 #
    70 -READLINE_INCLUDE=
    71 +#READLINE_INCLUDE=
    72  #READLINE_INCLUDE= -I/usr/gnu/include
    73 -#READLINE_INCLUDE= -I/usr/local/include
    74 +READLINE_INCLUDE= -I___PREFIX___/include
     88-LCC= MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET} gcc
     89+LCC= MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET} ___CC___
     90 CC= ${PURIFY} ${LCC} ${CCWERR}
     91 #
     92 # Darmin dynamic shared lib filenames
     93@@ -1199,7 +1202,7 @@
     94 # DARWIN_ARCH= -arch i386              # Intel binary
     95 # DARWIN_ARCH= -arch ppc               # PPC binary
     96 DARWIN_ARCH=                           # native binary
     97-MACOSX_DEPLOYMENT_TARGET=10.4
     98+MACOSX_DEPLOYMENT_TARGET=___MACOSX_DEPLOYMENT_TARGET___
     99 #
     100 endif
    75101 
    76  # If $PAGER is not set, use this program to display a help file
    77  #
Note: See TracChangeset for help on using the changeset viewer.