aboutsummaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorJohan van Selst <johans@FreeBSD.org>2010-10-01 15:21:07 +0000
committerJohan van Selst <johans@FreeBSD.org>2010-10-01 15:21:07 +0000
commitfec26483f9d5dd2e15f7672749e39eb388463dfc (patch)
tree83b8cf67ae3b67f5d6a53277249e8b6e55dcdf2f /graphics
parent0cf9c66469c7f6c3d1489c0a81959e334912ca79 (diff)
downloadports-fec26483f9d5dd2e15f7672749e39eb388463dfc.tar.gz
ports-fec26483f9d5dd2e15f7672749e39eb388463dfc.zip
Notes
Diffstat (limited to 'graphics')
-rw-r--r--graphics/webp/Makefile43
-rw-r--r--graphics/webp/distinfo3
-rw-r--r--graphics/webp/pkg-descr8
3 files changed, 54 insertions, 0 deletions
diff --git a/graphics/webp/Makefile b/graphics/webp/Makefile
new file mode 100644
index 000000000000..da33f50e2800
--- /dev/null
+++ b/graphics/webp/Makefile
@@ -0,0 +1,43 @@
+# New ports collection makefile for: webp
+# Date created: 1 October 2010
+# Whom: johans
+#
+# $FreeBSD$
+#
+
+PORTNAME= webp
+PORTVERSION= 0.0.1
+CATEGORIES= graphics
+MASTER_SITES= GOOGLE_CODE
+DISTNAME= ${PORTNAME}-leptonica-${PORTVERSION}
+
+MAINTAINER= johans@FreeBSD.org
+COMMENT= Google WebP image format conversion tool
+
+LIB_DEPENDS= vpx.0:${PORTSDIR}/multimedia/libvpx \
+ jpeg.11:${PORTSDIR}/graphics/jpeg \
+ png.6:${PORTSDIR}/graphics/png
+
+USE_GMAKE= yes
+GNU_CONFIGURE= yes
+CONFIGURE_WRKSRC= ${WRKSRC}/leptonlib-1.066
+WRKSRC= ${WRKDIR}/${PORTNAME}
+
+PLIST_FILES= bin/webpconv
+
+pre-patch:
+ @${REINPLACE_CMD} -e '/^CFLAGS =/s:$$: -I/usr/local/include:' \
+ ${CONFIGURE_WRKSRC}/src/makefile
+ @${REINPLACE_CMD} -e '/^INCLUDES =/s:$$: -I/usr/local/include:'\
+ -e '/^LDFLAGS /s:$$: -L/usr/local/lib:' \
+ -e 's:-o webpconv:& $$(LDFLAGS):' \
+ ${WRKSRC}/libwebp/makefile
+
+do-build:
+ ${GMAKE} -C ${CONFIGURE_WRKSRC}/src
+ ${GMAKE} -C ${WRKSRC}/libwebp
+
+do-install:
+ @${INSTALL_PROGRAM} ${WRKSRC}/libwebp/webpconv ${PREFIX}/bin
+
+.include <bsd.port.mk>
diff --git a/graphics/webp/distinfo b/graphics/webp/distinfo
new file mode 100644
index 000000000000..fbfe4d68498a
--- /dev/null
+++ b/graphics/webp/distinfo
@@ -0,0 +1,3 @@
+MD5 (webp-leptonica-0.0.1.tar.gz) = 9dcf27e28cbded11e719a26547d87c55
+SHA256 (webp-leptonica-0.0.1.tar.gz) = 1d277234b30e9e400f4bbf349c17dab6025ee8df00633d7d8f9fa6ae9fc4a7fe
+SIZE (webp-leptonica-0.0.1.tar.gz) = 1246544
diff --git a/graphics/webp/pkg-descr b/graphics/webp/pkg-descr
new file mode 100644
index 000000000000..3429d9f1a775
--- /dev/null
+++ b/graphics/webp/pkg-descr
@@ -0,0 +1,8 @@
+WebP is a method of lossy compression that can be used on photographic
+images. The degree of compression is adjustable so a user can choose the
+trade-off between file size and image quality.
+
+webpconv is a command line tool for converting images to and from
+the WebP format.
+
+WWW: http://code.google.com/speed/webp/