summaryrefslogtreecommitdiff
path: root/editors/code-browser/Makefile
blob: a5d1108e85b986df6b13a015d7b886c54c97b6c3 (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
# ex:ts=8
# Ports collection makefile for:	code-browser
# Date created:			Jan 25, 2005
# Whom:				ijliao
#
# $FreeBSD$
#

PORTNAME=	code-browser
PORTVERSION=	1.5
CATEGORIES=	editors
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	${PORTNAME}
DISTNAME=	${PORTNAME}-${PORTVERSION}-src

MAINTAINER=	ports@FreeBSD.org
COMMENT=	A Folding Text Editor

WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}

USE_GCC=	3.4+
USE_GNOME=	gtk20
USE_REINPLACE=	yes

PLIST_FILES=	bin/code-browser \
		%%DATADIR%%/languages.cb-config \
		%%DATADIR%%/user-preferences.cb-config
PLIST_DIRS=	%%DATADIR%%

.include <bsd.port.pre.mk>

.if ${ARCH} != "i386"
BROKEN=		"Does not build on !i386; signal 11 errors during build"
.endif

post-patch:
.for file in Makefile zinc/Makefile
	@${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|g ; \
		 s|^CC|#CC|g ; \
		 s|^CFLAGS|#CFLAGS|g ; \
		 s| make| $$(MAKE)|g' ${WRKSRC}/${file}
.endfor

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/code-browser \
		${PREFIX}/bin/code-browser
	@${MKDIR} ${DATADIR}
	${INSTALL_DATA} ${WRKSRC}/config/languages.cb-config \
		${DATADIR}/languages.cb-config
	${INSTALL_DATA} ${WRKSRC}/config/user-preferences-x.cb-config \
		${DATADIR}/user-preferences.cb-config

.include <bsd.port.post.mk>