aboutsummaryrefslogtreecommitdiffstats
path: root/lang/steptalk/Makefile
blob: 56a9eb822dccac7e9fbb3a6dce1a1d2fa6c876e5 (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
# New ports collection makefile for:    steptalk
# Date created:         29 Oct 2006
# Whom:                 dirk.meyer@dinoex.sub.org
#
# $FreeBSD$
#

PORTNAME=   steptalk
PORTVERSION=    0.10.0
PORTREVISION=   4
CATEGORIES= lang gnustep
MASTER_SITES=   ${MASTER_SITE_GNUSTEP}
MASTER_SITE_SUBDIR= libs
DISTNAME=   StepTalk-${PORTVERSION}

MAINTAINER= dinoex@FreeBSD.org
COMMENT=    The official GNUstep scripting framework

LICENSE=    GPLv2

USE_GNUSTEP=    yes
USE_GNUSTEP_GUI=    yes
USE_GNUSTEP_BUILD=  yes
USE_GNUSTEP_INSTALL=    yes
USE_GNUSTEP_LDCONFIG=   ${GNUSTEP_LOCAL_LIBRARIES}

WRKSRC=     ${WRKDIR}/StepTalk
MAKE_ENV+=  GNUSTEP_INSTALLATION_DIR=${GNUSTEP_LOCAL_ROOT}
GDL2_PORT?= databases/gdl2

.if !defined(STEPTALK_WITHOUT_GDL2)
USE_GNUSTEP_LOCAL_LIBS+=    EOInterface:${GDL2_PORT}
PLIST_SUB+= WITH_GDL2=""

post-configure:
    ${REINPLACE_CMD} -e 's|-lgnustep-db2|-lEOAccess|' \
         -e 's|-lgnustep-db2control|-lEOControl|' \
         -e 's|-lgnustep-db2modeler|-lEOModeler|' \
        ${WRKSRC}/Modules/GDL2/GNUmakefile
.else
PLIST_SUB+= WITH_GDL2="@comment "

post-configure:
    ${REINPLACE_CMD} -e 's|bundle.make|rules.make|' \
        ${WRKSRC}/Modules/GDL2/GNUmakefile
.endif

.include <bsd.port.mk>