blob: 487549f81830a61a0595f4b46dfa707306b05153 (
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
# New ports collection makefile for: graphics/geeqie
# Date created: 17 May 2008
# Whom: Martin Tournoij <carpetsmoker@rwxrwxrwx.net>
#
# $FreeBSD$
#
PORTNAME= geeqie
PORTVERSION= 1.0
PORTREVISION= 4
CATEGORIES= graphics
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Lightweight image viewer forked from GQview
LIB_DEPENDS= png.6:${PORTSDIR}/graphics/png
USE_GNOME= gtk20 desktopfileutils
GNU_CONFIGURE= yes
USE_GMAKE= yes
CONFIGURE_ARGS= --docdir="${DOCSDIR}" \
--htmldir="${DOCSDIR}/html" \
--with-htmldir="${DOCSDIR}/html" \
--with-readmedir="${DOCSDIR}"
CFLAGS+= -I${LOCALBASE}/include
CPPFLAGS+= ${CFLAGS}
LDFLAGS+= -L${LOCALBASE}/lib
MAKE_ARGS+= top_builddir="${WRKSRC}"
MAKE_JOBS_SAFE= yes
PORTDOCS= *
MAN1= geeqie.1
USE_GETTEXT= yes
OPTIONS= EXIV2 "Metadata editing" on \
LCMS "Color adjusting" on \
LIRC "Remote control" off \
GPS "GPS map support (libchamplain) EXPERIMENTAL" off
.include <bsd.port.pre.mk>
.if defined(WITH_EXIV2)
LIB_DEPENDS+= exiv2.10:${PORTSDIR}/graphics/exiv2
CONFIGURE_ARGS+=--enable-exiv2
.else
CONFIGURE_ARGS+=--disable-exiv2
.endif
.if defined(WITH_LCMS)
LIB_DEPENDS+= lcms.1:${PORTSDIR}/graphics/lcms
CONFIGURE_ARGS+=--enable-lcms
.else
CONFIGURE_ARGS+=--disable-lcms
.endif
.if defined(WITH_LIRC)
LIB_DEPENDS+= lirc_client.2:${PORTSDIR}/comms/lirc
CONFIGURE_ARGS+=--enable-lirc
.else
CONFIGURE_ARGS+=--disable-lirc
.endif
# Support for libchamplain is marked as experimental!
.if defined(WITH_GPS)
LIB_DEPENDS+= champlain-0.8.1:${PORTSDIR}/graphics/libchamplain
CONFIGURE_ARGS+=--enable-gps
.else
CONFIGURE_ARGS+=--disable-gps
.endif
post-patch:
@${REINPLACE_CMD} -e 's|MAP_ANONYMOUS|MAP_ANON|' ${WRKSRC}/src/main.c
@${REINPLACE_CMD} -e 's| -r %F||' ${WRKSRC}/geeqie.desktop
# I cannot get gnome-doc-tool working properly: Outputs gibberish
@${REINPLACE_CMD} -Ee '/^(SUBDIRS|DIST_SUBDIRS)/ s|doc||' \
${WRKSRC}/Makefile.in
.if defined(NOPORTDOCS)
@${REINPLACE_CMD} -e '/^install-data-am:/ s|install-helpDATA||' \
${WRKSRC}/doc/Makefile.in
@${REINPLACE_CMD} -e '/^install-data-am:/,/^[a-z]/ s|install-readmeDATA||' \
${WRKSRC}/Makefile.in
.endif
.include <bsd.port.post.mk>
|