blob: 9ea8778fb9267a887e0962a101a4c47483cfb067 (
plain)
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
|
# ex:ts=8
# Ports collection makefile for: sdl_gfx
# Date created: Apr 25, 2002
# Whom: ijliao
#
# $FreeBSD$
#
PORTNAME= sdl_gfx
PORTVERSION= 2.0.13
CATEGORIES= graphics
MASTER_SITES= http://www.ferzkopp.net/Software/%SUBDIR%/
MASTER_SITE_SUBDIR= SDL_gfx-${PORTVERSION:R}
DISTNAME= SDL_gfx-${PORTVERSION}
MAINTAINER= krion@FreeBSD.org
COMMENT= SDL graphics drawing primitives and other support functions
USE_SDL= sdl
USE_REINPLACE= yes
USE_GMAKE= yes
USE_AUTOTOOLS= libtool:13:inc
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --includedir=${PREFIX}/include/SDL11 \
--disable-mmx
MAKE_ARGS= ACLOCAL="${TRUE}" AUTOCONF="${TRUE}" AUTOMAKE="${TRUE}" \
AUTOHEADER="${TRUE}"
INSTALLS_SHLIB= yes
.include <bsd.port.pre.mk>
.if defined(WITH_MMX) && (${ARCH} == "i386")
CFLAGS+= -DUSE_MMX
.endif
post-patch:
@${GREP} -lR "<SDL/SDL" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
's|<SDL/SDL|<SDL|g'
@${REINPLACE_CMD} -e \
's|$$(includedir)/SDL|$$(includedir)|g' ${WRKSRC}/Makefile.in
.include <bsd.port.post.mk>
|