aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/webp
diff options
context:
space:
mode:
authorjohans <johans@FreeBSD.org>2011-03-30 04:43:19 +0800
committerjohans <johans@FreeBSD.org>2011-03-30 04:43:19 +0800
commit312cf9facecbf9b2422b8fbdcdcef3ee4ba2c9fa (patch)
tree1af39d8dc8ea637cb9ac0c765cf619133891a13d /graphics/webp
parent82ba5052aa264119e7d6a3384f5f54b49968929d (diff)
downloadfreebsd-ports-gnome-312cf9facecbf9b2422b8fbdcdcef3ee4ba2c9fa.tar.gz
freebsd-ports-gnome-312cf9facecbf9b2422b8fbdcdcef3ee4ba2c9fa.tar.zst
freebsd-ports-gnome-312cf9facecbf9b2422b8fbdcdcef3ee4ba2c9fa.zip
- Update webp to version 0.1.2-rc1 (dist cleanup)
- The webpconv binary is now split into cwebp and dwebp (with manpages) and a conversion library (with include files) were added - Remove local patch file that is no longer needed
Diffstat (limited to 'graphics/webp')
-rw-r--r--graphics/webp/Makefile27
-rw-r--r--graphics/webp/distinfo4
-rw-r--r--graphics/webp/files/patch-leptonlib-1.066_src_environ.h10
-rw-r--r--graphics/webp/pkg-plist11
4 files changed, 21 insertions, 31 deletions
diff --git a/graphics/webp/Makefile b/graphics/webp/Makefile
index 7776594e3c9b..e295f114aa58 100644
--- a/graphics/webp/Makefile
+++ b/graphics/webp/Makefile
@@ -6,10 +6,11 @@
#
PORTNAME= webp
-PORTVERSION= 0.0.5
+DISTVERSION= 0.1.2-rc1
CATEGORIES= graphics
MASTER_SITES= GOOGLE_CODE
-DISTNAME= ${PORTNAME}-leptonica-${PORTVERSION}
+DISTNAME= lib${PORTNAME}-${DISTVERSION}
+EXTRACT_SUFX= .tgz
MAINTAINER= johans@FreeBSD.org
COMMENT= Google WebP image format conversion tool
@@ -18,25 +19,13 @@ LIB_DEPENDS= vpx.0:${PORTSDIR}/multimedia/libvpx \
jpeg.11:${PORTSDIR}/graphics/jpeg \
png.6:${PORTSDIR}/graphics/png
+WRKSRC= ${WRKDIR}/lib${PORTNAME}-${PORTVERSION:R}
+
USE_GMAKE= yes
+USE_LDCONFIG= yes
GNU_CONFIGURE= yes
-CONFIGURE_WRKSRC= ${WRKSRC}/libwebp
-CONFIGURE_ARGS+= LDFLAGS="-L${WRKSRC}/leptonlib-1.066/lib/nodebug"
-CFLAGS+= -I${WRKSRC}/leptonlib-1.066/src -I/usr/local/include
-WRKSRC= ${WRKDIR}/${PORTNAME}
-INSTALL_WRKSRC= ${CONFIGURE_WRKSRC}
-
-PLIST_FILES= bin/webpconv
-
-pre-configure:
-.for f in missing depcomp install-sh
- @cd ${WRKSRC}/libwebp && ${LN} -sf ../leptonlib-1.066/config/$f
-.endfor
- @${REINPLACE_CMD} -e '/^CFLAGS =/s:$$: -I/usr/local/include:' \
- ${WRKSRC}/leptonlib-1.066/src/makefile
+CPPFLAGS+= -I${LOCALBASE}/include -L${LOCALBASE}/lib
-do-build:
- ${GMAKE} -C ${WRKSRC}/leptonlib-1.066/src
- ${MAKE} -C ${WRKSRC}/libwebp
+MAN1= cwebp.1 dwebp.1
.include <bsd.port.mk>
diff --git a/graphics/webp/distinfo b/graphics/webp/distinfo
index f7be8d8b7418..a7480ef1ce45 100644
--- a/graphics/webp/distinfo
+++ b/graphics/webp/distinfo
@@ -1,2 +1,2 @@
-SHA256 (webp-leptonica-0.0.5.tar.gz) = 385f4c65397976da2cd5aefc6b67a4447e14bb9e858ed68e9ddf091f9468ddc8
-SIZE (webp-leptonica-0.0.5.tar.gz) = 1354003
+SHA256 (libwebp-0.1.2-rc1.tgz) = e91613e0651328e40849b7d3d79fdc30d718c3b1010f397ac57c39dcdf1a3e31
+SIZE (libwebp-0.1.2-rc1.tgz) = 447729
diff --git a/graphics/webp/files/patch-leptonlib-1.066_src_environ.h b/graphics/webp/files/patch-leptonlib-1.066_src_environ.h
deleted file mode 100644
index 6bd9a43bcf27..000000000000
--- a/graphics/webp/files/patch-leptonlib-1.066_src_environ.h
+++ /dev/null
@@ -1,10 +0,0 @@
---- leptonlib-1.066/src/environ.h.orig 2010-11-23 12:47:09.000000000 +0100
-+++ leptonlib-1.066/src/environ.h 2010-11-23 12:45:55.000000000 +0100
-@@ -205,6 +205,7 @@ enum {
- * on all heap data except for Pix. Memory management for Pix
- * also defaults to malloc and free. See pix1.c for details.
- *------------------------------------------------------------------------*/
-+#include <stdlib.h>
- #define MALLOC(blocksize) malloc(blocksize)
- #define CALLOC(numelem, elemsize) calloc(numelem, elemsize)
- #define REALLOC(ptr, blocksize) realloc(ptr, blocksize)
diff --git a/graphics/webp/pkg-plist b/graphics/webp/pkg-plist
new file mode 100644
index 000000000000..b3ceace00c60
--- /dev/null
+++ b/graphics/webp/pkg-plist
@@ -0,0 +1,11 @@
+bin/dwebp
+bin/cwebp
+include/webp/decode.h
+include/webp/decode_vp8.h
+include/webp/types.h
+include/webp/encode.h
+lib/libwebp.so
+lib/libwebp.so.0
+lib/libwebp.la
+lib/libwebp.a
+@dirrm include/webp