summaryrefslogtreecommitdiffstats
path: root/graphics/fotoxx/Makefile
blob: 9bc46f665a60b7ad6342a4785c1dba801b318242 (plain)
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
# Created by: Rod Person <rodperson@rodperson.com>
# $FreeBSD$

PORTNAME=	fotoxx
PORTVERSION=	14.02.2
CATEGORIES=	graphics
MASTER_SITES=	http://www.kornelix.com/uploads/1/3/0/3/13035936/ \
		LOCAL/mandree

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Application to organize and edit image collections

LICENSE=	GPLv3

LIB_DEPENDS=	libexecinfo.so:${PORTSDIR}/devel/libexecinfo
RUN_DEPENDS=	xdg-open:${PORTSDIR}/devel/xdg-utils \
		ufraw-batch:${PORTSDIR}/graphics/ufraw \
		exiftool:${PORTSDIR}/graphics/p5-Image-ExifTool \
		dcraw:${PORTSDIR}/graphics/dcraw

USES=		gmake desktop-file-utils pkgconfig
USE_GNOME=	gtk30

ALL_TARGET=	fotoxx
INSTALL_TARGET=	install MANDIR=${PREFIX}/man/man1/

LDFLAGS+=	-O3 -g -Wall -rdynamic -lexecinfo

OPTIONS_DEFINE=	DOCS

post-patch:
	@# drop xdg-desktop-menu calls, they fail
	${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \
		-e '/xdg-desktop-menu/d' \
		-e '/rm -f -R/d' \
		${WRKSRC}/Makefile
	@# replace obsolete include files
	${REINPLACE_CMD} -e 's|<malloc.h>|<stdlib.h>|' \
		${WRKSRC}/zfuncs.h
	@# fix up icon path in XDG .desktop file
	${REINPLACE_CMD} -e 's}/usr/share/fotoxx}${DATADIR}}' \
		${WRKSRC}/desktop

post-install:
		${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/fotoxx

.include <bsd.port.pre.mk>

# These hacks are required because the nginx server at the primary
# master site and most of our fetch(1) versions do not get along well.
#   This code can be removed once r261263 has been merged from
# base/head into all ports-supported releases.
# We depend on cURL unless wget is in $LOCALPATH:
DISABLE_SIZE=	yes
.if exists(${LOCALBASE}/bin/wget) && !exists(${PREFIX}/bin/curl)
FETCH_CMD=		${LOCALBASE}/bin/wget -c -nc
.else
FETCH_DEPENDS=		curl:${PORTSDIR}/ftp/curl
FETCH_CMD=		${PREFIX}/bin/curl -OL0C -
.endif

.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud