2006-06-27 09:57:57 +02:00
|
|
|
# New ports collection makefile for: scite
|
2000-11-27 14:54:39 +01:00
|
|
|
# Date created: 27 November 2000
|
|
|
|
# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= scite
|
2012-08-13 21:41:49 +02:00
|
|
|
PORTVERSION= 3.2.1
|
2000-11-27 14:54:39 +01:00
|
|
|
CATEGORIES= editors gnome
|
2009-08-26 22:33:10 +02:00
|
|
|
MASTER_SITES= SF/scintilla/SciTE/${PORTVERSION}
|
2000-11-27 14:54:39 +01:00
|
|
|
DISTNAME= ${PORTNAME}${PORTVERSION:S/.//g}
|
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
2007-08-22 05:36:05 +02:00
|
|
|
MAINTAINER= cyberbotx@cyberbotx.com
|
2012-07-25 13:24:09 +02:00
|
|
|
COMMENT= Full-featured SCIntilla based text editor for GTK/GNOME
|
2000-11-27 14:54:39 +01:00
|
|
|
|
2009-08-14 02:29:29 +02:00
|
|
|
LIB_DEPENDS= scintilla.2:${PORTSDIR}/x11-toolkits/scintilla
|
2010-03-13 08:44:03 +01:00
|
|
|
RUN_DEPENDS= xdg-open:${PORTSDIR}/devel/xdg-utils
|
2000-11-27 14:54:39 +01:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}/gtk
|
|
|
|
|
|
|
|
USE_GMAKE= yes
|
2007-08-22 05:36:05 +02:00
|
|
|
USE_GNOME= gtk20
|
2000-11-27 14:54:39 +01:00
|
|
|
MAKEFILE= makefile
|
2010-10-28 10:31:01 +02:00
|
|
|
MAKE_JOBS_SAFE= yes
|
2004-08-20 20:44:42 +02:00
|
|
|
|
2007-08-22 05:36:05 +02:00
|
|
|
MAN1= scite.1
|
2004-08-20 20:44:42 +02:00
|
|
|
|
2003-10-02 12:13:58 +02:00
|
|
|
post-patch:
|
2010-06-02 16:05:46 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|[(]CC[)]|(CXX)|g ; s|[(]CCOMP[)]|(CC)|g ; \
|
|
|
|
s| -Os||g' ${WRKSRC}/makefile
|
2007-08-22 05:36:05 +02:00
|
|
|
.if defined(WITH_FULL_BUFFER_MENU)
|
|
|
|
@${REINPLACE_CMD} -e 's|30, "/Buffers|props.GetInt("buffers") > 30 ? props.GetInt("buffers") - 10 : 30, "/Buffers|g' ${WRKSRC}/SciTEGTK.cxx
|
|
|
|
.endif
|
2010-03-13 08:44:03 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|netscape "file://$$(SciteDefaultHome)|xdg-open "file://${DOCSDIR}|' \
|
|
|
|
${WRKSRC}/../src/SciTEGlobal.properties
|
2003-10-01 12:44:26 +02:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/../bin/SciTE ${PREFIX}/bin
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/../doc/scite.1 ${MANPREFIX}/man/man1
|
2006-09-18 00:06:47 +02:00
|
|
|
@${MKDIR} ${PREFIX}/share/applications
|
|
|
|
@${MKDIR} ${PREFIX}/share/pixmaps
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/SciTE.desktop ${PREFIX}/share/applications
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/Sci48M.png ${PREFIX}/share/pixmaps
|
2003-10-01 12:44:26 +02:00
|
|
|
@${MKDIR} ${DATADIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/../src/*.properties ${DATADIR}
|
2008-03-30 19:52:37 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/../doc/*.html ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/../doc/*.jpg ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/../doc/*.png ${DOCSDIR}
|
|
|
|
.endif
|
|
|
|
|
2007-08-22 05:36:05 +02:00
|
|
|
.include <bsd.port.mk>
|