aboutsummaryrefslogtreecommitdiff
path: root/x11-toolkits/erlgtk/Makefile
blob: 424023c92db1d4541715cda470ca0d03087b12c7 (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
# New ports collection makefile for:	erlgtk
# Date Created:				2 June 2003
# Whom:				 	cpressey@catseye.mb.ca
#
# $FreeBSD$
#

PORTNAME=	erlgtk
PORTVERSION=	0.9.7
PORTREVISION=	1
CATEGORIES=	x11-toolkits
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	erlgtk
DIST_SUBDIR=	erlang

MAINTAINER=	ports@FreeBSD.org
COMMENT=	GTK+ binding for Erlang/OTP

BUILD_DEPENDS=	erlc:${PORTSDIR}/lang/erlang
RUN_DEPENDS=	erl:${PORTSDIR}/lang/erlang
.if defined(PACKAGE_BUILDING)
BUILD_DEPENDS+=	Xvfb:${X_VFBSERVER_PORT}
.endif

BROKEN=		Missing dependency

PLIST_SUB=	VERSION="${PORTVERSION}"

CONFIGURE_WRKSRC=${WRKSRC}/config
GNU_CONFIGURE=	yes
USE_AUTOCONF_VER=	213
USE_GMAKE=	yes

.if defined(WITH_GTK2)
PKGNAMESUFFIX=	-gtk2
CONFIGURE_ARGS=	--without-gnome --with-gtk=2.0
USE_GNOME=	gtk20 gdkpixbuf
.else
CONFIGURE_ARGS=	--without-gnome --with-gtk=1.2
USE_GNOME=	gtk12 gdkpixbuf
.endif

.if !defined(DISPLAY) && !defined(PACKAGE_BUILDING)
IGNORE=		must be built from within the X11 environment
.endif

pre-everything::
	@${ECHO} ""
	@${ECHO} "The following build options are available:"
	@${ECHO} ""
	@${ECHO} "      WITH_GTK2=yes      Build erlgtk with GTK+ 2.x binding"
	@${ECHO} ""

post-install:
	@${LN} -sf ${DISTNAME} ${PREFIX}/lib/erlang/lib/erlgtk

.include <bsd.port.mk>