1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00
freebsd-ports/graphics/fraqtive/Makefile
Max Brazhnikov 86a2e5ac7f - Update to 0.4.6
- Remove stale patches
- Trim Makefile header
2012-12-11 12:30:58 +00:00

44 lines
1.1 KiB
Makefile

# Created by: Markus Brueffer <markus@FreeBSD.org>
# $FreeBSD$
PORTNAME= fraqtive
PORTVERSION= 0.4.6
CATEGORIES= graphics
MASTER_SITES= SF/fraqtive/Fraqtive/Fraqtive%20${PORTVERSION}/
MAINTAINER= makc@FreeBSD.org
COMMENT= Draws Mandelbrot and Julia fractals
USE_BZIP2= yes
USE_QT4= gui opengl xml qmake_build uic_build moc_build rcc_build
QT_NONSTANDARD= yes
USE_GL= glu
HAS_CONFIGURE= yes
CONFIGURE_ENV= QMAKESPEC="${QMAKESPEC}" \
QMAKE_CFLAGS="${CFLAGS}"
CONFIGURE_ARGS= -prefix ${PREFIX} -qmake ${QMAKE}
MAKE_JOBS_SAFE= yes
OPTIONS_DEFINE= SSE2
SSE2_DESC= Enable SSE2 optimization
STRIP_FILES= bin/fraqtive
.include <bsd.port.options.mk>
.if !${PORT_OPTIONS:MSSE2}
CONFIGURE_ARGS+=-no-sse2
.endif
post-configure:
@${FIND} ${WRKSRC} -name Makefile | ${XARGS} ${REINPLACE_CMD} \
-e 's|^CC .*|CC=${CC}|; s|^CXX .*|CXX=${CXX}|' \
-e 's|^LINK .*|LINK=${CXX}|' \
-e 's|^CFLAGS .*|CFLAGS=${CFLAGS} -Wall -W $$\(DEFINES\)|' \
-e 's|^CXXFLAGS .*|CXXFLAGS=${CXXFLAGS} -Wall -W $$\(DEFINES\)|'
post-install:
${STRIP_CMD} ${STRIP_FILES:S,^,${PREFIX}/,}
.include <bsd.port.mk>