aboutsummaryrefslogtreecommitdiff
path: root/editors/bed/Makefile
blob: 43c9317b1a86799c342f194f669d65683d81c63a (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
# New ports collection makefile for:    bed
# Date created:         2001/05/07
# Whom:                 jkaltes@hetnet.nl
#
# $FreeBSD$
#

PORTNAME=	bed
PORTVERSION=	0.2.19
PORTREVISION=	2
CATEGORIES=	editors
MASTER_SITES=	${MASTER_SITE_SUNSITE}
MASTER_SITE_SUBDIR=	apps/editors/terminal
EXTRACT_SUFX=	.src.tar.gz

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Variable dataformat binary editor

BUILD_DEPENDS=	${LOCALBASE}/bin/bash:${PORTSDIR}/shells/bash2

# Cannot guarantee rxvt will have menubar enabled on bento.
.if defined(PACKAGE_BUILDING)
WITHOUT_X11=	yes
.endif

.if !defined(WITHOUT_X11)
PATCH_DEPENDS+=	${X11BASE}/bin/rxvt:${PORTSDIR}/x11/rxvt
RUN_DEPENDS+=	${X11BASE}/bin/rxvt:${PORTSDIR}/x11/rxvt
.endif

GNU_CONFIGURE=	yes
USE_GCC=	2.95
USE_GMAKE=	yes

MAN1=		bed.1 xbed.1
MANCOMPRESSED=	yes

.include <bsd.port.pre.mk>

.if ${OSVERSION} >= 502126
BROKEN=		"Does not compile on FreeBSD >= 5.x"
.endif

.if ${ARCH} == "amd64"
BROKEN=		"Does not compile on amd64 (missing -fPIC)"
.endif

.if ${ARCH} == "ia64"
BROKEN=		"Hangs during configure"
.endif

.if defined(WITHOUT_X11)
CONFIGURE_ARGS+=--without-x
PLIST_SUB+=	X11="@comment "
.else
PLIST_SUB+=	X11=""

.if !defined(BATCH) && !defined(PACKAGE_BUILDING)
pre-configure:
	@if "${X11BASE}/bin/rxvt" -h 2>&1 | ${GREP} -qi menubar; then \
	else \
		${ECHO_MSG} "${PORTSDIR}/x11/rxvt must be compiled with the option"; \
		${ECHO_MSG} "	WITH_MENUBAR=yes"; \
		${ECHO_MSG} "to enable X11 support."; \
		exit 1; \
	fi
.endif
.endif

post-configure:
	${ECHO_MSG} 'CONFIG_DEBUG=n' >> ${WRKSRC}/config
	${ECHO_MSG} 'CONFIG_MMAP=y' >> ${WRKSRC}/config
	${GMAKE} -C ${WRKSRC} dep

.include <bsd.port.post.mk>