aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/wings/Makefile
blob: 5eab85fba5ea608641db18e94d0c1f03648f17a1 (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
53
54
55
# New ports collection makefile for:    wings
# Date Created:             5 March 2003
# Whom:                 olgeni@FreeBSD.org
#
# $FreeBSD$
#

PORTNAME=   wings
PORTVERSION=    0.98.36
CATEGORIES= graphics
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= wings
DIST_SUBDIR=    erlang

MAINTAINER= olgeni@FreeBSD.org
COMMENT=    A polygon mesh modeler written in Erlang

BUILD_DEPENDS=  erlc:${PORTSDIR}/lang/erlang \
        ${LOCALBASE}/lib/erlang/lib/esdl/include/sdl.hrl:${PORTSDIR}/devel/esdl
RUN_DEPENDS=    erl:${PORTSDIR}/lang/erlang \
        ${LOCALBASE}/lib/erlang/lib/esdl/include/sdl.hrl:${PORTSDIR}/devel/esdl

MAKE_ENV=   ESDL_PATH=${LOCALBASE}/lib/erlang/lib/esdl
PLIST_SUB=  VERSION="${PORTVERSION}"

SUB_FILES=  wings.sh

USE_BZIP2=  yes
USE_GMAKE=  yes

.include <bsd.port.pre.mk>

.if ${ARCH} != "i386"
BROKEN=     Does not compile on !i386
.endif

post-patch:
    @${REINPLACE_CMD} -e 's|$$(GCC)|${CC} -I${X11BASE}/include -L${X11BASE}/lib|g' \
        ${WRKSRC}/plugins_src/accel/Makefile

do-install:
    @${MKDIR} ${PREFIX}/lib/erlang/lib/${DISTNAME}
    @${MKDIR} ${PREFIX}/lib/erlang/lib/${DISTNAME}/src
    @${MKDIR} ${PREFIX}/lib/erlang/lib/${DISTNAME}/ebin
    @${MKDIR} ${PREFIX}/lib/erlang/lib/${DISTNAME}/fonts
    @${MKDIR} ${PREFIX}/lib/erlang/lib/${DISTNAME}/plugins
    @${INSTALL_DATA} ${WRKSRC}/src/* ${PREFIX}/lib/erlang/lib/${DISTNAME}/src
    @${INSTALL_DATA} ${WRKSRC}/ebin/* ${PREFIX}/lib/erlang/lib/${DISTNAME}/ebin
    @${INSTALL_DATA} ${WRKSRC}/fonts/* ${PREFIX}/lib/erlang/lib/${DISTNAME}/fonts
    @${CP} -r ${WRKSRC}/plugins/* ${PREFIX}/lib/erlang/lib/${DISTNAME}/plugins
    @${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/lib/erlang/lib/${DISTNAME}/plugins
    @${INSTALL_SCRIPT} ${WRKDIR}/wings.sh ${PREFIX}/bin/wings
    @${LN} -sf ${DISTNAME} ${PREFIX}/lib/erlang/lib/${PORTNAME}

.include <bsd.port.post.mk>