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

PORTNAME=   fxscintilla
PORTVERSION=    1.71
PORTREVISION=   15
CATEGORIES= x11-toolkits
MASTER_SITES=   ${MASTER_SITE_SAVANNAH}
MASTER_SITE_SUBDIR= ${PORTNAME}

MAINTAINER= ports@FreeBSD.org
COMMENT=    A Fox toolkit reimplementation of Scintilla editing widget

USE_AUTOTOOLS=  libtool:22
CONFIGURE_ARGS+=    --enable-shared --disable-static \
            --includedir=${LOCALBASE}/include
USE_LDCONFIG=   yes

.if !defined(MASTERDIR)
OPTIONS+=   FOX14 "FOX1.4 support (FOX1.6 by default)" off
.endif

.include <bsd.port.pre.mk>

.if defined(WITH_FOX14)
FOX_LIB_VER=    1.4
LIB_DEPENDS+=   FOX-${FOX_LIB_VER}:${PORTSDIR}/x11-toolkits/fox14
CONFIGURE_ARGS+=    --with-fox-1-4
.else
FOX_LIB_VER=    1.6
LIB_DEPENDS+=   FOX-${FOX_LIB_VER}:${PORTSDIR}/x11-toolkits/fox16
CONFIGURE_ARGS+=    --with-fox-1-6
.endif

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

.include <bsd.port.post.mk>