summaryrefslogtreecommitdiff
path: root/graphics/evas/Makefile.common
blob: 20f5f3b218070275f913fcc6c52d2ad613f1f559 (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
# $NetBSD: Makefile.common,v 1.10 2011/05/09 13:06:29 cheusov Exp $
# used by graphics/evas-png/Makefile

DISTNAME=	evas-0.9.9.063
CATEGORIES=	graphics
MASTER_SITES=	http://download.enlightenment.org/snapshots/2009-12-02/

MAINTAINER=	yazzy@yazzy.org
HOMEPAGE=	http://enlightenment.org/

PKG_DESTDIR_SUPPORT=	user-destdir

DISTINFO_FILE=	${.CURDIR}/../../graphics/evas/distinfo
PATCHDIR=	${.CURDIR}/../../graphics/evas/patches

GNU_CONFIGURE=	yes
USE_LIBTOOL=	yes
USE_TOOLS+=	gmake pkg-config

.for mod in software-ddraw software-16-ddraw direct3d software-16-wince \
	software-xlib software-16-x11 software-xcb directfb sdl \
	sdl-primitive fb buffer software-qtopia gl-x11 quartz gl-glew \
	xrender-x11 xrender-xcb glitz-x11
.  if defined(EVAS_ENGINES) && !empty(EVAS_ENGINES:M${mod})
CONFIGURE_ARGS+=	--enable-${mod}
.  else
CONFIGURE_ARGS+=	--disable-${mod}
.  endif
.endfor

.for mod in gif png jpeg eet edb tiff xpm svg pmaps
.  if defined(EVAS_IMAGE_LOADERS) && !empty(EVAS_IMAGE_LOADERS:M${mod})
CONFIGURE_ARGS+=	--enable-image-loader-${mod}
.  else
CONFIGURE_ARGS+=	--disable-image-loader-${mod}
.  endif
.endfor

.include "../../mk/bsd.prefs.mk"

.if !empty(MACHINE_PLATFORM:M*-powerpc)
CONFIGURE_ARGS+=	--enable-cpu-altivec
.endif

MODULE_ARCH=	${LOWER_OPSYS}-${LOWER_ARCH}
PLIST_SUBST=	MODULE_ARCH=${MODULE_ARCH}
PRINT_PLIST_AWK+=        { gsub(/${MODULE_ARCH}/, "$${MODULE_ARCH}") }

MAKE_FLAGS+=	MODULE_ARCH=${MODULE_ARCH}