blob: c2561d2e700c8972e428c67051f50b680bbbf003 (
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
|
# New ports collection makefile for: scite
# Date created: 27 November 2000
# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= scite
PORTVERSION= 1.71
PORTREVISION= 3
CATEGORIES= editors gnome
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
http://www.scintilla.org/
MASTER_SITE_SUBDIR= scintilla
DISTNAME= ${PORTNAME}${PORTVERSION:S/.//g}
EXTRACT_SUFX= .tgz
MAINTAINER= ports@FreeBSD.org
COMMENT= A full-featured SCIntilla based Text Editor for GTK/GNOME
LIB_DEPENDS= scintilla.1:${PORTSDIR}/x11-toolkits/scintilla
WRKSRC= ${WRKDIR}/${PORTNAME}/gtk
USE_GMAKE= yes
WANT_GNOME= yes
MAKEFILE= makefile
MAKE_ENV= CC="${CXX}"
EXTRA_PATCH_FILES= lua/include/lauxlib.h \
lua/include/lua.h \
lua/src/lobject.h \
lua/src/lopcodes.c \
lua/src/lopcodes.h \
lua/src/lstate.c \
lua/src/lstate.h \
lua/src/ldo.h \
lua/src/lmem.h \
lua/src/lgc.c \
lua/src/lvm.h \
lua/src/lstring.h \
lua/src/ldo.c \
lua/src/lfunc.c \
lua/src/llex.h \
lua/src/llex.c \
lua/src/lparser.c \
lua/src/lib/lauxlib.c
OPTIONS= GTK2 "Turns on GTK+ 2.x support (Default is GTK+ 1)" off
.include <bsd.port.pre.mk>
.if (${ARCH} == "amd64") && defined(WITH_GTK2)
IGNORE= coredumps on startup.
.endif
.if defined(WITH_GTK2)
USE_GNOME+= gtk20
PKGNAMESUFFIX:= -gtk2
.else
USE_GNOME+= gtk12
MAKE_ARGS= GTK1=yes
.endif
MAN1= scite.1
post-patch:
@cd ${WRKSRC} && ${MV} SciTE.desktop SciTE.desktop.pre_tr \
&& ${TR} -d "\r" < SciTE.desktop.pre_tr > SciTE.desktop
@${ECHO_CMD} 'Categories=Application;Development;' >> ${WRKSRC}/SciTE.desktop
# deal with dos end-of-line symbols break build with gcc 2.95.
.for file in ${EXTRA_PATCH_FILES}
@${CP} ${WRKSRC}/../${file} \
${WRKSRC}/../${file}.orig
@col < ${WRKSRC}/../${file}.orig \
> ${WRKSRC}/../${file}
.endfor
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}/../doc/*.html ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/../doc/*.jpg ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/../doc/*.png ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/../src/*.properties ${DATADIR}
.include <bsd.port.post.mk>
|