svn commit: r469968 - in head/lang/ptoc: . files
Sergey A. Osokin
osa at FreeBSD.org
Mon May 14 21:03:48 UTC 2018
Author: osa
Date: Mon May 14 21:03:47 2018
New Revision: 469968
URL: https://svnweb.freebsd.org/changeset/ports/469968
Log:
Fix build with clang 6.0.
Bump PORTREVISION.
Modified:
head/lang/ptoc/Makefile
head/lang/ptoc/files/patch-makefile.bsd
Modified: head/lang/ptoc/Makefile
==============================================================================
--- head/lang/ptoc/Makefile Mon May 14 21:01:51 2018 (r469967)
+++ head/lang/ptoc/Makefile Mon May 14 21:03:47 2018 (r469968)
@@ -3,6 +3,7 @@
PORTNAME= ptoc
PORTVERSION= 3.58
+PORTREVISION= 1
CATEGORIES= lang
MASTER_SITES= http://www.garret.ru/
Modified: head/lang/ptoc/files/patch-makefile.bsd
==============================================================================
--- head/lang/ptoc/files/patch-makefile.bsd Mon May 14 21:01:51 2018 (r469967)
+++ head/lang/ptoc/files/patch-makefile.bsd Mon May 14 21:03:47 2018 (r469968)
@@ -1,5 +1,41 @@
---- makefile.bsd.orig Sat Nov 7 10:10:50 1998
-+++ makefile.bsd Sat Oct 21 05:54:55 2000
+--- makefile.bsd.orig 1998-11-06 21:10:50.000000000 -0500
++++ makefile.bsd 2018-05-14 12:46:15.288108000 -0400
+@@ -10,21 +10,21 @@
+ #
+ # C/C++ compiler
+ #
+-CC?= gcc
+-CXX?= g++
++CC?= cc
++CXX?= c++
+
+ #
+ # C/C++ flags
+ #
+-CFLAGS?= -O5 -g -Wall -c
+-CXXFLAGS?= -O5 -g -Wall -c
++CFLAGS?= -Wall -c
++CXXFLAGS= -Wall -c -std=c++98
+ #CFLAGS= -fno-exceptions -O5 -g -Wall -c
+ #CXXFLAGS= -fno-exceptions -O5 -g -Wall -c
+
+ #
+ # X Window System directory
+ #
+-X11BASE?= /usr/X11R6
++X11BASE?= /usr/local
+
+ #
+ # Local packages directory
+@@ -94,7 +94,7 @@
+ $(CXX) $(CXXFLAGS) $(DEFINES) $(INCLUDES) -o $@ -c $<
+
+ .c.o :
+- $(CC) $(CXXFLAGS) $(DEFINES) $(INCLUDES) -o $@ -c $<
++ $(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -o $@ -c $<
+
+ #
+ # Custom targets.
@@ -131,7 +131,7 @@
$(LD) $(LDFLAGS) -o $@ $(OBJS)
More information about the svn-ports-head
mailing list