aboutsummaryrefslogtreecommitdiffstats
path: root/x11-toolkits/fxscintilla/Makefile
blob: d36a698afd08ac0f0bdc3a3a9b82fb4a7b4a64b2 (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
# New ports collection makefile for:    fxscintilla
# Date created:             16 June 2004
# Whom:                         Alexander Novitsky <alecn2002@yandex.ru>
#
# $FreeBSD$
#

PORTNAME=   fxscintilla
PORTVERSION=    1.63
CATEGORIES= x11-toolkits
MASTER_SITES=   ${MASTER_SITE_SAVANNAH}
MASTER_SITE_SUBDIR= ${PORTNAME}

MAINTAINER= alecn2002@yandex.ru
COMMENT=    A Fox toolkit reimplementation of Scintilla editing widget

GNU_CONFIGURE=  yes

USE_LIBTOOL_VER=    15
USE_REINPLACE=  yes
CONFIGURE_ARGS+=    --enable-shared --disable-static
INSTALLS_SHLIB= yes

OPTIONS=    FOX10 "FOX1.0 support (FOX1.4 by default)" off

.include <bsd.port.pre.mk>

.if defined(WITH_FOX10)
LIB_DEPENDS+=   FOX-1.0.0:${PORTSDIR}/x11-toolkits/fox
CONFIGURE_ARGS+=    --with-fox-1-0
.else
LIB_DEPENDS+=   FOX-1.4:${PORTSDIR}/x11-toolkits/fox-devel
CONFIGURE_ARGS+=    --with-fox-1-4
.endif

post-patch:
    @${REINPLACE_CMD} -e 's|-lFOX-1.4|"-lFOX-1.4 ${PTHREAD_LIBS}"|' \
        ${WRKSRC}/configure ${WRKSRC}/tests/Makefile.in

.include <bsd.port.post.mk>