freebsd-ports/graphics/pho/Makefile
Alexey Dokuchaev 35a180fa53 Teach pho to skip further options handling (previously, it was impossible to
view files which names start with `-').  Bump PORTREVISION.
2006-09-11 09:10:19 +00:00

45 lines
942 B
Makefile

# New ports collection makefile for: pho
# Date created: 10 April 2003
# Whom: Roland Jesse <roland.jesse@gmx.net>
#
# $FreeBSD$
#
PORTNAME= pho
DISTVERSION= 0.9.5-pre4
PORTREVISION= 2
CATEGORIES= graphics
MASTER_SITES= http://shallowsky.com/software/pho/
MAINTAINER= danfe@FreeBSD.org
COMMENT= A lightweight image viewer
USE_GMAKE= yes
MAKE_ARGS= INSTALLPREFIX="${PREFIX}"
WANT_GNOME= yes
OPTIONS= GTK1 "Build with legacy GTK version (1.2.x)" Off
.include <bsd.port.pre.mk>
.if defined(WITH_GTK1)
USE_GNOME= gdkpixbuf gtk12
BAD_GTK= 2
.else
USE_GNOME= gtk20
BAD_GTK= 1
.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|pho xpho$$|pho|' \
${WRKSRC}/Makefile
@${REINPLACE_CMD} -e 's|^G${BAD_GTK}FLAGS|#&|' ${WRKSRC}/Makefile
MAN1= pho.1
PLIST_FILES= bin/pho
.include <bsd.port.post.mk>