[151789] trunk/dports/sysutils/sunwait

ryandesign at macports.org ryandesign at macports.org
Sun Aug 21 20:31:05 PDT 2016


Revision: 151789
          https://trac.macports.org/changeset/151789
Author:   ryandesign at macports.org
Date:     2016-08-21 20:31:05 -0700 (Sun, 21 Aug 2016)
Log Message:
-----------
sunwait: use the right compiler and -arch flags and add universal variant

Modified Paths:
--------------
    trunk/dports/sysutils/sunwait/Portfile
    trunk/dports/sysutils/sunwait/files/patch-makefile.diff

Modified: trunk/dports/sysutils/sunwait/Portfile
===================================================================
--- trunk/dports/sysutils/sunwait/Portfile	2016-08-22 02:11:28 UTC (rev 151788)
+++ trunk/dports/sysutils/sunwait/Portfile	2016-08-22 03:31:05 UTC (rev 151789)
@@ -4,8 +4,9 @@
 PortSystem 1.0
 
 name                sunwait
+epoch               1
 version             0.8
-epoch               1
+revision            1
 set dlversion       [string range [subst [regsub -all {\.} "${version}" {-}]] 0 3]
 categories          sysutils
 license             GPL-3
@@ -39,6 +40,9 @@
 
 use_configure       no
 
+variant universal {}
+
+build.args          C="${configure.cxx} [get_canonical_archflags cxx]"
 build.target        sunwait
 
 destroot {

Modified: trunk/dports/sysutils/sunwait/files/patch-makefile.diff
===================================================================
--- trunk/dports/sysutils/sunwait/files/patch-makefile.diff	2016-08-22 02:11:28 UTC (rev 151788)
+++ trunk/dports/sysutils/sunwait/files/patch-makefile.diff	2016-08-22 03:31:05 UTC (rev 151789)
@@ -1,10 +1,15 @@
 --- makefile.orig	2015-06-01 08:25:41.000000000 -0500
-+++ makefile	2016-05-05 09:55:42.000000000 -0500
-@@ -8,7 +8,7 @@
- C=gcc
++++ makefile	2016-08-21 22:25:19.000000000 -0500
+@@ -5,10 +5,10 @@
+ #
+ 
+ 
+-C=gcc
++C=g++
  CFLAGS=-c -Wall 
- LDFLAGS= -lm -lstdc++
+-LDFLAGS= -lm -lstdc++
 -SOURCES=sunwait.cpp sunriset.cpp print.cpp sunwait.h sunriset.h print.h
++LDFLAGS= -lm
 +SOURCES=sunwait.cpp sunriset.cpp print.cpp
  OBJECTS=$(SOURCES:.cpp=.o)
  EXECUTABLE=sunwait
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160821/0370aa1a/attachment.html>


More information about the macports-changes mailing list