aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/giram/Makefile
blob: a809ed23af0f891adf346320a8cc7f8b9f3a89f5 (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
# New ports collection makefile for:    giram
# Date created:        17 June 1999
# Whom:                Brandon Fosdick <bfoz@glue.umd.edu>
#
# $FreeBSD$
#

PORTNAME=   giram
PORTVERSION=    0.3.5
CATEGORIES= graphics
MASTER_SITES=   http://www.giram.org/downloads/

MAINTAINER= ports@FreeBSD.org
COMMENT=    Giram is Really A Modeller

RUN_DEPENDS=    povray:${PORTSDIR}/graphics/povray31

USE_X_PREFIX=   yes
USE_REINPLACE=  yes
USE_MESA=   yes
USE_GMAKE=  yes
USE_GNOME=  gtk20
WANT_GNOME= yes
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --with-gl=${X11BASE}
CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include" \
        LIBS="-L${LOCALBASE}/lib"

.include <bsd.port.pre.mk>

.if ${HAVE_GNOME:Mlibcapplet}!=""
USE_GNOME+= libcapplet
PKGNAMESUFFIX=  -gnome
.else
CONFIGURE_ARGS+=--disable-gnome
.endif

pre-patch:
    @${REINPLACE_CMD} -e \
        's|-lpthread|${PTHREAD_LIBS:S/"//g}|g ; \
         s|DATADIRNAME=lib|DATADIRNAME=share|g ; \
         s|USE_INCLUDED_LIBINTL=yes|#USE_INCLUDED_LIBINTL=yes|g ; \
         s|\$$(top_builddir)/intl/libintl.a|-lintl|g' \
         ${WRKSRC}/configure

post-install:
    @${MKDIR} ${PREFIX}/share/doc/giram/SampleScenes
    #${INSTALL_DATA} ${WRKSRC}/SampleScenes/* ${PREFIX}/share/doc/giram/SampleScenes/

.include <bsd.port.post.mk>