Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Jan 2012 02:45:59 +0900
From:      KATO Tsuguru <tkato432@yahoo.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/164158: Update port: graphics/apngasm to 2.5
Message-ID:  <20120116024559.ebf8dab9.tkato432@yahoo.com>
Resent-Message-ID: <201201151810.q0FIABSu078498@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         164158
>Category:       ports
>Synopsis:       Update port: graphics/apngasm to 2.5
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jan 15 18:10:11 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 7.4-RELEASE-p5 i386
>Organization:
>Environment:
>Description:
- Update to version 2.5

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/graphics/apngasm/Makefile graphics/apngasm/Makefile
--- /usr/ports/graphics/apngasm/Makefile	2011-12-27 02:54:22.000000000 +0900
+++ graphics/apngasm/Makefile	2012-01-14 21:53:58.000000000 +0900
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=	apngasm
-PORTVERSION=	2.3
+PORTVERSION=	2.5
 DISTVERSIONSUFFIX=-src
 CATEGORIES=	graphics
 MASTER_SITES=	SF/${PORTNAME}/${PORTVERSION}
@@ -14,20 +14,18 @@
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Create Animated PNG from a sequence of files
 
-USE_ZIP=	yes
-USE_DOS2UNIX=	yes
-NO_WRKSUBDIR=	yes
-
 LICENSE=	LGPL21 LGPL3
 LICENSE_COMB=	dual
 
-ALL_TARGET=	${PORTNAME}
-MAKEFILE=	/dev/null
-MAKE_ENV+=	LDLIBS="${LDLIBS}"
-CFLAGS+=	-I${LOCALBASE}/include
-LDFLAGS+=	-L${LOCALBASE}/lib
-LDLIBS+=	-lpng -lm -lz
+NO_WRKSUBDIR=	yes
 
+USE_ZIP=	yes
+USE_DOS2UNIX=	yes
+
+CPPFLAGS+=	`pkg-config --cflags libpng`
+LDFLAGS+=	`pkg-config --libs libpng`
+
+PORTDOCS=	readme.txt
 PLIST_FILES=	bin/${PORTNAME}
 
 .include <bsd.port.pre.mk>
@@ -39,7 +37,15 @@
 LDFLAGS+=	-static
 .endif
 
+do-build:
+	cd ${WRKSRC} && ${CC} ${CFLAGS} ${CPPFLAGS} ${PORTNAME}.c \
+		-o ${PORTNAME} ${LDFLAGS}
+
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
+.if !defined(NOPORTDOCS)
+	@${MKDIR} ${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
+.endif
 
 .include <bsd.port.post.mk>
diff -urN /usr/ports/graphics/apngasm/distinfo graphics/apngasm/distinfo
--- /usr/ports/graphics/apngasm/distinfo	2011-03-10 05:41:45.000000000 +0900
+++ graphics/apngasm/distinfo	2012-01-14 21:54:35.000000000 +0900
@@ -1,2 +1,2 @@
-SHA256 (apngasm-2.3-src.zip) = d3f13ac5800f69f3fbcfc00800f7a985273c775a800a92e26841af31ad6ab5bf
-SIZE (apngasm-2.3-src.zip) = 10540
+SHA256 (apngasm-2.5-src.zip) = e5346948f2a51328161b3ef0d2c8111cd7289c7b4ac48e72db3a617cfb4f24c5
+SIZE (apngasm-2.5-src.zip) = 11333
>Release-Note:
>Audit-Trail:
>Unformatted:



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