freebsd-ports/graphics/sdl_gfx/Makefile
Ade Lovett 54a0b86543 Mass-conversion to the USE_AUTOTOOLS New World Order. The code present
in bsd.autotools.mk essentially makes this a no-op given that all the
old variables set a USE_AUTOTOOLS_COMPAT variable, which is parsed in
exactly the same way as USE_AUTOTOOLS itself.

Moreover, USE_AUTOTOOLS has already been extensively tested by the GNOME
team -- all GNOME 2.12.x ports use it.

Preliminary documentation can be found at:
	http://people.FreeBSD.org/~ade/autotools.txt

which is in the process of being SGMLized before introduction into the
Porters Handbook.

Light blue touch-paper.  Run.
2005-11-15 06:52:12 +00:00

42 lines
1 KiB
Makefile

# 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>