summaryrefslogtreecommitdiffstats
path: root/x11-toolkits/gnustep-back/Makefile
blob: e1da1eeacff8d674f4e45760b79ef08242405013 (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
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
# New ports collection makefile for:	gnustep-back
# Date created:				27.October 2002
# Whom:					dirk.meyer@dinoex.sub.org
#
# $FreeBSD$
#

PORTNAME=	gnustep-back
.if defined(WITH_GNUSTEP_DEVEL)
PORTVERSION=	0.8.8
PORTREVISION=	1
.else
PORTVERSION=	0.8.5
.endif
CATEGORIES=	x11-toolkits
MASTER_SITES=	${MASTER_SITE_GNUSTEP} \
		ftp://ftp.gnustep.org/pub/gnustep/%SUBDIR%/
MASTER_SITE_SUBDIR=	core

MAINTAINER=	dinoex@FreeBSD.org
COMMENT=	GNUstep GUI backend

LIB_DEPENDS+=	jpeg.9:${PORTSDIR}/graphics/jpeg
LIB_DEPENDS+=	tiff.4:${PORTSDIR}/graphics/tiff
LIB_DEPENDS+=	Xft.2:${PORTSDIR}/x11-fonts/Xft

USE_XLIB=		yes
PREFIX=			${LOCALBASE}/GNUstep
NO_MTREE=		yes
GNU_CONFIGURE=		yes
CONFIGURE_TARGET=
CONFIGURE_ARGS+=	--with-tiff-library=${LOCALBASE}/lib
CONFIGURE_ARGS+=	--with-tiff-include=${LOCALBASE}/include
CONFIGURE_ARGS+=	--with-jpeg-library=${LOCALBASE}/lib
CONFIGURE_ARGS+=	--with-jpeg-include=${LOCALBASE}/include
#CPPFLAGS+=		-I${LOCALBASE}/include/freetype2
CONFIGURE_ENV+=		CPPFLAGS="${CPPFLAGS}"
USE_GMAKE=		yes
MAKEFILE=
MAKE_FLAGS+=		OPTFLAG="${CFLAGS} -I${X11BASE}/include"
MAKE_ENV+=		ADDITIONAL_LDFLAGS=-lcipher
BREAKS_IF_PEDANTIC=	yes

.if defined(WITH_GNUSTEP_XDPS)
CONFIGURE_ARGS+=	--enable-graphics=xdps --with-name=xdps
PLIST_SUB+=		BACK=xdps
PLIST_SUB+=		USE_XLIB="@comment " USE_XDPS="" USE_ART="@comment "
PKGNAMESUFFIX?=		-xdps
.else
.if defined(WITH_GNUSTEP_LIBART)
LIB_DEPENDS+=		art_lgpl_2:${PORTSDIR}/graphics/libart_lgpl2
CONFIGURE_ARGS+=	--enable-graphics=art --with-name=art
PLIST_SUB+=		BACK=art USE_XLIB="@comment "
PLIST_SUB+=		USE_XLIB="@comment " USE_XDPS="@comment " USE_ART=""
PKGNAMESUFFIX?=		-art
.if !defined(WITH_GNUSTEP_DEVEL)
EXTRA_PATCHES+=		${FILESDIR}/ftfont.m.diff
.endif
.else
CONFIGURE_ARGS+=	--enable-graphics=xlib --with-name=back
PLIST_SUB+=		BACK=back
PLIST_SUB+=		USE_XLIB="" USE_XDPS="@comment " USE_ART="@comment "
.endif
.endif

.include <bsd.port.pre.mk>

USE_GNUSTEP_GUI=	yes
USE_GNUSTEP_CONFIGURE=	yes
USE_GNUSTEP_BUILD=	yes
USE_GNUSTEP_INSTALL=	yes
.include "${PORTSDIR}/devel/gnustep/bsd.gnustep.mk"

post-extract:
.for file in config.guess config.sub install-sh
	@${CP} ${PREFIX}/System/Makefiles/${file} ${WRKSRC}
.endfor

.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud