aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/gtkam/Makefile
blob: a3034bcb966edf89c633b4bbb722df8df1496589 (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
# Created by: ports@FreeBSD.org
# $FreeBSD$

PORTNAME=   gtkam
PORTVERSION=    0.2.0
PORTREVISION=   1
CATEGORIES= graphics
MASTER_SITES=   SF/gphoto/${PORTNAME}/${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Download and view files from various digital cameras

LICENSE=    GPLv2 # (or later)

LIB_DEPENDS=    libexif-gtk.so:${PORTSDIR}/graphics/libexif-gtk \
        libgphoto2.so:${PORTSDIR}/graphics/libgphoto2

USES=       gmake pathfix pkgconfig
USE_GNOME=  gnomehier gtk20
GNU_CONFIGURE=  yes

CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib
LIBS+=      `pkg-config --libs gtk+-x11-2.0`

OPTIONS_DEFINE= DOCS GIMP GNOME
OPTIONS_SUB=    yes

GIMP_DESC=      GIMP plugin support
GIMP_LIB_DEPENDS=   libgimp-2.0.so:${PORTSDIR}/graphics/gimp
GIMP_CONFIGURE_WITH=    gimp

GNOME_USE=      GNOME=gnomeprefix,libgnomeui
GNOME_CONFIGURE_OFF=    --without-bonobo --without-gnome
GNOME_MAKE_ENV=     GNOME_SUBDIRS="help omf-install"

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MGNOME}
INSTALLS_OMF=   yes
.endif

post-patch:
    @${REINPLACE_CMD} -e 's|GIMP_VERSION="2.0"|GIMP_VERSION="2.2"|g ; \
         s|images/gtkam|gtkam/images|g ; \
         s|FLAGS -g|FLAGS|g' ${WRKSRC}/configure
    @${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
        's|images/gtkam|gtkam/images|g ; \
         s|$$(libdir)/gimp/|$$(libexecdir)/gimp/|g'

.include <bsd.port.mk>