aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjohans <johans@FreeBSD.org>2010-10-01 23:21:07 +0800
committerjohans <johans@FreeBSD.org>2010-10-01 23:21:07 +0800
commit01109862cc0f841aa2d586eab6adafbdd3db1825 (patch)
treee6938cf8fb600df377b4d22377f5f5dbcdf0cb33
parente7e212e56a8e95520a68d9b92dd9ba0b76375465 (diff)
downloadfreebsd-ports-gnome-01109862cc0f841aa2d586eab6adafbdd3db1825.tar.gz
freebsd-ports-gnome-01109862cc0f841aa2d586eab6adafbdd3db1825.tar.zst
freebsd-ports-gnome-01109862cc0f841aa2d586eab6adafbdd3db1825.zip
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/
-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/