freebsd-ports/graphics/sdl_gfx/Makefile
Sean Bruno ba0dc3171b Disable MMX instructions on non-x86 architectures and properly enable the
option on amd64 builds.

Yet another armv6 build fix.

Phabric:	https://reviews.freebsd.org/D761
Submitted by:	mva
Reviewed by:	bdrewery (mentor)
2014-09-15 15:39:03 +00:00

40 lines
898 B
Makefile

# Created by: ijliao
# $FreeBSD$
PORTNAME= sdl_gfx
PORTVERSION= 2.0.25
PORTREVISION= 1
CATEGORIES= graphics
MASTER_SITES= http://www.ferzkopp.net/Software/%SUBDIR%/
MASTER_SITE_SUBDIR= SDL_gfx-${PORTVERSION:R}
DISTNAME= SDL_gfx-${PORTVERSION}
MAINTAINER= mva@FreeBSD.org
COMMENT= SDL graphics drawing primitives and other support functions
LICENSE= ZLIB
USES= gmake libtool pathfix
PATHFIX_MAKEFILEIN= Makefile.am
USE_AUTOTOOLS= libtoolize aclocal autoconf automake
AUTOMAKE_ARGS= -a -c -f
USE_SDL= sdl
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --includedir=${PREFIX}/include
USE_LDCONFIG= yes
OPTIONS_DEFINE_i386= MMX
OPTIONS_DEFINE_amd64= MMX
MMX_CONFIGURE_ENABLE= mmx
MMX_CFLAGS= -DUSE_MMX
.include <bsd.port.options.mk>
.if !${PORT_OPTIONS:MMMX}
# Every platform not supporting the MMX knob must disable
# MMX support explicitly
CONFIGURE_ARGS+= --disable-mmx
.endif
.include <bsd.port.mk>