aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/osgedit/Makefile
blob: 80b25b5750a4a03e253d9a491b636c7c9e8f2b9d (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
# ex:ts=8
# Ports collection makefile for:    osgedit
# Date created:         Jan 23, 2003
# Whom:             ijliao
#
# $FreeBSD$
#

PORTNAME=   osgedit
PORTVERSION=    0.5.0
PORTREVISION=   3
CATEGORIES= graphics
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}

MAINTAINER= ports@FreeBSD.org
COMMENT=    An open editor for an open scenegraph

BUILD_DEPENDS=  ${X11BASE}/lib/libosg.so:${PORTSDIR}/graphics/osg
LIB_DEPENDS=    gtkglext-x11-1.0.2:${PORTSDIR}/x11-toolkits/gtkglext
RUN_DEPENDS=    ${X11BASE}/lib/libosg.so:${PORTSDIR}/graphics/osg

USE_X_PREFIX=   yes
USE_GNOME=  gnomehack gnomeprefix gnometarget libgnomeui
USE_GETTEXT=    yes
USE_GMAKE=  yes
GNU_CONFIGURE=  yes
CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include" \
        LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS= --enable-gtkglext

CFLAGS+=    -O0

post-patch:
.for file in src/gui/interface.cc
    @cd ${WRKSRC} && ${MV} ${file} ${file}.pre_conv \
        && ${TR} -d '\015' < ${file}.pre_conv > ${file} || ${TRUE}
.endfor

.include <bsd.port.mk>