freebsd-ports/editors/code-browser/Makefile
Martin Wilke bac887f444 - Update to 2.10
PR:		ports/106139
Submitted by:   KATO Tsuguru <tkato432@yahoo.com>
2006-12-01 23:47:55 +00:00

59 lines
1.3 KiB
Makefile

# ex:ts=8
# Ports collection makefile for: code-browser
# Date created: Jan 25, 2005
# Whom: ijliao
#
# $FreeBSD$
#
PORTNAME= code-browser
PORTVERSION= 2.10
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_GMAKE= yes
PORTDOCS= code-browser.chm doc.css doc.html
PLIST_FILES= bin/code-browser \
%%DATADIR%%/languages.cb-config \
%%DATADIR%%/preferences.cb-config
PLIST_DIRS= %%DATADIR%%
.include <bsd.port.pre.mk>
.if ${ARCH} != "i386" && ${ARCH} != "amd64"
BROKEN= does not build on ${ARCH}; signal 11 errors during build
.endif
.if ${ARCH} == "amd64"
MAKE_ARGS+= MODE=64
.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 ; \
s|@$$(|$$(|g' ${WRKSRC}/${file}
.endfor
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/code-browser ${PREFIX}/bin
${MKDIR} ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/config/*.* ${DATADIR}
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/docs/*.* ${DOCSDIR}
.endif
.include <bsd.port.post.mk>