summaryrefslogtreecommitdiff
path: root/graphics/giram/Makefile
blob: 4f2f6462bfa2b521641eb9bec337f7b0305d040d (plain)
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
# Created by: Brandon Fosdick <bfoz@glue.umd.edu>
# $FreeBSD$

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

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

LICENSE=	GPLv2+
LICENSE_FILE=	${WRKSRC}/COPYING

LIB_DEPENDS=	lib3ds.so:${PORTSDIR}/graphics/lib3ds
BUILD_DEPENDS=	povray:${PORTSDIR}/graphics/povray-meta
RUN_DEPENDS:=	${BUILD_DEPENDS}

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

OPTIONS_DEFINE=	DOCS EXAMPLES

post-patch:
	@${REINPLACE_CMD} '/^giram_LDADD =/s/$$/ -lgmodule-2.0/' \
		${WRKSRC}/src/Makefile.in
	@${REINPLACE_CMD} '/DiscWithHoleFlag/d' ${WRKSRC}/src/tools/tool_disc.h

post-install:
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/giram/0.3/modules/*.so
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
	${INSTALL_DATA} ${WRKSRC}/samples/*.pov ${STAGEDIR}${EXAMPLESDIR}

.include <bsd.port.mk>