From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Dec 16 18:10:18 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 428FA809 for ; Mon, 16 Dec 2013 18:10:18 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 21B021982 for ; Mon, 16 Dec 2013 18:10:18 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id rBGIAHEn016319 for ; Mon, 16 Dec 2013 18:10:17 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id rBGIAHgm016318; Mon, 16 Dec 2013 18:10:17 GMT (envelope-from gnats) Resent-Date: Mon, 16 Dec 2013 18:10:17 GMT Resent-Message-Id: <201312161810.rBGIAHgm016318@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, KATO Tsuguru Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 207073B6 for ; Mon, 16 Dec 2013 18:04:11 +0000 (UTC) Received: from omta03.auone-net.jp (mail-or0-f67.auone-net.jp [106.187.230.67]) by mx1.freebsd.org (Postfix) with ESMTP id BD431187E for ; Mon, 16 Dec 2013 18:04:10 +0000 (UTC) Received: from coppermine.my.domain (ZT030106.ppp.dion.ne.jp [59.128.30.106]) by omta03.auone-net.jp (au one net mail) with ESMTP id 3D3861880004 for ; Tue, 17 Dec 2013 03:04:08 +0900 (JST) Message-Id: <20131217024912.dfc23a1b4d106cda3465158b@yahoo.com> Date: Tue, 17 Dec 2013 02:49:12 +0900 From: KATO Tsuguru To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/184864: graphics/apngasm: Update to version 2.8 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Dec 2013 18:10:18 -0000 >Number: 184864 >Category: ports >Synopsis: graphics/apngasm: Update to version 2.8 >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: Mon Dec 16 18:10:17 UTC 2013 >Closed-Date: >Last-Modified: >Originator: KATO Tsuguru >Release: FreeBSD 8.4-RELEASE-p4 i386 >Organization: >Environment: >Description: - Update to version 2.8 New file: files/patch-Makefile >How-To-Repeat: >Fix: diff -urN /usr/ports/graphics/apngasm/Makefile graphics/apngasm/Makefile --- /usr/ports/graphics/apngasm/Makefile 2013-12-11 05:39:55.000000000 +0900 +++ graphics/apngasm/Makefile 2013-12-17 00:00:00.000000000 +0900 @@ -2,50 +2,40 @@ # $FreeBSD: head/graphics/apngasm/Makefile 336096 2013-12-10 19:39:46Z nemysis $ PORTNAME= apngasm -PORTVERSION= 2.7 +PORTVERSION= 2.8 DISTVERSIONSUFFIX=-src CATEGORIES= graphics MASTER_SITES= SF/${PORTNAME}/${PORTVERSION} +EXTRACT_SUFX= .zip MAINTAINER= ports@FreeBSD.org -COMMENT= Creates an APNG animation from a PNG/TGA image sequence +COMMENT= Create Animated PNG from a sequence of files LICENSE= ZLIB -NO_WRKSUBDIR= yes - -USE_DOS2UNIX= yes -USE_ZIP= yes +OPTIONS_DEFINE= DOCS STATIC -CPPFLAGS+= `libpng-config --I_opts` -LDFLAGS+= `libpng-config --ldflags` -lm -lz +NO_WRKSUBDIR= yes -PLIST_FILES= bin/${PORTNAME} +USES= dos2unix gmake PORTDOCS= readme.txt +PLIST_FILES= bin/${PORTNAME} -OPTIONS_DEFINE= DOCS STATIC - -NO_STAGE= yes .include .if ${PORT_OPTIONS:MSTATIC} BUILD_DEPENDS+= ${LOCALBASE}/lib/libpng.a:${PORTSDIR}/graphics/png -LDFLAGS+= -static +MAKE_ENV+= STATIC=1 .else -LIB_DEPENDS+= png15:${PORTSDIR}/graphics/png +LIB_DEPENDS+= libpng15.so:${PORTSDIR}/graphics/png .endif -do-build: - cd ${WRKSRC} && ${CC} ${CFLAGS} ${CPPFLAGS} ${PORTNAME}.c \ - -o ${PORTNAME} ${LDFLAGS} - do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin - -.if ${PORT_OPTIONS:MDOCS} - ${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR} -.endif + (cd ${WRKSRC} && ${INSTALL_PROGRAM} ${PORTNAME} \ + ${STAGEDIR}${PREFIX}/bin) + @${MKDIR} ${STAGEDIR}${DOCSDIR} + (cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} \ + ${STAGEDIR}${DOCSDIR}) .include diff -urN /usr/ports/graphics/apngasm/distinfo graphics/apngasm/distinfo --- /usr/ports/graphics/apngasm/distinfo 2013-11-06 22:01:58.000000000 +0900 +++ graphics/apngasm/distinfo 2013-12-17 00:00:00.000000000 +0900 @@ -1,2 +1,2 @@ -SHA256 (apngasm-2.7-src.zip) = af42569666cab268a20a0754191396c9d48f4e01d6e8f93c3ae1164c3c821cc3 -SIZE (apngasm-2.7-src.zip) = 11448 +SHA256 (apngasm-2.8-src.zip) = 47bee31bc149efc5932a87819cc0daea668cf7322eeaed9378c43edbdc9803bc +SIZE (apngasm-2.8-src.zip) = 568753 diff -urN /usr/ports/graphics/apngasm/files/patch-Makefile graphics/apngasm/files/patch-Makefile --- /usr/ports/graphics/apngasm/files/patch-Makefile 1970-01-01 09:00:00.000000000 +0900 +++ graphics/apngasm/files/patch-Makefile 2013-12-17 00:00:00.000000000 +0900 @@ -0,0 +1,48 @@ +--- Makefile.orig ++++ Makefile +@@ -1,10 +1,17 @@ + PACKAGE = apngasm +-CC = gcc ++CC ?= cc ++CXX ?= c++ + SRC_DIRS = . 7z zopfli +-CFLAGS = -Wall -pedantic +-CFLAGS_OPT = -O2 ++CFLAGS += -Wall -pedantic ++CXXFLAGS += -Wall -pedantic ++CPPFLAGS += $(shell libpng-config --cflags) + CFLAGS_7Z = -Wno-sign-compare -Wno-reorder -Wno-maybe-uninitialized -Wno-parentheses +-LIBS = -lstdc++ -lm -lpng -lz ++ifeq ($(strip $(STATIC)),) ++LIBS = $(shell libpng-config --ldflags) ++else ++LIBS = $(shell libpng-config --static --ldflags) ++LDFLAGS += -static ++endif + + INCUDE_DIRS := $(addprefix -I./, $(SRC_DIRS)) + OBJ_DIRS := $(addprefix obj/, $(SRC_DIRS)) +@@ -16,19 +23,19 @@ + all : $(PACKAGE) + + $(PACKAGE) : objdirs $(OBJECTS) +- $(CC) -o $@ $(OBJECTS) -s $(LIBS) ++ $(CXX) -o $@ $(OBJECTS) $(LIBS) $(LDFLAGS) + + objdirs : + mkdir -p $(OBJ_DIRS) + + obj/%.o : %.cpp +- $(CC) -o $@ -c $< $(INCUDE_DIRS) $(CFLAGS) $(CFLAGS_OPT) ++ $(CXX) -o $@ -c $< $(INCUDE_DIRS) $(CXXFLAGS) $(CPPFLAGS) + + obj/%.o : %.c +- $(CC) -o $@ -c $< $(INCUDE_DIRS) $(CFLAGS) $(CFLAGS_OPT) ++ $(CC) -o $@ -c $< $(INCUDE_DIRS) $(CFLAGS) $(CPPFLAGS) + + obj/%.o : %.cc +- $(CC) -o $@ -c $< $(INCUDE_DIRS) $(CFLAGS) $(CFLAGS_OPT) $(CFLAGS_7Z) ++ $(CXX) -o $@ -c $< $(INCUDE_DIRS) $(CXXFLAGS) $(CPPFLAGS) $(CFLAGS_7Z) + + .PHONY : clean + >Release-Note: >Audit-Trail: >Unformatted: