aboutsummaryrefslogtreecommitdiffstats
path: root/science/glens/Makefile
blob: 33fb1c7167abf4969880c11ee4261b26d9d46649 (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
# ex:ts=8
# Ports collection Makefile for:    glens
# Date created:         Aug 8, 2002
# Whom:             ijliao
#
# $FreeBSD$
#

PORTNAME=   glens
PORTVERSION=    0.3
PORTREVISION=   1
CATEGORIES= science
MASTER_SITES=   http://virtual.theo.phys.ulg.ac.be/

MAINTAINER= ports@FreeBSD.org
COMMENT=    OpenGL gravitational lens simulator

BUILD_DEPENDS=  ${X11BASE}/lib/libglui.a:${PORTSDIR}/devel/glui

USE_REINPLACE=  yes
USE_MESA=   yes
GNU_CONFIGURE=  yes
CONFIGURE_ENV=  CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
CONFIGURE_ARGS= --with-glui=${X11BASE}

CPPFLAGS=   -I${LOCALBASE}/include -I${X11BASE}/include ${PTHREAD_CFLAGS}
LDFLAGS=    -L${LOCALBASE}/lib -L${X11BASE}/lib ${PTHREAD_LIBS}

.include <bsd.port.pre.mk>

.if ${ARCH} == "alpha"
BROKEN=     "Does not compile on alpha"
.endif

post-patch:
    @${REINPLACE_CMD} -e \
        's|-O6||g ; \
        s|-malign-double||g' ${WRKSRC}/configure

post-install:
.if !defined(NOPORTDOCS)
    @${MKDIR} ${EXAMPLESDIR}/cfg
    ${INSTALL_DATA} ${WRKSRC}/cfg/*.cgf ${EXAMPLESDIR}/cfg
.endif

.include <bsd.port.post.mk>