Bug 178594 - graphics/scale2x: Update to version 3.0
Summary: graphics/scale2x: Update to version 3.0
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: Martin Wilke
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-13 19:10 UTC by tkato432
Modified: 2013-05-21 07:20 UTC (History)
0 users

See Also:


Attachments
file.diff (1.67 KB, patch)
2013-05-13 19:10 UTC, tkato432
no flags Details | Diff
graphics_scale2x.diff (2.16 KB, patch)
2013-05-20 18:57 UTC, tkato432
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description tkato432 2013-05-13 18:55:18 UTC
>Number:         178594
>Category:       ports
>Synopsis:       graphics/scale2x: Update to version 3.0
>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 May 13 18:10:08 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 7.4-RELEASE-p11 i386
>Organization:
>Environment:
>Description:
- Update to version 3.0

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/graphics/scale2x/Makefile graphics/scale2x/Makefile
--- /usr/ports/graphics/scale2x/Makefile	2012-11-08 09:32:51.000000000 +0900
+++ graphics/scale2x/Makefile	2013-05-14 00:00:25.000000000 +0900
@@ -1,31 +1,29 @@
-# Ports collection makefile for:	scale2x
-# Date created:			2006/12/01
-# Whom:				chinsan
-#
+# Created by: chinsan
 # $FreeBSD: head/graphics/scale2x/Makefile 300896 2012-07-14 13:54:48Z beat $
-#
 
 PORTNAME=	scale2x
-PORTVERSION=	2.4
-PORTREVISION=	2
+PORTVERSION=	3.0
 CATEGORIES=	graphics
 MASTER_SITES=	SF
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Real-time graphics effect able to increase the size of small bitmaps
 
+LICENSE=	GPLv2 # (or later)
+
 LIB_DEPENDS=	png15:${PORTSDIR}/graphics/png
 
 GNU_CONFIGURE=	yes
+MAKE_JOBS_SAFE=	yes
 
 MAN1=		scalex.1 scalerx.1
 PLIST_FILES=	bin/scalex bin/scalerx
 
-CPPFLAGS+=	`libpng15-config --I_opts`
-LDFLAGS+=	`libpng15-config --L_opts`
+CPPFLAGS+=	$$(libpng15-config --I_opts)
+LDFLAGS+=	$$(libpng15-config --L_opts)
 
 post-patch:
-	${REINPLACE_CMD} -e 's|png_set_gray_1_2_4_to_8|png_set_expand_gray_1_2_4_to_8|' \
-		${WRKSRC}/file.c
+	@${REINPLACE_CMD} -e \
+		'/<malloc.h>/d' ${WRKSRC}/scalebit.c
 
 .include <bsd.port.mk>
diff -urN /usr/ports/graphics/scale2x/distinfo graphics/scale2x/distinfo
--- /usr/ports/graphics/scale2x/distinfo	2012-11-08 09:32:51.000000000 +0900
+++ graphics/scale2x/distinfo	2013-05-14 00:00:25.000000000 +0900
@@ -1,2 +1,2 @@
-SHA256 (scale2x-2.4.tar.gz) = 83599b1627988c941ee9c7965b6f26a9fd2608cd1e0073f7262a858d0f4f7078
-SIZE (scale2x-2.4.tar.gz) = 223640
+SHA256 (scale2x-3.0.tar.gz) = 54f786a42472de918358bb85249ea0e0167eb52e0c0ce0cdce79ab92b9515bfb
+SIZE (scale2x-3.0.tar.gz) = 244733
>Release-Note:
>Audit-Trail:
>Unformatted:
_______________________________________________
freebsd-ports-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports-bugs
To unsubscribe, send any mail to "freebsd-ports-bugs-unsubscribe@freebsd.org"
Comment 1 tkato432 2013-05-13 19:10:08 UTC
- Update to version 3.0
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2013-05-13 19:12:16 UTC
Responsible Changed
From-To: freebsd-ports-bugs->miwi

miwi@ wants this submitter's PRs (via the GNATS Auto Assign Tool)
Comment 3 Martin Wilke freebsd_committer freebsd_triage 2013-05-20 15:18:22 UTC
State Changed
From-To: open->feedback

checksum fails any clue why ? 
http://po.miwibox.org:1288/bulk/latest-per-pkg/scale2x/3.0/
Comment 4 tkato432 2013-05-20 18:57:50 UTC
Here is the corrected patch.
Comment 5 dfilter service freebsd_committer freebsd_triage 2013-05-21 07:17:34 UTC
Author: miwi
Date: Tue May 21 06:17:26 2013
New Revision: 318646
URL: http://svnweb.freebsd.org/changeset/ports/318646

Log:
  - Update to 3.0
  - Add License
  - Trim header
  
  PR:		178594
  Submitted by:	Ports Fury

Modified:
  head/graphics/scale2x/Makefile   (contents, props changed)
  head/graphics/scale2x/distinfo   (contents, props changed)

Modified: head/graphics/scale2x/Makefile
==============================================================================
--- head/graphics/scale2x/Makefile	Tue May 21 06:12:41 2013	(r318645)
+++ head/graphics/scale2x/Makefile	Tue May 21 06:17:26 2013	(r318646)
@@ -1,31 +1,52 @@
-# Ports collection makefile for:	scale2x
-# Date created:			2006/12/01
-# Whom:				chinsan
-#
+# Created by: chinsan
 # $FreeBSD$
-#
 
 PORTNAME=	scale2x
-PORTVERSION=	2.4
-PORTREVISION=	2
+PORTVERSION=	3.0
 CATEGORIES=	graphics
 MASTER_SITES=	SF
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Real-time graphics effect able to increase the size of small bitmaps
 
+LICENSE=	GPLv2 # (or later)
+
 LIB_DEPENDS=	png15:${PORTSDIR}/graphics/png
 
+OPTIONS_DEFINE=	DOCS EXAMPLES
+OPTIONS_DEFINE_i386=	MMX
+
 GNU_CONFIGURE=	yes
+MAKE_JOBS_SAFE=	yes
+
+CPPFLAGS+=	$$(libpng15-config --I_opts)
+LDFLAGS+=	$$(libpng15-config --L_opts)
 
 MAN1=		scalex.1 scalerx.1
+PORTDOCS=	*
+PORTEXAMPLES=	*
 PLIST_FILES=	bin/scalex bin/scalerx
 
-CPPFLAGS+=	`libpng15-config --I_opts`
-LDFLAGS+=	`libpng15-config --L_opts`
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MMMX}
+CPPFLAGS+=	-DHAVE_MMX
+.endif
 
 post-patch:
-	${REINPLACE_CMD} -e 's|png_set_gray_1_2_4_to_8|png_set_expand_gray_1_2_4_to_8|' \
-		${WRKSRC}/file.c
+	@${REINPLACE_CMD} -e \
+		'/<malloc.h>/d ; \
+		 s|__i386__|HAVE_MMX| ; \
+		 s|__x86_64__|__amd64__|' ${WRKSRC}/*.[ch]
+
+post-install:
+.if ${PORT_OPTIONS:MDOCS}
+	@${MKDIR} ${DOCSDIR}
+	(cd ${WRKSRC}/doc && ${INSTALL_DATA} *.html ${DOCSDIR})
+.endif
+.if ${PORT_OPTIONS:MEXAMPLES}
+	@${MKDIR} ${EXAMPLESDIR}
+	(cd ${WRKSRC}/example && ${INSTALL_DATA} *.png ${EXAMPLESDIR})
+.endif
 
 .include <bsd.port.mk>

Modified: head/graphics/scale2x/distinfo
==============================================================================
--- head/graphics/scale2x/distinfo	Tue May 21 06:12:41 2013	(r318645)
+++ head/graphics/scale2x/distinfo	Tue May 21 06:17:26 2013	(r318646)
@@ -1,2 +1,2 @@
-SHA256 (scale2x-2.4.tar.gz) = 83599b1627988c941ee9c7965b6f26a9fd2608cd1e0073f7262a858d0f4f7078
-SIZE (scale2x-2.4.tar.gz) = 223640
+SHA256 (scale2x-3.0.tar.gz) = 00cd8fb45a5d426149bec0b67104a260f5f8c3fc04ccf53c0d1133e13a36739e
+SIZE (scale2x-3.0.tar.gz) = 244737
_______________________________________________
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 6 Martin Wilke freebsd_committer freebsd_triage 2013-05-21 07:17:50 UTC
State Changed
From-To: feedback->closed

Committed. Thanks!