Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Sep 2018 23:07:59 +0000 (UTC)
From:      "Carlos J. Puga Medina" <cpm@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r479573 - head/math/coinmp
Message-ID:  <201809112307.w8BN7xxV034890@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201809112307.w8BN7xxV034890>