freebsd-ports/graphics/xaos/Makefile
Joseph Koshy 9f323fd5dc Add a `WITH_PTHREAD' knob.
Submitted by:	Peter Schultz <pmes@bis.midco.net>
2004-02-29 17:06:20 +00:00

56 lines
1.3 KiB
Makefile

# New ports collection makefile for: XaoS
# Date created: 24 February 1996
# Whom: Joseph Koshy <koshy@india.hp.com>
#
# $FreeBSD$
#
PORTNAME= xaos
PORTVERSION= 3.0
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= xaos
DISTNAME= XaoS-${PORTVERSION}
MAINTAINER= jkoshy@freebsd.org
COMMENT= A real-time fractal browser for X11 and ASCII terminals
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png
.if defined(WITH_SVGALIB)
LIB_DEPENDS+= vga.1:${PORTSDIR}/graphics/svgalib
.endif
USE_XLIB= yes
# This port will benefit from all-stops-out optimization of the code
GNU_CONFIGURE= yes
CONFIGURE_ENV= LDFLAGS=-L${LOCALBASE}/lib
.if !defined(WITH_SVGALIB)
CONFIGURE_ARGS= --with-svga-driver=no
.endif
.if defined(WITH_PTHREAD)
CONFIGURE_ARGS+= --with-pthread=yes
CONFIGURE_ENV+= LIBS="${PTHREAD_LIBS}" \
CFLAGS="${PTHREAD_CFLAGS} ${CFLAGS}"
.endif
CFLAGS= -DHAVE_SYS_PARAM_H \
-I${PREFIX}/include \
-pipe -O6 -fstrength-reduce -ffast-math -fomit-frame-pointer\
-fforce-mem -fforce-addr -funroll-loops
MAN6= xaos.6
.include <bsd.port.pre.mk>
.if ${ARCH} != "i386" && ${ARCH} != "amd64" && ${OSVERSION} >= 502102
BROKEN= "Does not compile on FreeBSD >=5.x on !i386 and !amd64"
.endif
post-install:
${STRIP_CMD} ${PREFIX}/bin/xaos
install-info ${PREFIX}/info/xaos.info ${PREFIX}/info/dir
.include <bsd.port.post.mk>