aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/sdl_gfx/Makefile
blob: 96e0c57bc41864df0e2da58a92c4fb62e025ac46 (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
# ex:ts=8
# Ports collection makefile for:    sdl_gfx
# Date created:         Apr 25, 2002
# Whom:             ijliao
#
# $FreeBSD$
#

PORTNAME=   sdl_gfx
PORTVERSION=    2.0.18
CATEGORIES= graphics
MASTER_SITES=   http://www.ferzkopp.net/Software/%SUBDIR%/ \
        http://mirror.inerd.com/FreeBSD/distfiles/${PORTNAME}/
MASTER_SITE_SUBDIR= SDL_gfx-${PORTVERSION:R}
DISTNAME=   SDL_gfx-${PORTVERSION}

MAINTAINER= mva@FreeBSD.org
COMMENT=    SDL graphics drawing primitives and other support functions

USE_AUTOTOOLS=  libtool:15
USE_SDL=    sdl
USE_GMAKE=  yes
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --includedir=${PREFIX}/include
MAKE_ARGS=  ACLOCAL="${TRUE}" AUTOCONF="${TRUE}" AUTOMAKE="${TRUE}" \
        AUTOHEADER="${TRUE}"
USE_LDCONFIG=   yes

OPTIONS=    MMX "Enable MMX instruction set (i386 only)"    Off

.include <bsd.port.pre.mk>

.if defined(WITH_MMX) && (${ARCH} == "i386")
CONFIGURE_ARGS+=--enable-mmx
CFLAGS+=    -DUSE_MMX
.else
CONFIGURE_ARGS=--disable-mmx
.endif

post-patch:
    @${CHMOD} a+x ${WRKSRC}/install-sh

.include <bsd.port.post.mk>