From owner-svn-ports-all@freebsd.org  Tue Sep 11 23:08:00 2018
Return-Path: <owner-svn-ports-all@freebsd.org>
Delivered-To: svn-ports-all@mailman.ysv.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1])
 by mailman.ysv.freebsd.org (Postfix) with ESMTP id 039FE109FEAF;
 Tue, 11 Sep 2018 23:08:00 +0000 (UTC) (envelope-from cpm@FreeBSD.org)
Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org
 [IPv6:2610:1c1:1:606c::19:3])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (Client CN "mxrelay.nyi.freebsd.org",
 Issuer "Let's Encrypt Authority X3" (verified OK))
 by mx1.freebsd.org (Postfix) with ESMTPS id ABE648E3CE;
 Tue, 11 Sep 2018 23:07:59 +0000 (UTC) (envelope-from cpm@FreeBSD.org)
Received: from repo.freebsd.org (repo.freebsd.org
 [IPv6:2610:1c1:1:6068::e6a:0])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (Client did not present a certificate)
 by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id A22411E571;
 Tue, 11 Sep 2018 23:07:59 +0000 (UTC) (envelope-from cpm@FreeBSD.org)
Received: from repo.freebsd.org ([127.0.1.37])
 by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w8BN7xBD034891;
 Tue, 11 Sep 2018 23:07:59 GMT (envelope-from cpm@FreeBSD.org)
Received: (from cpm@localhost)
 by repo.freebsd.org (8.15.2/8.15.2/Submit) id w8BN7xxV034890;
 Tue, 11 Sep 2018 23:07:59 GMT (envelope-from cpm@FreeBSD.org)
Message-Id: <201809112307.w8BN7xxV034890@repo.freebsd.org>
X-Authentication-Warning: repo.freebsd.org: cpm set sender to cpm@FreeBSD.org
 using -f
From: "Carlos J. Puga Medina" <cpm@FreeBSD.org>
Date: Tue, 11 Sep 2018 23:07:59 +0000 (UTC)
To: ports-committers@freebsd.org, svn-ports-all@freebsd.org,
 svn-ports-head@freebsd.org
Subject: svn commit: r479573 - head/math/coinmp
X-SVN-Group: ports-head
X-SVN-Commit-Author: cpm
X-SVN-Commit-Paths: head/math/coinmp
X-SVN-Commit-Revision: 479573
X-SVN-Commit-Repository: ports
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-BeenThere: svn-ports-all@freebsd.org
X-Mailman-Version: 2.1.27
Precedence: list
List-Id: SVN commit messages for the ports tree <svn-ports-all.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/svn-ports-all>,
 <mailto:svn-ports-all-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/svn-ports-all/>
List-Post: <mailto:svn-ports-all@freebsd.org>
List-Help: <mailto:svn-ports-all-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/svn-ports-all>,
 <mailto:svn-ports-all-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Tue, 11 Sep 2018 23:08:00 -0000

Author: cpm
Date: Tue Sep 11 23:07:59 2018
New Revision: 479573
URL: https://svnweb.freebsd.org/changeset/ports/479573

Log:
  - Use INSTALL_TARGET=install-strip instead of manual stripping
  - Fix 'present but cannot be compiled' warnings
  
  PR:		231262
  Submitted by:	avos

Modified:
  head/math/coinmp/Makefile

Modified: head/math/coinmp/Makefile
==============================================================================
--- head/math/coinmp/Makefile	Tue Sep 11 22:42:26 2018	(r479572)
+++ head/math/coinmp/Makefile	Tue Sep 11 23:07:59 2018	(r479573)
@@ -44,9 +44,7 @@ GLPK_CONFIGURE_OFF=	--disable-glpk-libcheck
 
 PARALLEL_CONFIGURE_ON=	--enable-cbc-parallel
 
-STRIP_FILES=	libCoinUtils libOsi libOsiClp libOsiCommonTests libClp libClpSolver \
-		libCgl libCbc libCbcSolver libOsiCbc libCoinMP
-
+INSTALL_TARGET=	install-strip
 TEST_TARGET=	unitTest
 TEST_WRKSRC=	${WRKSRC}/${PORTNAME}
 
@@ -56,13 +54,10 @@ post-patch::
 		-e 's|addlibs_DATA = examples/Makefile examples/example.c||g' \
 		-e 's|DocInstallDir = $$(datadir)/coin/doc/$$(PACKAGE_NAME)|DocInstallDir = $$(datadir)/doc/CoinMP/$$(PACKAGE_NAME)|' \
 		-e 's|	$$(MAKE) $$(AM_MAKEFLAGS) install-data-hook||'
+	@${FIND} ${WRKSRC} -name configure | ${XARGS} ${REINPLACE_CMD} \
+		-e 's|void exit (int)|void reserved (int)|g'
 	${REINPLACE_CMD} -e 's|datacoin_DATA = $$(EXAMPLE_FILES)|datacoin_DATA = |' \
 		-e 's|datacoindir = $$(datadir)/coin/Data/Sample|datacoindir = |' ${WRKSRC}/Data/Sample/Makefile.in
 	${REINPLACE_CMD} -e 's|addlibsdir = $$(DESTDIR)$$(datadir)/coin/doc/CoinMP|addlibsdir = |' ${WRKSRC}/CoinMP/Makefile.in
-
-post-install:
-.for filename in ${STRIP_FILES}
-	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/${filename}.so.*
-.endfor
 
 .include <bsd.port.mk>