pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/graphics/s10sh Add support for CFLAGS and LDFLAGS to g...
details: https://anonhg.NetBSD.org/pkgsrc/rev/7d1d85e7e829
branches: trunk
changeset: 375369:7d1d85e7e829
user: khorben <khorben%pkgsrc.org@localhost>
date: Sat Feb 10 00:33:26 2018 +0000
description:
Add support for CFLAGS and LDFLAGS to graphics/s10sh
This notably fixes RELRO for this package.
Bump PKGREVISION as this changes the resulting binary.
diffstat:
graphics/s10sh/Makefile | 6 ++++--
graphics/s10sh/distinfo | 4 ++--
graphics/s10sh/patches/patch-ab | 16 ++++++++++------
3 files changed, 16 insertions(+), 10 deletions(-)
diffs (74 lines):
diff -r f7f5c09d6ad7 -r 7d1d85e7e829 graphics/s10sh/Makefile
--- a/graphics/s10sh/Makefile Fri Feb 09 23:54:53 2018 +0000
+++ b/graphics/s10sh/Makefile Sat Feb 10 00:33:26 2018 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.16 2018/01/14 14:58:40 rillig Exp $
+# $NetBSD: Makefile,v 1.17 2018/02/10 00:33:26 khorben Exp $
#
DISTNAME= s10sh-0.2.0
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= graphics
MASTER_SITES= http://www.kyuzz.org/antirez/s10sh-src/
@@ -12,6 +12,8 @@
HAS_CONFIGURE= yes
CONFIGURE_ENV+= LOCALBASE=${LOCALBASE}
+MAKE_FLAGS+= CFLAGS=${CFLAGS:Q}
+MAKE_FLAGS+= LDFLAGS=${LDFLAGS:Q}
INSTALLATION_DIRS= bin
diff -r f7f5c09d6ad7 -r 7d1d85e7e829 graphics/s10sh/distinfo
--- a/graphics/s10sh/distinfo Fri Feb 09 23:54:53 2018 +0000
+++ b/graphics/s10sh/distinfo Sat Feb 10 00:33:26 2018 +0000
@@ -1,11 +1,11 @@
-$NetBSD: distinfo,v 1.11 2015/11/09 05:26:40 dholland Exp $
+$NetBSD: distinfo,v 1.12 2018/02/10 00:33:26 khorben Exp $
SHA1 (s10sh-0.2.0.tar.gz) = a8ada7c84ff64be98a1195612d48e2042f293eba
RMD160 (s10sh-0.2.0.tar.gz) = 2b0ef13958bde03b2e9056bc023e3dd0c84747b4
SHA512 (s10sh-0.2.0.tar.gz) = bd0c93b2e0c775d20b969344c8438ad86dcf3d21efd83b59e1dab2ce30b28b46e8082a24f8cecb7c4735f78e15fe3d6b2e7f597d61ef8e4c36961b4691ff9355
Size (s10sh-0.2.0.tar.gz) = 172203 bytes
SHA1 (patch-aa) = 1708337ee44567e66e227903e0ae15101670ed31
-SHA1 (patch-ab) = 83e20d2bbda9de83a3db5a5990f6cc7f1fb1a18c
+SHA1 (patch-ab) = 8ec917430104471117405dafd81415a342c93509
SHA1 (patch-ac) = c4163858852f2d2153f4740989b212102d8436cf
SHA1 (patch-ad) = 6e4164e2040508253075d5f482a527de9ff33d61
SHA1 (patch-ae) = f22ee8feef8a8d99c91ecbdfc5dfd7e1751788b9
diff -r f7f5c09d6ad7 -r 7d1d85e7e829 graphics/s10sh/patches/patch-ab
--- a/graphics/s10sh/patches/patch-ab Fri Feb 09 23:54:53 2018 +0000
+++ b/graphics/s10sh/patches/patch-ab Sat Feb 10 00:33:26 2018 +0000
@@ -1,12 +1,16 @@
-$NetBSD: patch-ab,v 1.1.1.1 2001/03/28 16:52:42 drochner Exp $
+$NetBSD: patch-ab,v 1.2 2018/02/10 00:33:27 khorben Exp $
---- Makefile.in.orig Tue Mar 13 14:46:18 2001
-+++ Makefile.in Wed Mar 28 18:12:35 2001
-@@ -4,12 +4,13 @@
+--- Makefile.in.orig 2001-03-13 13:46:18.000000000 +0000
++++ Makefile.in
+@@ -3,13 +3,16 @@
+ OPTIONS=@HAVE_READLINE@ @HAVE_USB_SUPPORT@
LIBS=@LIBREADLINE@ @LIBTERMCAP@
CC=gcc
- CCOPT=-O2 -Wall -g @LIBUSBHEADER@
+-CCOPT=-O2 -Wall -g @LIBUSBHEADER@
-OBJECTS=main.o crc.o usb.o serial.o common.o bar.o @LIBUSB@
++CFLAGS=-O2
++CCOPT=$(CFLAGS) -Wall -g @LIBUSBHEADER@
++LDFLAGS=
+OBJECTS=main.o crc.o usb.o serial.o common.o bar.o
+LOBJECTS= $(OBJECTS) @LIBUSB@
@@ -14,7 +18,7 @@
s10sh: $(OBJECTS)
- $(CC) $(CCOPT) -o s10sh $(OBJECTS) $(LIBS)
-+ $(CC) $(CCOPT) -o s10sh $(LOBJECTS) $(LIBS)
++ $(CC) $(CCOPT) -o s10sh $(LDFLAGS) $(LOBJECTS) $(LIBS)
.c.o:
$(CC) $(CCOPT) -c $< $(OPTIONS)
Home |
Main Index |
Thread Index |
Old Index