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

PORTNAME=   wings
PORTVERSION=    1.3.0.1
PORTREVISION=   1
CATEGORIES= graphics
MASTER_SITES=   SF
DIST_SUBDIR=    erlang
PKGNAMESUFFIX=  -devel

MAINTAINER= amdmi3@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}"
MAKE_JOBS_UNSAFE=yes

SUB_FILES=  wings.sh

USE_BZIP2=  yes
USE_GMAKE=  yes

PORTSCOUT=  limitw:1,odd

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

do-install:
    ${MKDIR} ${PREFIX}/lib/erlang/lib/${DISTNAME}
.for dir in src ebin fonts plugins textures shaders patches
    cd ${WRKSRC} && ${COPYTREE_SHARE} ${dir} ${PREFIX}/lib/erlang/lib/${DISTNAME}
.endfor
    @${INSTALL_SCRIPT} ${WRKDIR}/wings.sh ${PREFIX}/bin/wings
    @${LN} -sf ${DISTNAME} ${PREFIX}/lib/erlang/lib/${PORTNAME}

.include <bsd.port.mk>