aboutsummaryrefslogtreecommitdiffstats
path: root/editors/scite/Makefile
blob: 90247540a142c5b49db195d96ae4374a38418baf (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
# Created by: Maxim Sobolev <sobomax@FreeBSD.org>
# $FreeBSD$

PORTNAME=   scite
PORTVERSION=    3.5.7
CATEGORIES= editors gnome
MASTER_SITES=   SF/scintilla/SciTE/${PORTVERSION}
DISTNAME=   ${PORTNAME}${PORTVERSION:S/.//g}

MAINTAINER= cyberbotx@cyberbotx.com
COMMENT=    Full-featured SCIntilla based text editor for GTK/GNOME

LICENSE=    SCINTILLA
LICENSE_NAME=   License for Scintilla and SciTE
LICENSE_FILE=   ${WRKSRC}/../License.txt
LICENSE_PERMS=  dist-mirror dist-sell pkg-mirror pkg-sell auto-accept

LIB_DEPENDS=    libscintilla.so:${PORTSDIR}/x11-toolkits/scintilla
RUN_DEPENDS=    xdg-open:${PORTSDIR}/devel/xdg-utils

OPTIONS_DEFINE= DOCS

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

USES=       desktop-file-utils gmake pkgconfig tar:tgz
USE_GNOME=  gtk20
MAKEFILE=   makefile

PORTDATA=   *.properties
PORTDOCS=   *.html *.jpg *.png

post-patch:
    @${REINPLACE_CMD} -e 's| -Os||g' ${WRKSRC}/makefile
    @${REINPLACE_CMD} -e 's|$$(SciteDefaultHome)|${DOCSDIR}|' \
        ${WRKSRC}/../src/SciTEGlobal.properties

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/../bin/SciTE ${STAGEDIR}${PREFIX}/bin
    ${INSTALL_MAN} ${WRKSRC}/../doc/scite.1 ${STAGEDIR}${MANPREFIX}/man/man1
    ${INSTALL_DATA} ${WRKSRC}/SciTE.desktop ${STAGEDIR}${PREFIX}/share/applications
    ${INSTALL_DATA} ${WRKSRC}/Sci48M.png ${STAGEDIR}${PREFIX}/share/pixmaps
    (cd ${WRKSRC}/../src && ${COPYTREE_SHARE} "${PORTDATA}" ${STAGEDIR}${DATADIR})
    (cd ${WRKSRC}/../doc && ${COPYTREE_SHARE} "${PORTDOCS}" ${STAGEDIR}${DOCSDIR})

.include <bsd.port.mk>