mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-28 01:06:17 +00:00
5035f7a270
PR: ports/181073 Submitted by: Ports Fury
50 lines
1.2 KiB
Makefile
50 lines
1.2 KiB
Makefile
# Created by: ports@FreeBSD.org
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= gtkam
|
|
PORTVERSION= 0.2.0
|
|
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
|
|
|
|
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>
|