aboutsummaryrefslogtreecommitdiffstats
path: root/lang/wxbasic/Makefile
blob: d97625af8343f7187e051e5f68afdbb4f22d1171 (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
# ex:ts=8
# Ports collection makefile for:    wxbasic
# Date created:         Feb 10, 2002
# Whom:             ijliao
#
# $FreeBSD$
#

PORTNAME=   wxbasic
PORTVERSION=    0.52
CATEGORIES= lang
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME=   wxsource-${PORTVERSION}

MAINTAINER= ports@FreeBSD.org

LIB_DEPENDS=    wx_gtk.2:${PORTSDIR}/x11-toolkits/wxgtk-devel

NO_WRKSUBDIR=   yes

USE_REINPLACE=  yes
USE_BISON=  yes
USE_GMAKE=  yes
MAKEFILE=   makefile.unx
CFLAGS+=    ${PTHREAD_CFLAGS}
LIBS+=      -lglut -lGL -lGLU -lwx_gtk_gl ${PTHREAD_LIBS}
MAKE_ENV=   CXXFLAGS="${CXXFLAGS}" LIBS="${LIBS}"

post-patch:
    @${REINPLACE_CMD} -e "s/malloc.h/stdlib.h/g" ${WRKSRC}/core.c

pre-build:
    @(cd ${WRKSRC} ; \
      ${MV} -f wxbasic.y tmp ; ${CAT} tmp | col -b > wxbasic.y ; \
      bison -o y_tab.c wxbasic.y)

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/wxbasic ${PREFIX}/bin
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/readme.txt ${DOCSDIR}
    @${MKDIR} ${EXAMPLESDIR}
    ${INSTALL_DATA} ${WRKSRC}/*.wx ${EXAMPLESDIR}
.endif

.include <bsd.port.mk>