pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/misc/sunwait Don't build header files.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1ee86e1bcf71
branches:  trunk
changeset: 419566:1ee86e1bcf71
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Sat Dec 21 23:44:45 2019 +0000

description:
Don't build header files.

diffstat:

 misc/sunwait/distinfo               |   4 ++--
 misc/sunwait/patches/patch-Makefile |  16 ++++++++--------
 2 files changed, 10 insertions(+), 10 deletions(-)

diffs (61 lines):

diff -r 3d07a3385e06 -r 1ee86e1bcf71 misc/sunwait/distinfo
--- a/misc/sunwait/distinfo     Sat Dec 21 23:43:59 2019 +0000
+++ b/misc/sunwait/distinfo     Sat Dec 21 23:44:45 2019 +0000
@@ -1,9 +1,9 @@
-$NetBSD: distinfo,v 1.1 2019/01/16 14:43:22 martin Exp $
+$NetBSD: distinfo,v 1.2 2019/12/21 23:44:45 joerg Exp $
 
 SHA1 (sunwait-0.8.tar.gz) = eed1453e288d03d200d4f74634324a343434f426
 RMD160 (sunwait-0.8.tar.gz) = ffad86c063eac4952141016fde056056d44963b4
 SHA512 (sunwait-0.8.tar.gz) = 974aec925e08d42f6b9d617cd033ab21af314b04a0bab100f9b473e038df7eb65a86de2240ef2d5308af5385c929607d591c6f7b738925622e38040af6368166
 Size (sunwait-0.8.tar.gz) = 20302 bytes
-SHA1 (patch-Makefile) = 63276adb2587a251d9bb896ec82cd5ba6b3d6c07
+SHA1 (patch-Makefile) = a3ba723c2868ce7628f5bc4b93633a3abacd5c56
 SHA1 (patch-sunriset.cpp) = 759aa1f2c0301f8fab3a264167d25a077ed205ee
 SHA1 (patch-sunwait.cpp) = cf5b2251a4b0de5e95cdbd06a432824b623df42b
diff -r 3d07a3385e06 -r 1ee86e1bcf71 misc/sunwait/patches/patch-Makefile
--- a/misc/sunwait/patches/patch-Makefile       Sat Dec 21 23:43:59 2019 +0000
+++ b/misc/sunwait/patches/patch-Makefile       Sat Dec 21 23:44:45 2019 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-Makefile,v 1.1 2019/01/16 14:43:22 martin Exp $
+$NetBSD: patch-Makefile,v 1.2 2019/12/21 23:44:45 joerg Exp $
 
 - Use CC instead of C to specify the C compiler and do not hardcode gcc
 - Honors user's {C,LD}FLAGS
@@ -6,17 +6,17 @@
 
 --- Makefile.orig      2015-09-20 14:07:55.000000000 +0000
 +++ Makefile
-@@ -5,23 +5,29 @@
+@@ -5,23 +5,28 @@
  #
  
  
 -C=gcc
 -CFLAGS=-c -Wall 
 -LDFLAGS= -lm -lstdc++
-+CC=c++
-+CFLAGS+=-c -Wall -D__linux__
-+LDFLAGS+= -lm -lstdc++
- SOURCES=sunwait.cpp sunriset.cpp print.cpp sunwait.h sunriset.h print.h
++CFLAGS+=-c -Wall
++LDFLAGS+= -lm
+-SOURCES=sunwait.cpp sunriset.cpp print.cpp sunwait.h sunriset.h print.h
++SOURCES=sunwait.cpp sunriset.cpp print.cpp
  OBJECTS=$(SOURCES:.cpp=.o)
  EXECUTABLE=sunwait
  
@@ -29,11 +29,11 @@
        
  $(EXECUTABLE): $(OBJECTS)
 -      $(C) $(OBJECTS) -o $@ $(LDFLAGS)
-+      $(CC) $(OBJECTS) -o $@ $(LDFLAGS)
++      $(CXX) $(OBJECTS) -o $@ $(LDFLAGS)
  
  .cpp.o:
 -      $(C) $(CFLAGS) $< -o $@
-+      $(CC) $(CFLAGS) $< -o $@
++      $(CXX) -c $(CFLAGS) $< -o $@
  
  clean:
        rm -f *.o sunwait



Home | Main Index | Thread Index | Old Index