aboutsummaryrefslogtreecommitdiff
path: root/deskutils/gnome-epub-thumbnailer/Makefile
blob: c7033b41b670889995980314f086a3efa305bc10 (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
# Created by: Gustau Perez <gustau.perez@gmail.com>
# $FreeBSD$
#   $MCom: ports/trunk/deskutils/gnome-epub-thumbnailer/Makefile 20014 2014-10-23 07:08:54Z gusi $

PORTNAME=	gnome-epub-thumbnailer
PORTVERSION=	1.4
PORTREVISION=	1
CATEGORIES=	deskutils gnome
MASTER_SITES=	https://git.gnome.org/browse/gnome-epub-thumbnailer/snapshot/
DIST_SUBDIR=	gnome3

MAINTAINER=	gnome@FreeBSD.org
COMMENT=	Thumbnailer for EPub and MOBI books

BUILD_DEPENDS=	gnome-autogen.sh:${PORTSDIR}/devel/gnome-common

USES=		autoreconf:build gettext gmake libtool pathfix pkgconfig
USE_GNOME=	gdkpixbuf2 gnomedesktop3 gnomeprefix gtk30 \
		intlhack libxml2
USE_LDCONFIG=	yes
GNU_CONFIGURE=	yes
INSTALLS_ICONS=	yes
CPPFLAGS+=	-I${LOCALBASE}/include -Wno-error=format-nonliteral
LDFLAGS+=	-L${LOCALBASE}/lib -larchive

post-patch:
	@${REINPLACE_CMD} -e 's|gio-2.0 libarchive libxml-2.0|gio-2.0 libxml-2.0|g' \
		${WRKSRC}/configure.ac

pre-configure:
	cd ${WRKSRC} && ${SETENV} NOCONFIGURE=yes ${SH} ./autogen.sh

.include <bsd.port.mk>