aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/giram/Makefile
blob: 62e65bc517ec5a67398012453f4e60b07ed85cf6 (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
# Created by: Brandon Fosdick <bfoz@glue.umd.edu>
# $FreeBSD$

PORTNAME=   giram
PORTVERSION=    0.3.5
PORTREVISION=   17
CATEGORIES= graphics
MASTER_SITES=   http://freebsd.nsu.ru/distfiles/

MAINTAINER= ports@FreeBSD.org
COMMENT=    A POV-Ray oriented modeller

LIB_DEPENDS=    3ds-1.3:${PORTSDIR}/graphics/lib3ds
BUILD_DEPENDS=  povray:${PORTSDIR}/graphics/povray-meta
RUN_DEPENDS:=   ${BUILD_DEPENDS}

USES=       gettext perl5 pkgconfig gmake
USE_PERL5=  build
USE_GNOME=  gtk20
USE_AUTOTOOLS=  libtool
CONFIGURE_ENV=  INTLTOOL_PERL="${PERL}"
LDFLAGS+=   -L${LOCALBASE}/lib
CONFIGURE_ARGS= --datadir="${PREFIX}/lib" \
        --with-tutorial-path="${DOCSDIR}" \
        --with-lib3ds-prefix="${LOCALBASE}"
CPPFLAGS+=  -I${LOCALBASE}/include

MAN1=       giram.1

post-patch:
    @${REINPLACE_CMD} -e '36s,static ,,' ${WRKSRC}/src/tools/tool_disc.c
    @${REINPLACE_CMD} -e 's|-D.*_DISABLE_DEPRECATED||g' \
        ${WRKSRC}/configure

post-install:
.if !defined(NOPORTEXAMPLES)
    @${MKDIR} ${EXAMPLESDIR}
    ${INSTALL_DATA} ${WRKSRC}/samples/*.pov ${EXAMPLESDIR}
.endif

.include <bsd.port.mk>