svn commit: r318646 - head/graphics/scale2x
Martin Wilke
miwi at FreeBSD.org
Tue May 21 06:17:27 UTC 2013
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 at 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
More information about the svn-ports-all
mailing list