summaryrefslogtreecommitdiff
path: root/x11/ecore/Makefile
blob: 3f28e3ec93049dc79587c8a2c25c6405a76086fe (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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# New ports collection makefile for:	ecore
# Date created:				16 March 2001
# Whom:					Jeremy Norris <ishmael27@home.com>
#
# $FreeBSD$
#

PORTNAME=	ecore
PORTVERSION=	20070223
PORTREVISION=	1
PORTEPOCH=	1
CATEGORIES=	x11
MASTER_SITES=	ftp://ftp.springdaemons.com/pub/snapshots/e17/

MAINTAINER=	stas@FreeBSD.org
COMMENT=	A core event abstraction library

GNU_CONFIGURE=	yes
USE_BZIP2=	yes
USE_ICONV=	yes
USE_GNOME=	gnomehack pkgconfig gnometarget
USE_EFL=	evas
USE_LDCONFIG=	yes
USE_GETOPT_LONG=yes

CONFIGURE_ARGS=	--disable-ecore-dfb

OPTIONS=	DBUS		"Enable DBUS support" on \
		CURL		"Enable Curl support" on \
		X11		"Enable X11 support" on \
		EVAS		"Enable evas support" on \
		EET		"Enable EET configs support" on
#		OPENSSL		"Enable OpenSSL support" on \
#		DIRECTFB	"Enable DirectFB support" off \

.include <bsd.port.pre.mk>

.if !defined(WITHOUT_X11)
CONFIGURE_ARGS+=	--enable-ecore-x
USE_XLIB=		yes
PLIST_SUB+=		X11=""
.else
CONFIGURE_ARGS+=	--disable-ecore-x
PLIST_SUB+=		X11="@comment "
.endif

.if !defined(WITHOUT_EVAS)
CONFIGURE_ARGS+=	--enable-ecore-evas
USE_EFL+=		evas
PLIST_SUB+=		EVAS=""
.else
CONFIGURE_ARGS+=	--disable-ecore-evas
PLIST_SUB+=		EVAS="@comment "
.endif

.if !defined(WITHOUT_CURL)
CONFIGURE_ARGS+=	--enable-curl
LIB_DEPENDS+=		curl.4:${PORTSDIR}/ftp/curl
PLIST_SUB+=		CURL=""
.else
CONFIGURE_ARGS+=	--disable-curl
PLIST_SUB+=		CURL="@comment "
.endif

#.if !defined(WITHOUT_OPENSSL)
#CONFIGURE_ARGS+=	--enable-openssl
#PLIST_SUB+=		OPENSSL=""
#USE_OPENSSL=		yes
#.else
#CONFIGURE_ARGS+=	--disable-openssl
#PLIST_SUB+=		OPENSSL="@comment "
#.endif

.if defined(WITH_DBUS)
CONFIGURE_ARGS+=	--enable-ecore-dbus
PLIST_SUB+=		DBUS=""
.else
CONFIGURE_ARGS+=	--disable-ecore-dbus
PLIST_SUB+=		DBUS="@comment "
.endif

#.if defined(WITH_DIRECTFB)
#CONFIGURE_ARGS+=	--enable-ecore-dfb
#PLIST_SUB+=		DIRECTFB=""
#LIB_DEPENDS+=		directfb-0.9.16:${PORTSDIR}/devel/directfb
#.else
#CONFIGURE_ARGS+=	--disable-ecore-dfb
#PLIST_SUB+=		DIRECTFB="@comment "
#.endif

.if !defined(WITHOUT_EET)
CONFIGURE_ARGS+=	--enable-ecore-config
USE_EFL+=		eet
PLIST_SUB+=		EET=""
.else
CONFIGURE_ARGS+=	--disable-ecore-config
PLIST_SUB+=		EET="@comment "
.endif

.include <bsd.port.post.mk>