[153886] trunk/dports/gis
Ryan Schmidt
ryandesign at macports.org
Sat Oct 15 16:14:10 PDT 2016
> On Oct 14, 2016, at 7:44 PM, khindenburg at macports.org wrote:
>
> Revision
> 153886
> Author
> khindenburg at macports.org
> Date
> 2016-10-14 17:44:22 -0700 (Fri, 14 Oct 2016)
> Log Message
>
> routino: new port #49459
> Added Paths
>
> • trunk/dports/gis/routino/
> • trunk/dports/gis/routino/Portfile
> • trunk/dports/gis/routino/files/
> • trunk/dports/gis/routino/files/patch-Makefile_conf.diff
> • trunk/dports/gis/routino/files/patch-src_Makefile_dylib_extension.diff
> Diff
>
> Added: trunk/dports/gis/routino/Portfile (0 => 153886)
>
> --- trunk/dports/gis/routino/Portfile (rev 0)
> +++ trunk/dports/gis/routino/Portfile 2016-10-15 00:44:22 UTC (rev 153886)
> +use_configure no
> +
> +post-patch {
> + reinplace -W ${worksrcpath} s|prefix=/usr/local|prefix=${prefix}|g Makefile.conf
> + reinplace -W ${worksrcpath} s|docdir=\$(prefix)/doc/routino|docdir=\$(prefix)/share/doc/routino|g Makefile.conf
> +}
> +
> +build.args-append CC=${configure.cc} \
> + LD=${configure.cc}
In addition to specifying the compiler, you must specify the correct -arch flags, and should, if possible, add a functional universal variant.
> Added: trunk/dports/gis/routino/files/patch-Makefile_conf.diff (0 => 153886)
>
> --- trunk/dports/gis/routino/files/patch-Makefile_conf.diff (rev 0)
> +++ trunk/dports/gis/routino/files/patch-Makefile_conf.diff 2016-10-15 00:44:22 UTC (rev 153886)
>
> @@ -0,0 +1,20 @@
>
> +--- Makefile.conf.orig 2015-10-09 21:34:52.000000000 +0200
> ++++ Makefile.conf 2015-10-09 23:15:38.000000000 +0200
> +@@ -89,7 +89,7 @@
> +
> + # Extra flags for compiling libroutino shared library (visibility of symbols, shared)
> + CFLAGS_LIB=-fvisibility=hidden
> +-LDFLAGS_LIB=-shared
> ++LDFLAGS_LIB=-dynamiclib -install_name /opt/local/lib/$@
/opt/local must not be hardcoded. MacPorts might be installed in another prefix.
More information about the macports-dev
mailing list