aboutsummaryrefslogtreecommitdiffstats
path: root/x11-toolkits/scintilla/Makefile
blob: f92862c15d49dc12e890c3974250f95c55a7560a (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
# New ports collection makefile for:    scintilla
# Date created:             27 November 2000
# Whom:                 Maxim Sobolev <sobomax@FreeBSD.org>
#
# $FreeBSD$
#    $MCom: ports/x11-toolkits/scintilla/Makefile,v 1.3 2006/09/17 21:58:56 marcus Exp $

PORTNAME=   scintilla
PORTVERSION=    2.12
CATEGORIES= x11-toolkits
MASTER_SITES=   SF/scintilla/SciTE/${PORTVERSION}
DISTNAME=   scite${PORTVERSION:S/.//g}
EXTRACT_SUFX=   .tgz

MAINTAINER= cyberbotx@cyberbotx.com
COMMENT=    A full-featured free source code editing component for GTK+

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

USE_GMAKE=  yes
USE_ICONV=  yes
MAKEFILE=   makefile
USE_LDCONFIG=   yes
USE_GNOME=  gtk20
USE_GCC=    4.2+

.include <bsd.port.pre.mk>

.if ${ARCH} == "sparc64"
MAKE_ARGS+= PICFLAGS=-DPIC
.else
MAKE_ARGS+= PICFLAGS="-DPIC -fPIC -fpic"
.endif

post-patch:
    @${REINPLACE_CMD} -e 's|[(]CC[)]|(CXX)|g ; s|[(]CCOMP[)]|(CC)|g ; \
        s| -Os||g' ${WRKSRC}/makefile

do-install:
    ${MKDIR} ${PREFIX}/include/scintilla
    ${INSTALL_DATA} ${WRKSRC}/../include/*.h ${PREFIX}/include/scintilla
    ${INSTALL_PROGRAM} ${WRKSRC}/../bin/libscintilla.so.2 ${PREFIX}/lib
    ${LN} -sf ${PREFIX}/lib/libscintilla.so.2 ${PREFIX}/lib/libscintilla.so
    ${INSTALL_PROGRAM} ${WRKSRC}/../bin/libscintilla_lexers.so.2 ${PREFIX}/lib
    ${LN} -sf ${PREFIX}/lib/libscintilla_lexers.so.2 ${PREFIX}/lib/libscintilla_lexers.so

.include <bsd.port.post.mk>