Skip to content

Commit

Permalink
calc: update to 2.13.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
pmetzger committed May 2, 2021
1 parent 76360a8 commit d16c24b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 90 deletions.
15 changes: 6 additions & 9 deletions math/calc/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
PortSystem 1.0

PortGroup github 1.0
github.setup lcn2 calc 2.13.0.0 v
github.setup lcn2 calc 2.13.0.1 v
revision 0
categories math
platforms darwin
Expand All @@ -28,22 +28,19 @@ homepage http://www.isthe.com/chongo/tech/comp/calc/
github.tarball_from releases
use_bzip2 yes

checksums rmd160 687f4d47e1df28e937caa53578f578673e5d9dcb \
sha256 566e71646e1cba427f52ee34b91e402a3e28ab73befb1306505f3cae09700595 \
size 975166
checksums rmd160 186740b6ac2c5d673fd7ed14d590783adcfe7c74 \
sha256 6ae538f57785c5701a70112ccf007ab5553abd332ae2deaadaf564f401c734ad \
size 987542

depends_lib port:ncurses port:readline

patchfiles patch-Makefile.diff
patchfiles patch-Makefile.local.diff

post-patch {
reinplace "s|___PREFIX___|${prefix}|" ${worksrcpath}/Makefile
# Not currently needed, but may be needed again.
#reinplace "s|___SDK_PREFIX___|${configure.sdkroot}|" ${worksrcpath}/Makefile
reinplace "s|___PREFIX___|${prefix}|" ${worksrcpath}/Makefile.local
}

use_configure no

use_parallel_build no

variant universal {}
Expand Down
81 changes: 0 additions & 81 deletions math/calc/files/patch-Makefile.diff

This file was deleted.

9 changes: 9 additions & 0 deletions math/calc/files/patch-Makefile.local.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
--- Makefile.local.orig
+++ Makefile.local
@@ -1,1 +1,6 @@
# Add below to override Makefile values (using :=) as in: HAVE_STRING_H:= YES
+PREFIX=___PREFIX___
+CALC_INCDIR:= ${PREFIX}/include/calc
+USE_READLINE:= -DUSE_READLINE
+READLINE_LIB:= -L${PREFIX}/lib -lreadline
+READLINE_EXTRAS:= -lhistory -lncurses

0 comments on commit d16c24b

Please sign in to comment.