pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/news/multimail multimail: add patch properly



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2810cd4505a1
branches:  trunk
changeset: 452685:2810cd4505a1
user:      nia <nia%pkgsrc.org@localhost>
date:      Fri May 14 12:15:02 2021 +0000

description:
multimail: add patch properly

diffstat:

 news/multimail/Makefile               |   8 +-------
 news/multimail/patches/patch-Makefile |  24 ++++++++++++++++++++++++
 2 files changed, 25 insertions(+), 7 deletions(-)

diffs (50 lines):

diff -r 564d3de52dd1 -r 2810cd4505a1 news/multimail/Makefile
--- a/news/multimail/Makefile   Fri May 14 12:11:55 2021 +0000
+++ b/news/multimail/Makefile   Fri May 14 12:15:02 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2020/08/06 12:50:28 fcambus Exp $
+# $NetBSD: Makefile,v 1.2 2021/05/14 12:15:02 nia Exp $
 
 DISTNAME=      mmail-0.52
 CATEGORIES=    news
@@ -15,12 +15,6 @@
 USE_LANGUAGES= c++
 USE_TOOLS+=    gmake
 
-SUBST_CLASSES+=                makefile
-SUBST_STAGE.makefile=  pre-configure
-SUBST_MESSAGE.makefile=        Adjust Makefile
-SUBST_FILES.makefile=  Makefile
-SUBST_SED.makefile+=   -e '/^  OPTS/ s,-O2,$${CXXFLAGS},'
-
 INSTALLATION_DIRS+=    bin ${PKGMANDIR}/man1
 
 do-install:
diff -r 564d3de52dd1 -r 2810cd4505a1 news/multimail/patches/patch-Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/news/multimail/patches/patch-Makefile     Fri May 14 12:15:02 2021 +0000
@@ -0,0 +1,24 @@
+$NetBSD: patch-Makefile,v 1.1 2021/05/14 12:15:02 nia Exp $
+
+Honor CXXFLAGS, LDFLAGS.
+
+--- Makefile.orig      2019-02-22 01:00:59.000000000 +0000
++++ Makefile
+@@ -11,7 +11,7 @@ isrc = interfac
+ ifeq ($(DEBUG),Y)
+       OPTS = -g -Wall -pedantic
+ else
+-      OPTS = -O2 -Wall -pedantic
++      OPTS = ${CXXFLAGS} -Wall -pedantic
+       POST = strip mm$(E)
+ endif
+ 
+@@ -94,7 +94,7 @@ $(IOBJS) : %.o: $(isrc)/%.cc
+       $(CXX) $(OPTS) -I$(CURS_DIR) -c $<
+ 
+ mm$(E):       $(MOBJS) $(IOBJS)
+-      $(CXX) -o mm$(E) $(MOBJS) $(IOBJS) $(LIBS)
++      $(CXX) $(LDFLAGS) -o mm$(E) $(MOBJS) $(IOBJS) $(LIBS)
+       $(POST)
+ 
+ dep:



Home | Main Index | Thread Index | Old Index