Bug 182235 - [MAINTAINER] net/libnatpmp: fix compatibility for fbsd 10
Summary: [MAINTAINER] net/libnatpmp: fix compatibility for fbsd 10
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: William Grzybowski
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-19 20:30 UTC by Hung-Yi Chen
Modified: 2013-09-19 22:50 UTC (History)
0 users

See Also:


Attachments
net_libnatpmp.diff (1.34 KB, patch)
2013-09-19 20:30 UTC, Hung-Yi Chen
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Hung-Yi Chen 2013-09-19 20:30:03 UTC
	Fix compatibility for FreeBSD 10.0.
        Use new style header.
Comment 1 William Grzybowski freebsd_committer freebsd_triage 2013-09-19 20:49:37 UTC
Responsible Changed
From-To: freebsd-ports-bugs->wg

I'll take it.
Comment 2 dfilter service freebsd_committer freebsd_triage 2013-09-19 22:42:32 UTC
Author: wg
Date: Thu Sep 19 21:42:24 2013
New Revision: 327649
URL: http://svnweb.freebsd.org/changeset/ports/327649

Log:
  net/libnatpmp: fix build without gcc
  
  - Fix build without gcc [1]
  - Trim Makefile header [1]
  - USES gmake
  - Remove leading article from COMMENT
  - Use single space for WWW
  - Add LICENSE (BSD)
  
  PR:		ports/182235 [1]
  Submitted by:	Hung-Yi Chen <gaod hychen.org> (maintainer)

Added:
  head/net/libnatpmp/files/
  head/net/libnatpmp/files/patch-Makefile   (contents, props changed)
Modified:
  head/net/libnatpmp/Makefile
  head/net/libnatpmp/pkg-descr

Modified: head/net/libnatpmp/Makefile
==============================================================================
--- head/net/libnatpmp/Makefile	Thu Sep 19 20:04:51 2013	(r327648)
+++ head/net/libnatpmp/Makefile	Thu Sep 19 21:42:24 2013	(r327649)
@@ -1,9 +1,5 @@
-# New ports collection makefile for:	libnatpmp
-# Date created:		11 Aug 2009
-# Whom:			Hung-Yi Chen <gaod@hychen.org>
-#
+# Created by: Hung-Yi Chen <gaod@hychen.org>
 # $FreeBSD$
-#
 
 PORTNAME=	libnatpmp
 PORTVERSION=	20120821
@@ -11,9 +7,11 @@ CATEGORIES=	net
 MASTER_SITES=	http://miniupnp.free.fr/files/
 
 MAINTAINER=	gaod@hychen.org
-COMMENT=	An NAT-PMP lightweight library
+COMMENT=	NAT-PMP lightweight library
 
-USE_GMAKE=	yes
+LICENSE=	BSD
+
+USES=		gmake
 MAKE_ENV+=	INSTALLPREFIX=${PREFIX}
 CFLAGS+=	-fPIC
 USE_LDCONFIG=	yes

Added: head/net/libnatpmp/files/patch-Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/libnatpmp/files/patch-Makefile	Thu Sep 19 21:42:24 2013	(r327649)
@@ -0,0 +1,11 @@
+--- Makefile.orig	2013-09-20 03:13:32.533531973 +0800
++++ Makefile	2013-09-20 03:13:40.954532152 +0800
+@@ -5,7 +5,7 @@
+ # http://miniupnp.free.fr/libnatpmp.html
+ 
+ OS = $(shell uname -s)
+-CC = gcc
++CC ?= gcc
+ INSTALL = install
+ 
+ # APIVERSION is used in soname

Modified: head/net/libnatpmp/pkg-descr
==============================================================================
--- head/net/libnatpmp/pkg-descr	Thu Sep 19 20:04:51 2013	(r327648)
+++ head/net/libnatpmp/pkg-descr	Thu Sep 19 21:42:24 2013	(r327649)
@@ -1,6 +1,6 @@
-libnatpmp is an attempt to make a portable and fully compliant implementation 
-of the protocol for the client side. It is based on non blocking sockets and 
-all calls of the API are asynchronous. It is therefore very easy to integrate 
-the NAT-PMP code to any event driven code. 
+libnatpmp is an attempt to make a portable and fully compliant implementation
+of the protocol for the client side. It is based on non blocking sockets and
+all calls of the API are asynchronous. It is therefore very easy to integrate
+the NAT-PMP code to any event driven code.
 
-WWW:	http://miniupnp.free.fr/
+WWW: http://miniupnp.free.fr/
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 3 William Grzybowski freebsd_committer freebsd_triage 2013-09-19 22:43:08 UTC
State Changed
From-To: open->closed

Committed, with minor changes. Thanks!