diff options
author | kwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059> | 2012-05-23 16:00:51 +0800 |
---|---|---|
committer | kwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059> | 2012-05-23 16:00:51 +0800 |
commit | 6433ba5fc989d93bb87367d5f340fade064834a9 (patch) | |
tree | 338a6d462124644babdbbeb88d1ef33fca5b38b6 /graphics/gdk-pixbuf2/Makefile | |
parent | 7f9d5e08d86e247f541942f2115c17f063c2771c (diff) | |
download | marcuscom-ports-6433ba5fc989d93bb87367d5f340fade064834a9.tar marcuscom-ports-6433ba5fc989d93bb87367d5f340fade064834a9.tar.gz marcuscom-ports-6433ba5fc989d93bb87367d5f340fade064834a9.tar.bz2 marcuscom-ports-6433ba5fc989d93bb87367d5f340fade064834a9.tar.lz marcuscom-ports-6433ba5fc989d93bb87367d5f340fade064834a9.tar.xz marcuscom-ports-6433ba5fc989d93bb87367d5f340fade064834a9.tar.zst marcuscom-ports-6433ba5fc989d93bb87367d5f340fade064834a9.zip |
Sync with freebsd ports. Bring in optionized jpeg/jasper/tiff.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@16780 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'graphics/gdk-pixbuf2/Makefile')
-rw-r--r-- | graphics/gdk-pixbuf2/Makefile | 66 |
1 files changed, 52 insertions, 14 deletions
diff --git a/graphics/gdk-pixbuf2/Makefile b/graphics/gdk-pixbuf2/Makefile index 5e70afaa3..3349580fa 100644 --- a/graphics/gdk-pixbuf2/Makefile +++ b/graphics/gdk-pixbuf2/Makefile @@ -3,10 +3,11 @@ # Whom: Ade Lovett <ade@lovett.com> # # $FreeBSD$ -# $MCom$ +# $MCom: ports/graphics/gdk-pixbuf2/Makefile,v 1.19 2012/05/15 15:17:37 kwm Exp $ PORTNAME?= gdk-pixbuf PORTVERSION= 2.26.1 +PORTREVISION= 1 CATEGORIES?= graphics MASTER_SITES= GNOME MASTER_SITE_SUBDIR= sources/gdk-pixbuf/${PORTVERSION:R} @@ -17,34 +18,71 @@ MAINTAINER= gnome@FreeBSD.org COMMENT= A graphic library for GTK+ BUILD_DEPENDS= g-ir-scanner:${PORTSDIR}/devel/gobject-introspection -LIB_DEPENDS= png.6:${PORTSDIR}/graphics/png \ - tiff.4:${PORTSDIR}/graphics/tiff \ - jpeg.11:${PORTSDIR}/graphics/jpeg \ - jasper.4:${PORTSDIR}/graphics/jasper LATEST_LINK= gdk-pixbuf2 USE_XZ= yes USE_GMAKE= yes +USE_XORG= xt xi x11 USE_AUTOTOOLS= libtool USE_GNOME+= gnomehack glib20 ltverhack USE_LDCONFIG= yes GNU_CONFIGURE= yes CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib -CONFIGURE_ARGS= --enable-introspection=yes --with-libjasper +CONFIGURE_ARGS= --enable-introspection=yes MAN1= gdk-pixbuf-csource.1 gdk-pixbuf-query-loaders.1 -post-install: - @cd ${WRKSRC}/docs/reference/gdk-pixbuf && gmake install-man1 +OPTIONS= JP2 "JPEG2000 support" ON \ + JPEG "JPEG support" ON \ + PNG "PNG support" ON \ + TIFF "TIFF support" ON -.if !defined(WITHOUT_X11) -USE_XORG= xt xi x11 -CONFIGURE_ARGS+=--with-x11 -PLIST_SUB+= XLIB="" +.include <bsd.port.options.mk> + +.if !defined(WITHOUT_NLS) +PLIST_SUB+= NLS="" +.else +CONFIGURE_ARGS+=--disable-nls +PLIST_SUB+= NLS="@comment " +.endif + +.if !defined(WITHOUT_JP2) +LIB_DEPENDS+= jasper.4:${PORTSDIR}/graphics/jasper +CONFIGURE_ARGS+=--with-libjasper +PLIST_SUB+= JP2="" +.else +PLIST_SUB+= JP2="@comment " +.endif + +.if !defined(WITHOUT_JPEG) +LIB_DEPENDS+= jpeg.11:${PORTSDIR}/graphics/jpeg +PLIST_SUB+= JPEG="" .else -CONFIGURE_ARGS+=--without-x11 -PLIST_SUB+= XLIB="@comment " +CONFIGURE_ARGS+=--without-libjpeg +PLIST_SUB+= JPEG="@comment " .endif +.if !defined(WITHOUT_PNG) +LIB_DEPENDS+= png.6:${PORTSDIR}/graphics/png +PLIST_SUB+= PNG="" +.else +CONFIGURE_ARGS+=--without-libpng +PLIST_SUB+= PNG="@comment " +.endif + +.if !defined(WITHOUT_TIFF) +LIB_DEPENDS+= tiff.4:${PORTSDIR}/graphics/tiff +PLIST_SUB+= TIFF="" +.else +CONFIGURE_ARGS+=--without-libtiff +PLIST_SUB+= TIFF="@comment " +.endif + +post-patch: + @${REINPLACE_CMD} -e 's|" == "|" = "|g' ${WRKSRC}/configure + +post-install: + @cd ${WRKSRC}/docs/reference/gdk-pixbuf && gmake install-man1 + .include <bsd.port.mk> |