pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/audio/espeak espeak: honor LDFLAGS. Fixes RELRO build.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ee080cec4374
branches:  trunk
changeset: 376368:ee080cec4374
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Wed Feb 28 21:49:55 2018 +0000

description:
espeak: honor LDFLAGS. Fixes RELRO build.

Bump PKGREVISION.

diffstat:

 audio/espeak/Makefile         |   4 ++--
 audio/espeak/distinfo         |   4 ++--
 audio/espeak/patches/patch-ac |  23 +++++++++++++++++++----
 3 files changed, 23 insertions(+), 8 deletions(-)

diffs (71 lines):

diff -r c0f78ca1ef1b -r ee080cec4374 audio/espeak/Makefile
--- a/audio/espeak/Makefile     Wed Feb 28 21:47:00 2018 +0000
+++ b/audio/espeak/Makefile     Wed Feb 28 21:49:55 2018 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.10 2016/04/20 12:10:25 nros Exp $
-#
+# $NetBSD: Makefile,v 1.11 2018/02/28 21:49:55 wiz Exp $
 
 DISTNAME=      espeak-1.31-source
 PKGNAME=       ${DISTNAME:S/-source//}
+PKGREVISION=   1
 CATEGORIES=    audio
 MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=espeak/}
 EXTRACT_SUFX=  .zip
diff -r c0f78ca1ef1b -r ee080cec4374 audio/espeak/distinfo
--- a/audio/espeak/distinfo     Wed Feb 28 21:47:00 2018 +0000
+++ b/audio/espeak/distinfo     Wed Feb 28 21:49:55 2018 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.4 2015/11/03 01:12:28 agc Exp $
+$NetBSD: distinfo,v 1.5 2018/02/28 21:49:55 wiz Exp $
 
 SHA1 (espeak-1.31-source.zip) = e33291b29153d0fc179da11ac4a61cc85fba679a
 RMD160 (espeak-1.31-source.zip) = a26596f25d8897848238d81fe5e5d179d47f01a6
@@ -6,4 +6,4 @@
 Size (espeak-1.31-source.zip) = 1204202 bytes
 SHA1 (patch-aa) = a01dccb651c0160a7af5af14f3292578c8396ae0
 SHA1 (patch-ab) = 37e434f3c3e2fb722f927da4ca83a2b814c28879
-SHA1 (patch-ac) = e94b0597b0c104daaa24b6421b5bcf69147b1046
+SHA1 (patch-ac) = 33043b93dde7beea7879d1e9b7c751aef0728d44
diff -r c0f78ca1ef1b -r ee080cec4374 audio/espeak/patches/patch-ac
--- a/audio/espeak/patches/patch-ac     Wed Feb 28 21:47:00 2018 +0000
+++ b/audio/espeak/patches/patch-ac     Wed Feb 28 21:49:55 2018 +0000
@@ -1,6 +1,6 @@
-$NetBSD: patch-ac,v 1.3 2008/02/28 20:16:55 drochner Exp $
+$NetBSD: patch-ac,v 1.4 2018/02/28 21:49:55 wiz Exp $
 
---- Makefile.orig      2008-01-19 22:50:27.000000000 +0100
+--- Makefile.orig      2008-01-19 21:50:27.000000000 +0000
 +++ Makefile
 @@ -1,7 +1,7 @@
  BINDIR=/usr/bin
@@ -34,7 +34,18 @@
  
  CXXFLAGS=-O2
  
-@@ -58,7 +59,7 @@ $(BIN2_NAME): $(OBJS3) $(LIB_NAME)
+@@ -49,19 +50,19 @@ all: $(BIN_NAME) $(LIB_NAME) $(STATIC_LI
+       $(CXX) $(CXXFLAGS) -D PATH_ESPEAK_DATA=\"$(DATADIR)\" -Wall -pedantic -I. -c -fno-exceptions $<
+ 
+ $(BIN_NAME): $(OBJS1)
+-      $(CXX) -o $@ $(OBJS1) $(LIBS1)
++      $(CXX) -o $@ $(OBJS1) $(LIBS1) $(LDFLAGS)
+ 
+ $(BIN2_NAME): $(OBJS3) $(LIB_NAME)
+-      $(CXX) -o $@ $(OBJS3) $(LIBS3)
++      $(CXX) -o $@ $(OBJS3) $(LIBS3) $(LDFLAGS)
+ 
+ 
  
  x_%.o: %.cpp
        $(CXX) $(CXXFLAGS) -Wall -fpic -fvisibility=hidden -pedantic \
@@ -42,4 +53,8 @@
 +      -I. -DLIBRARY -DPATH_ESPEAK_DATA=\"$(DATADIR)\" -c -fno-exceptions $<  -o x_$*.o
  
  $(LIB_NAME): $(OBJS2)
-       $(CXX) -shared -Wl,-soname,$(LIB_NAME).$(LIB_VERSION) -o $@ $(OBJS2) $(LIBS2)
+-      $(CXX) -shared -Wl,-soname,$(LIB_NAME).$(LIB_VERSION) -o $@ $(OBJS2) $(LIBS2)
++      $(CXX) -shared -Wl,-soname,$(LIB_NAME).$(LIB_VERSION) -o $@ $(OBJS2) $(LIBS2) $(LDFLAGS)
+ 
+ $(STATIC_LIB_NAME): $(OBJS2)
+       $(AR) cqs $(STATIC_LIB_NAME) $(OBJS2)



Home | Main Index | Thread Index | Old Index