Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Dec 2014 17:21:37 +0000 (UTC)
From:      Chris Rees <crees@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r374955 - in head/net/libnatpmp: . files
Message-ID:  <201412191721.sBJHLbrC055926@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: crees
Date: Fri Dec 19 17:21:37 2014
New Revision: 374955
URL: https://svnweb.freebsd.org/changeset/ports/374955
QAT: https://qat.redports.org/buildarchive/r374955/

Log:
  - update
  - clarify LICENSE to be BSD3CLAUSE like net/miniupnpc
  - replace patch-Makefile with a simple MAKE_(ARGS|ENV) override
  - drop redundant -fPIC
  
  PR:		ports/194030
  Submitted by:	Jan Beich
  Approved by:	Hung-Yi Chen (maintainer)

Deleted:
  head/net/libnatpmp/files/
Modified:
  head/net/libnatpmp/Makefile
  head/net/libnatpmp/distinfo

Modified: head/net/libnatpmp/Makefile
==============================================================================
--- head/net/libnatpmp/Makefile	Fri Dec 19 17:17:22 2014	(r374954)
+++ head/net/libnatpmp/Makefile	Fri Dec 19 17:21:37 2014	(r374955)
@@ -2,7 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	libnatpmp
-PORTVERSION=	20120821
+PORTVERSION=	20140401
 CATEGORIES=	net
 MASTER_SITES=	http://miniupnp.free.fr/files/
 
@@ -14,7 +14,8 @@ LICENSE=	BSD3CLAUSE
 USES=		gmake
 USE_LDCONFIG=	yes
 
-MAKE_ENV+=	INSTALLPREFIX=${PREFIX}
+MAKE_ARGS+=	CC="${CC}"
+MAKE_ENV+=	INSTALLPREFIX=${STAGEDIR}${PREFIX}
 
 CFLAGS+=	-fPIC
 
@@ -24,6 +25,11 @@ PLIST_FILES=	bin/natpmpc \
 		lib/libnatpmp.so \
 		lib/libnatpmp.so.1
 
+post-patch:
+	@${REINPLACE_CMD} -e 's/^LIBSPEC //' \
+		-e '/declspec\.h/d' \
+		${WRKSRC}/natpmp.h
+
 post-install:
 	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/natpmpc \
 		${STAGEDIR}${PREFIX}/lib/libnatpmp.so.1

Modified: head/net/libnatpmp/distinfo
==============================================================================
--- head/net/libnatpmp/distinfo	Fri Dec 19 17:17:22 2014	(r374954)
+++ head/net/libnatpmp/distinfo	Fri Dec 19 17:21:37 2014	(r374955)
@@ -1,2 +1,2 @@
-SHA256 (libnatpmp-20120821.tar.gz) = 5b265b3ce5d6d05a33be43aab8f64b0f34a2cc0b01500e63fe167c7f9f44d2b8
-SIZE (libnatpmp-20120821.tar.gz) = 17832
+SHA256 (libnatpmp-20140401.tar.gz) = b2ce5e626a21c795cba2d118f26e54aaa89de29d4611c440fafc49a2a5bedabb
+SIZE (libnatpmp-20140401.tar.gz) = 23302



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