pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/py-newt py-newt: use CC instead of (undefined) CPP



details:   https://anonhg.NetBSD.org/pkgsrc/rev/452377b8a281
branches:  trunk
changeset: 372548:452377b8a281
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Thu Jan 27 08:10:07 2022 +0000

description:
py-newt: use CC instead of (undefined) CPP

Fixes build

diffstat:

 devel/py-newt/distinfo                  |   4 ++--
 devel/py-newt/patches/patch-Makefile.in |  24 +++++++++++++++++-------
 2 files changed, 19 insertions(+), 9 deletions(-)

diffs (86 lines):

diff -r 9cb441431ccc -r 452377b8a281 devel/py-newt/distinfo
--- a/devel/py-newt/distinfo    Thu Jan 27 08:06:26 2022 +0000
+++ b/devel/py-newt/distinfo    Thu Jan 27 08:10:07 2022 +0000
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.5 2021/10/26 10:18:42 nia Exp $
+$NetBSD: distinfo,v 1.6 2022/01/27 08:10:07 wiz Exp $
 
 BLAKE2s (newt-0.52.16.tar.gz) = ef3dd1dab5ec4695901d21493661e5ff338a1267fdcdfb9b1eb479b324823e23
 SHA512 (newt-0.52.16.tar.gz) = 38cf5aa6660a3ee0409ed0767c02d777a4a2c28a000a359bb735da5abf8ee38f375ef333d10865a1eb3828497b6c58d2f3f6011c7b7e7c2360612b985dcf3d25
 Size (newt-0.52.16.tar.gz) = 183487 bytes
-SHA1 (patch-Makefile.in) = cae82773fcb94dc9b9aa4349b52308e3136843f2
+SHA1 (patch-Makefile.in) = 6c029323ba411aff1f137149ee21cffb7decdb4a
 SHA1 (patch-configure.ac) = 8c685e25e89503cb5e62362c8b8132931d4c6184
 SHA1 (patch-po_Makefile) = dfa6352d1f10246bd7d2f9cd4f256394dc1a674a
diff -r 9cb441431ccc -r 452377b8a281 devel/py-newt/patches/patch-Makefile.in
--- a/devel/py-newt/patches/patch-Makefile.in   Thu Jan 27 08:06:26 2022 +0000
+++ b/devel/py-newt/patches/patch-Makefile.in   Thu Jan 27 08:10:07 2022 +0000
@@ -1,11 +1,19 @@
-$NetBSD: patch-Makefile.in,v 1.1 2014/01/01 06:55:23 ryoon Exp $
+$NetBSD: patch-Makefile.in,v 1.2 2022/01/27 08:10:07 wiz Exp $
 
 * Libtoolized
 * Use configure.ac's Python version
 
 --- Makefile.in.orig   2013-08-06 15:46:42.000000000 +0000
 +++ Makefile.in
-@@ -16,7 +16,7 @@ SOEXT = so
+@@ -2,7 +2,6 @@ LIBS = -lslang @LIBS@
+ LIBTCL = @TCL_LIB_FLAG@
+ 
+ CC = @CC@
+-CPP = @CPP@
+ CFLAGS = @CFLAGS@
+ LDFLAGS = @LDFLAGS@
+ CPPFLAGS = -D_GNU_SOURCE -I/usr/include/slang @CPPFLAGS@ 
+@@ -16,7 +15,7 @@ SOEXT = so
  PYTHONVERS = @PYTHONVERS@
  WHIPTCLLIB = @WHIPTCLLIB@
  ifneq ($(WHIPTCLLIB),)
@@ -14,7 +22,7 @@
  else
  WHIPTCLSO =
  endif
-@@ -25,18 +25,12 @@ PROGS = test whiptail $(WHIPTCLSO) testg
+@@ -25,18 +24,12 @@ PROGS = test whiptail $(WHIPTCLSO) testg
  TESTOBJS = test.o testgrid.o testtree.o showchars.o showkey.o
  NDIALOGOBJS = whiptail.o dialogboxes.o
  WHIPTCLOBJS = shared/whiptcl.o shared/dialogboxes.o
@@ -35,7 +43,7 @@
  
  SHCFLAGS = -fPIC
  
-@@ -56,6 +50,10 @@ instroot ?= $(DESTDIR)
+@@ -56,6 +49,10 @@ instroot ?= $(DESTDIR)
  
  SOURCES = $(subst .o,.c,$(TESTOBJS) $(NDIALOGOBJS) $(LIBOBJS))
  
@@ -46,7 +54,7 @@
  SHAREDDIR = shared
  SHAREDOBJS = $(patsubst %,$(SHAREDDIR)/%, $(LIBOBJS))
  
-@@ -65,59 +63,61 @@ else
+@@ -65,76 +62,76 @@ else
  TARGET=depend $(PROGS)
  endif
  
@@ -129,7 +137,9 @@
                $(SHAREDDIR)/*.o *.$(SOEXT)*
  
  depend:
-@@ -126,15 +126,13 @@ depend:
+-      $(CPP) $(CFLAGS) $(CPPFLAGS) -M $(SOURCES) > .depend
++      $(CC) $(CFLAGS) $(CPPFLAGS) -M $(SOURCES) > .depend
+ 
  $(SHAREDDIR):
        mkdir -p $(SHAREDDIR)
  
@@ -150,7 +160,7 @@
  
  install: $(LIBNEWT) install-sh whiptail
        [ -d $(instroot)/$(bindir) ] || install -m 755 -d $(instroot)/$(bindir)
-@@ -143,22 +141,19 @@ install: $(LIBNEWT) install-sh whiptail
+@@ -143,22 +140,19 @@ install: $(LIBNEWT) install-sh whiptail
        [ -d $(instroot)/$(man1dir) ] || install -m 755 -d $(instroot)/$(man1dir)
        [ -d $(instroot)/$(pkgconfigdir) ] || install -m 755 -d $(instroot)/$(pkgconfigdir)
        install -m 644 newt.h $(instroot)/$(includedir)



Home | Main Index | Thread Index | Old Index