aboutsummaryrefslogtreecommitdiffstats
path: root/editors/scite/Makefile
blob: a7ec217738912e8ff283f67d6920cc118cadb127 (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
# New ports collection makefile for:    scite
# Date created:             27 November 2000
# Whom:                 Maxim Sobolev <sobomax@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   scite
PORTVERSION=    2.00
CATEGORIES= editors gnome
MASTER_SITES=   SFP/scintilla/SciTE/${PORTVERSION}
DISTNAME=   ${PORTNAME}${PORTVERSION:S/.//g}
EXTRACT_SUFX=   .tgz

MAINTAINER= cyberbotx@cyberbotx.com
COMMENT=    A full-featured SCIntilla based Text Editor for GTK/GNOME

LIB_DEPENDS=    scintilla.2:${PORTSDIR}/x11-toolkits/scintilla

WRKSRC=     ${WRKDIR}/${PORTNAME}/gtk

USE_GMAKE=  yes
USE_GNOME=  gtk20
MAKEFILE=   makefile

SUB_FILES=  pkg-message

MAN1=       scite.1

post-patch:
    @${REINPLACE_CMD} -e 's|[(]CC[)]|(CXX)|g ; s|gcc|$$(CC)|g ; s| -Os||g' \
        ${WRKSRC}/makefile
.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

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/../bin/SciTE ${PREFIX}/bin
    ${INSTALL_MAN} ${WRKSRC}/../doc/scite.1 ${MANPREFIX}/man/man1
    @${MKDIR} ${PREFIX}/share/applications
    @${MKDIR} ${PREFIX}/share/pixmaps
    ${INSTALL_DATA} ${WRKSRC}/SciTE.desktop ${PREFIX}/share/applications
    ${INSTALL_DATA} ${WRKSRC}/Sci48M.png ${PREFIX}/share/pixmaps
    @${MKDIR} ${DATADIR}
    ${INSTALL_DATA} ${WRKSRC}/../src/*.properties ${DATADIR}
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/../doc/*.html ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/../doc/*.jpg ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/../doc/*.png ${DOCSDIR}
.endif

.if !defined(NOPORTDOCS)
post-install:
    @${CAT} ${PKGMESSAGE}
.endif

.include <bsd.port.mk>