Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Dec 2013 02:49:16 +0900
From:      KATO Tsuguru <tkato432@yahoo.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/184907: graphics/apngdis: Update to version 2.6
Message-ID:  <20131217024916.00dcd38cf495f7af03390396@yahoo.com>
Resent-Message-ID: <201312161810.rBGIAUYw016708@freefall.freebsd.org>

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

>Number:         184907
>Category:       ports
>Synopsis:       graphics/apngdis: Update to version 2.6
>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:30 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 8.4-RELEASE-p4 i386
>Organization:
>Environment:
>Description:
- Update to version 2.6

New file:
files/patch-Makefile

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/graphics/apngdis/Makefile graphics/apngdis/Makefile
--- /usr/ports/graphics/apngdis/Makefile	2013-12-11 05:39:55.000000000 +0900
+++ graphics/apngdis/Makefile	2013-12-17 00:00:00.000000000 +0900
@@ -2,46 +2,40 @@
 # $FreeBSD: head/graphics/apngdis/Makefile 336095 2013-12-10 19:38:47Z nemysis $
 
 PORTNAME=	apngdis
-PORTVERSION=	2.5
+PORTVERSION=	2.6
 DISTVERSIONSUFFIX=-src
 CATEGORIES=	graphics
 MASTER_SITES=	SF/${PORTNAME}/${PORTVERSION}
+EXTRACT_SUFX=	.zip
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Deconstructs APNG files into individual frames
 
 LICENSE=	ZLIB
 
-NO_WRKSUBDIR=	yes
-
-USE_DOS2UNIX=	yes
-USE_ZIP=	yes
+OPTIONS_DEFINE=	DOCS STATIC
 
-LDFLAGS+=	-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 <bsd.port.options.mk>
 
 .if ${PORT_OPTIONS:MSTATIC}
-LDFLAGS+=	-static
+BUILD_DEPENDS+=	${LOCALBASE}/lib/libpng.a:${PORTSDIR}/graphics/png
+MAKE_ENV+=	STATIC=1
+.else
+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 <bsd.port.mk>
diff -urN /usr/ports/graphics/apngdis/distinfo graphics/apngdis/distinfo
--- /usr/ports/graphics/apngdis/distinfo	2013-11-06 22:02:26.000000000 +0900
+++ graphics/apngdis/distinfo	2013-12-17 00:00:00.000000000 +0900
@@ -1,2 +1,2 @@
-SHA256 (apngdis-2.5-src.zip) = 684ef8da1688c8fdb1a3dfe742fcf344bfff23b701fb31cea2ece7b2a272faec
-SIZE (apngdis-2.5-src.zip) = 9085
+SHA256 (apngdis-2.6-src.zip) = f2bed6570bd73155f2f729920398b141028bc4bf74dc0d621feb27b810231a17
+SIZE (apngdis-2.6-src.zip) = 450493
diff -urN /usr/ports/graphics/apngdis/files/patch-Makefile graphics/apngdis/files/patch-Makefile
--- /usr/ports/graphics/apngdis/files/patch-Makefile	1970-01-01 09:00:00.000000000 +0900
+++ graphics/apngdis/files/patch-Makefile	2013-12-17 00:00:00.000000000 +0900
@@ -0,0 +1,24 @@
+--- Makefile.orig
++++ Makefile
+@@ -1,11 +1,16 @@
+ PACKAGE    = apngdis
+-CC         = gcc
+-CFLAGS     = -Wall -pedantic
+-CFLAGS_OPT = -O2
+-LIBS       = -lstdc++ -lm -lpng -lz
++CXX       ?= c++
++CXXFLAGS  += -Wall -pedantic
++CPPFLAGS  += $(shell libpng-config --cflags)
++ifeq ($(strip $(STATIC)),)
++LIBS       = $(shell libpng-config --ldflags)
++else
++LIBS       = $(shell libpng-config --static --ldflags)
++LDFLAGS   += -static
++endif
+ 
+ all :
+-	$(CC) $(CFLAGS) $(CFLAGS_OPT) -o apngdis apngdis.cpp -s $(LIBS)
++	$(CXX) $(CXXFLAGS) $(CPPFLAGS) -o apngdis apngdis.cpp -s $(LIBS) $(LDFLAGS)
+ 
+ .PHONY : clean
+ 
>Release-Note:
>Audit-Trail:
>Unformatted:



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