aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/quat/Makefile
blob: f007fbf8599da541fdf495d94820a580a5721de7 (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
# Created by: David Yeske <dyeske@gmail.com>
# $FreeBSD$

PORTNAME=   quat
PORTVERSION=    1.20
CATEGORIES= graphics
#MASTER_SITES=  http://www.physcip.uni-stuttgart.de/phy11733/download/
MASTER_SITES=   http://www.sourcefiles.org/Graphics/Fractals/

MAINTAINER= ports@FreeBSD.org
COMMENT=    Three-dimensional fractal creator (command line only)

BROKEN=     unfetchable
LICENSE=    GPLv2+

OPTIONS_DEFINE= OPTIMIZED_CFLAGS DOCS

GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --disable-gui \
        --datadir=${PREFIX}/share/doc

PORTDOCS=   *
PLIST_FILES=    bin/quat-txt

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS}
CFLAGS+=    -O3 -ffast-math
.endif

post-patch:
    @${REINPLACE_CMD} -E -e \
        's,-(march=pentium|O3|ffast-math),,g' \
        ${WRKSRC}/configure
    @${REINPLACE_CMD} -E -e \
        's|-I\.[[:space:]]+-I\$$\(srcdir\)[[:space:]]+||' \
        ${WRKSRC}/kernel/Makefile.in
# disable data file installation since distfile does not do
# The Right Thing(TM)
    @${REINPLACE_CMD} -E -e \
        's|^(install-data-am:).*$$|\1| ; \
         s|^(SUBDIRS.*)doc|\1|' \
        ${WRKSRC}/Makefile.in

post-install:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    @(cd ${WRKSRC}/doc && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} \
        ${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET})

.include <bsd.port.mk>