aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/ffff/Makefile
blob: 4c77a24a179699b15cc47455513bf3094f39006e (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
# Ports collection makefile for:    ffff
# Date created:             Sep 20, 2006
# Whom:                 rossiya@gmail.com
#
# $FreeBSD$
#

PORTNAME=   ffff
PORTVERSION=    323
PORTREVISION=   4
CATEGORIES= graphics
MASTER_SITES=   SF/${PORTNAME}/${PORTNAME}/FFFF%203.2.3
DISTNAME=   FFFF${PORTVERSION}-src

MAINTAINER= rossiya@gmail.com
COMMENT=    Fast Mandelbrot fractal generator

USE_XORG=   x11 xmu xext
USE_DOS2UNIX=   yes
USE_GL=     gl glut
USE_ZIP=    yes

SOURCE=     FFFF3 FragmentProgram FragmentProgramARB10 GPUProgram \
        PixelBuffer VertexProgram VertexProgramATI VertexProgramNV \
        extensions vpext

CXXFLAGS+=  -I${LOCALBASE}/include/GL -D__linux__  -msse -msse2 -m3dnow -I${LOCALBASE}/include/ \
        ${PTHREAD_CFLAGS} 
LDFLAGS+=   -L${LOCALBASE}/lib ${PTHREAD_LIBS} -lglut -lGL -lXext -lX11 -lXmu \
         -lGLU -lm

PLIST_FILES=    bin/ffff

# contains x86 assembler
ONLY_FOR_ARCHS= i386

do-build:
.for f in ${SOURCE}
    ${CXX} ${CXXFLAGS} -c ${WRKSRC}/${f}.cpp -o ${WRKSRC}/${f}.obj
.endfor
    ${CXX} ${LDFLAGS} ${SOURCE:C/(.*)/${WRKSRC}\/\1.obj/} -o ${WRKSRC}/${PORTNAME}

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin

.include <bsd.port.mk>