aboutsummaryrefslogtreecommitdiff
path: root/graphics/devil/Makefile
blob: 3733f4d154fcf250957cd8e335f19c86ccc2c381 (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
# New ports collection makefile for:   devil
# Date created:        8 August 2004
# Whom:                Andreas Kohn <andreas@syndrom23.de>
#
# $FreeBSD$
#

PORTNAME=	devil
PORTVERSION=	1.6.7
PORTREVISION=	6
CATEGORIES=	graphics
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	openil
DISTNAME=	DevIL-${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	A full featured cross-platform image library

LIB_DEPENDS=	png.5:${PORTSDIR}/graphics/png \
		jpeg.9:${PORTSDIR}/graphics/jpeg \
		tiff.4:${PORTSDIR}/graphics/tiff \
		mng.1:${PORTSDIR}/graphics/libmng \
		lcms.1:${PORTSDIR}/graphics/lcms

USE_AUTOTOOLS=	libtool:15
USE_GL=		yes
USE_LDCONFIG=	yes
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--disable-allegro
CONFIGURE_ENV=	CFLAGS="${CFLAGS} -I${LOCALBASE}/include -L${LOCALBASE}/lib"

OPTIONS=	SDL "Enable SDL support" off

.include <bsd.port.pre.mk>

.if defined(WITH_SDL)
USE_SDL=	yes
.else
CONFIGURE_ARGS+=--disable-sdl
.endif

post-patch:
	${FIND} ${WRKSRC} \( -name '*.c' -o -name '*.cpp' -o -name '*.h' \) -print0 |\
		${XARGS} -0 ${REINPLACE_CMD} 's|ILvoid|void|g'

.include <bsd.port.post.mk>