aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/quat-gui/Makefile
blob: 4780c01555f6b2532ef3d342c69515702d64b543 (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
51
52
53
54
55
# New ports collection makefile for:    quat-gui
# Date created:             2 May 2002
# Whom:                 David Yeske <dyeske@gmail.com>
#
# $FreeBSD$
#

PORTNAME=   quat
PORTVERSION=    1.20
PORTREVISION=   5
CATEGORIES= graphics
MASTER_SITES=   http://www.physcip.uni-stuttgart.de/phy11733/download/
PKGNAMESUFFIX=  -gui
DISTNAME=   quat-${PORTVERSION:S/.p/pre/}

MAINTAINER= ports@FreeBSD.org
COMMENT=    A Three-dimensional fractal creator (X11 GUI)

LIB_DEPENDS=    fltk.1:${PORTSDIR}/x11-toolkits/fltk

USE_XORG=   xext
USE_GL=     gl glut
GNU_CONFIGURE=  yes
CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include -L${LOCALBASE}/lib" \
        LIBS="-lXext -lGL" FLUID="${LOCALBASE}/bin/fluid"

.if defined(WITH_OPTIMIZED_CFLAGS)
CFLAGS+=    -O3 -ffast-math
.endif

pre-everything::
.if !defined(WITH_OPTIMIZED_CFLAGS)
    @${ECHO_MSG} "You can enable additional compilation optimizations"
    @${ECHO_MSG} "by defining WITH_OPTIMIZED_CFLAGS"
.endif

post-patch:
    @${REINPLACE_CMD} -E -e \
        's|^...CFLAGS=|#CFLAGS=|; \
        s|^...CXXFLAGS=|#CXXFLAGS=|' \
        ${WRKSRC}/configure
    @${REINPLACE_CMD} -E -e 's|-I\.[[:space:]]+-I\$$\(srcdir\)[[:space:]]+||' \
        ${WRKSRC}/gui/Makefile.in
# disable data file installation since distfile does not do
# The Right Thing(TM)
    @${REINPLACE_CMD} -E -e \
        's|^(install-data-am:).*$$|\1|' \
        ${WRKSRC}/Makefile.in

post-configure:
    @${REINPLACE_CMD} -E -e \
        's|^(pkgdatadir).*$$|\1=${PREFIX}/share/${PORTNAME}${PKGNAMESUFFIX}|' \
        ${WRKSRC}/doc/Makefile

.include <bsd.port.mk>