blob: f2aa793dd95dd35f82472716c2216a1e24a5b844 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# New ports collection makefile for: pho
# Date created: 10 April 2003
# Whom: Roland Jesse <roland.jesse@gmx.net>
#
# $FreeBSD$
#
PORTNAME= pho
DISTVERSION= 0.9.6
PORTREVISION= 1
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}"
ALL_TARGET= pho
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}| ; \
s|$$(INSTALL) \(pho \)|${INSTALL_PROGRAM} \1| ; \
s|$$(INSTALL) \(pho.1\)|${INSTALL_MAN} \1| ; \
s|-g -Wall|${CFLAGS}|; s|^G${BAD_GTK}FLAGS|#&|' \
${WRKSRC}/Makefile
@${REINPLACE_CMD} -e 's|-Wall -g -O2 ||' ${WRKSRC}/exif/Makefile
MAN1= pho.1
PLIST_FILES= bin/pho
.include <bsd.port.post.mk>
|