aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/geeqie/Makefile
blob: 2595b42398e66b9cdff64db328ba62df258ce0bd (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
# Created by: Martin Tournoij <carpetsmoker@rwxrwxrwx.net>
# $FreeBSD$

PORTNAME=   geeqie
PORTVERSION=    1.3
PORTREVISION=   1
CATEGORIES= graphics
MASTER_SITES=   http://www.geeqie.org/

MAINTAINER= amdmi3@FreeBSD.org
COMMENT=    Lightweight image viewer forked from GQview

LICENSE=    GPLv2+
LICENSE_FILE=   ${WRKSRC}/COPYING

LIB_DEPENDS=    libpng.so:graphics/png

USES=       autoreconf gettext gmake jpeg localbase pkgconfig \
        desktop-file-utils tar:xz lua:51
USE_GNOME=  gtk30 intltool
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --with-readmedir="${DOCSDIR}"

PORTDOCS=   *

OPTIONS_DEFINE= EXIV2 LCMS LIRC GPS TIFF DOCS
OPTIONS_DEFAULT=EXIV2 LCMS
EXIV2_DESC= Metadata editing
LCMS_DESC=  Color adjusting
LIRC_DESC=  Remote control
GPS_DESC=   GPS map support via libchamplain (experimental!)

EXIV2_LIB_DEPENDS=  libexiv2.so:graphics/exiv2
EXIV2_CONFIGURE_ENABLE= exiv2

LCMS_LIB_DEPENDS=   liblcms2.so:graphics/lcms2
LCMS_CONFIGURE_ENABLE=  lcms

LIRC_LIB_DEPENDS=   liblirc_client.so:comms/lirc
LIRC_CONFIGURE_ENABLE=  lirc

GPS_LIB_DEPENDS=    libchamplain-0.12.so:graphics/libchamplain \
            libclutter-gtk-1.0.so:graphics/clutter-gtk3
GPS_CONFIGURE_ENABLE=   gps clutter

TIFF_LIB_DEPENDS=   libtiff.so:graphics/tiff
TIFF_CONFIGURE_ENABLE=  tiff

post-patch:
    @${REINPLACE_CMD} -e 's| -r %F||' ${WRKSRC}/geeqie.desktop.in
    @${REINPLACE_CMD} -e '/readme_DATA/ s|COPYING||' ${WRKSRC}/Makefile.am
    @${REINPLACE_CMD} -e 's|lua5.1|lua-5.1|' ${WRKSRC}/configure.in
# I cannot get gnome-doc-tool working properly: Outputs gibberish
    @${REINPLACE_CMD} -Ee '/^(SUBDIRS|DIST_SUBDIRS)/ s|doc||' \
        ${WRKSRC}/Makefile.am

.include <bsd.port.mk>