Skip to content

Commit

Permalink
octave-octproj: fix for proj4, take two
Browse files Browse the repository at this point in the history
  • Loading branch information
Schamschula committed Mar 27, 2018
1 parent 495152d commit 77ea2fb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 40 deletions.
6 changes: 2 additions & 4 deletions math/octave-octproj/Portfile
Expand Up @@ -4,7 +4,7 @@ PortSystem 1.0
PortGroup octave 1.0

octave.setup octproj 1.1.5
revision 7
revision 8
platforms darwin
license GPL-2+
maintainers {mps @Schamschula} openmaintainer
Expand All @@ -17,10 +17,8 @@ checksums rmd160 f47e7addc3ced4f2373a5ab0e726186af0aa6644 \

depends_lib-append port:proj4

patchfiles-append patch-flags.diff \
patch-proj_api.h.diff
patchfiles-append patch-flags.diff

post-patch {
reinplace "s|%PREFIX%|${prefix}|" ${worksrcpath}/src/Makefile
copy ${prefix}/lib/proj49/include/proj_api.h ${worksrcpath}/src/
}
7 changes: 4 additions & 3 deletions math/octave-octproj/files/patch-flags.diff
@@ -1,6 +1,6 @@
--- src/Makefile.orig 2015-06-16 06:23:41.000000000 -0700
+++ src/Makefile 2016-11-26 10:58:21.000000000 -0700
@@ -1,19 +1,19 @@
--- src/Makefile.orig 2015-06-16 08:23:41.000000000 -0500
+++ src/Makefile 2018-03-27 09:33:06.000000000 -0500
@@ -1,19 +1,20 @@
# -*- coding: utf-8 -*-
#Compiler
-MKOCTFILE=mkoctfile
Expand All @@ -25,6 +25,7 @@
#Export flags for compilers and linker
-export CFLAGS CXXFLAGS
+#export CFLAGS CXXFLAGS
+CPPFLAGS+=-I%PREFIX%/lib/proj49/include

.PHONY: all
all: compile
33 changes: 0 additions & 33 deletions math/octave-octproj/files/patch-proj_api.h.diff

This file was deleted.

0 comments on commit 77ea2fb

Please sign in to comment.