aboutsummaryrefslogtreecommitdiffstats
path: root/x11-toolkits/wxd/Makefile
blob: feccae09ce2ccfc37d86a93e559c0312469948d3 (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
# New ports collection makefile for:   wxd
# Date created:        29 August 2006
# Whom:                Jona Joachim <walkingshadow@grummel.net>
#
# $FreeBSD$
#

PORTNAME=   wxd
PORTVERSION=    0.08
PORTREVISION=   1
CATEGORIES= x11-toolkits devel
MASTER_SITES=       ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
EXTRACT_SUFX=       .tgz

MAINTAINER= walkingshadow@grummel.net
COMMENT=    wxWidgets bindings for the D programming language

BUILD_DEPENDS=  gdc:${PORTSDIR}/lang/gdc

USE_GMAKE=  yes
USE_LDCONFIG=   yes
USE_WX=     2.6
WRKSRC=     ${WRKDIR}/${PORTNAME}

OPTIONS=    UNICODE "Build the Unicode version" On

.include <bsd.port.pre.mk>

.if !defined(WITHOUT_UNICODE)
WX_UNICODE= yes
.endif

pre-patch:
    @${RM} ${WRKSRC}/Makefile
    @${MV} ${WRKSRC}/GNUmakefile ${WRKSRC}/Makefile
    @${RM} ${WRKSRC}/wxc/Makefile
    @${MV} ${WRKSRC}/wxc/GNUmakefile ${WRKSRC}/wxc/Makefile
    @${RM} ${WRKSRC}/wx/Makefile
    @${MV} ${WRKSRC}/wx/GNUmakefile ${WRKSRC}/wx/Makefile

post-install:
.if !defined(NOPORTDOCS)
    @${MKDIR} ${EXAMPLESDIR}
    @${CP} -R ${WRKSRC}/Samples/* ${EXAMPLESDIR}
.endif

.if ${OSVERSION} < 500000
IGNORE= needs FreeBSD 5.x or later
.endif

.include <bsd.port.post.mk>