From 552cc57313b0661532d93589b05362902ffbf0b0 Mon Sep 17 00:00:00 2001 From: Alexey Dokuchaev Date: Sat, 5 Mar 2005 10:02:31 +0000 Subject: - Update to most recent version, which fixes some annoying bugs - Build with GTK2 by default, reducing number of GTK1-ports - Reindent Makefile - Take maintainership --- graphics/pho/Makefile | 35 ++++++++++++++++++++++++----------- graphics/pho/distinfo | 4 ++-- 2 files changed, 26 insertions(+), 13 deletions(-) (limited to 'graphics') diff --git a/graphics/pho/Makefile b/graphics/pho/Makefile index 05b7f1c34f2f..9485e92edef8 100644 --- a/graphics/pho/Makefile +++ b/graphics/pho/Makefile @@ -1,31 +1,44 @@ -# New ports collection makefile for: pho -# Date created: 10 April 2003 -# Whom: Roland Jesse +# New ports collection makefile for: pho +# Date created: 10 April 2003 +# Whom: Roland Jesse # # $FreeBSD$ # PORTNAME= pho -PORTVERSION= 0.9.2 -PORTREVISION= 1 +DISTVERSION= 0.9.5-pre3 CATEGORIES= graphics MASTER_SITES= http://shallowsky.com/software/pho/ -MAINTAINER= ports@FreeBSD.org +MAINTAINER= danfe@FreeBSD.org COMMENT= A lightweight image viewer USE_GMAKE= yes -USE_GNOME= gdkpixbuf gtk12 USE_REINPLACE= yes +WANT_GNOME= yes -MAN1= pho.1 -PLIST_FILES= bin/pho +OPTIONS= GTK1 "Build with legacy GTK version (1.2.x)" Off + +.include + +.if defined(WITH_GTK1) +USE_GNOME= gdkpixbuf gtk12 +.else +USE_GNOME= gtk20 +.endif post-patch: @${REINPLACE_CMD} -e 's|make|${GMAKE}|g; \ s|$$(INSTALL) \(pho \)|${INSTALL_PROGRAM} \1|; \ s|$$(INSTALL) \(pho.1\)|${INSTALL_MAN} \1|; \ - s|-g -O2|${CFLAGS}|' \ + s|-g -O2|${CFLAGS}|; s|pho xpho$$|pho|' \ + ${WRKSRC}/Makefile +.if defined(WITH_GTK1) + @${REINPLACE_CMD} -e 's|^G2FLAGS|#G2FLAGS|' \ ${WRKSRC}/Makefile +.endif + +MAN1= pho.1 +PLIST_FILES= bin/pho -.include +.include diff --git a/graphics/pho/distinfo b/graphics/pho/distinfo index 808a8e3dab44..5618ef58b4f4 100644 --- a/graphics/pho/distinfo +++ b/graphics/pho/distinfo @@ -1,2 +1,2 @@ -MD5 (pho-0.9.2.tar.gz) = 4a41a6bac06eb6333471e0345ed491c4 -SIZE (pho-0.9.2.tar.gz) = 64245 +MD5 (pho-0.9.5-pre3.tar.gz) = b7cb68c2cbe17b9e4f442ed41869cc36 +SIZE (pho-0.9.5-pre3.tar.gz) = 67987 -- cgit v1.2.3