summaryrefslogtreecommitdiff
path: root/graphics/libpano13/Makefile
blob: 49752b8b65720a37b474b2f44e1e842bdf0fc40d (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
58
59
60
61
62
63
64
# New ports collection makefile for:	libpano13
# Date created:				8 October 2007
# Whom:					Vasil Dimov <vd@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	libpano13
PORTVERSION=	2.9.17
PORTREVISION=	1
CATEGORIES=	graphics java
MASTER_SITES=	SF/panotools/${PORTNAME}/${PORTNAME}-${PORTVERSION}

MAINTAINER=	vd@FreeBSD.org
COMMENT=	Cross-platform library behind Panorama Tools and other photo stitchers

LIB_DEPENDS=	jpeg:${PORTSDIR}/graphics/jpeg \
		png:${PORTSDIR}/graphics/png \
		tiff:${PORTSDIR}/graphics/tiff

USE_GNOME=	gtk20 glib20 pango atk

USE_AUTOTOOLS=	autoconf:env autoheader:env aclocal:env \
		automake:env libtool:env
GNU_CONFIGURE=	yes
CPPFLAGS+=	-I${LOCALBASE}/include/gtk-2.0 \
		-I${LOCALBASE}/include/glib-2.0 \
		-I${LOCALBASE}/include/pango-1.0 \
		-I${LOCALBASE}/include/atk-1.0
CONFIGURE_ARGS=	--with-png=${LOCALBASE} \
		--with-jpeg=${LOCALBASE} \
		--with-tiff=${LOCALBASE}

USE_LDCONFIG=	yes

MAN1=		\
		PTAInterpolate.1 \
		PTblender.1 \
		PTcrop.1 \
		PTinfo.1 \
		PTmasker.1 \
		PTmender.1 \
		PToptimizer.1 \
		PTroller.1 \
		PTtiff2psd.1 \
		PTtiffdump.1 \
		PTuncrop.1 \
		panoinfo.1

.if !defined(WITHOUT_JAVA)
USE_JAVA=	yes
JAVA_VERSION=	1.5+
JAVA_OS=	native
CONFIGURE_ARGS+=	--with-java=${JAVA_HOME}
PLIST_SUB=	JAVA=""
.else
CONFIGURE_ARGS+=	--without-java
PLIST_SUB=	JAVA="@comment "
.endif

pre-configure:
	cd ${WRKSRC} && ./bootstrap

.include <bsd.port.mk>