1999-08-13 01:18:16 -04:00
|
|
|
# New ports collection makefile for: SDL
|
2000-04-25 08:43:35 -04:00
|
|
|
# Date created: 1 April 2000
|
2000-05-17 07:18:29 -04:00
|
|
|
# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
|
1999-08-13 01:18:16 -04:00
|
|
|
#
|
1999-08-25 01:57:29 -04:00
|
|
|
# $FreeBSD$
|
1999-08-13 01:18:16 -04:00
|
|
|
#
|
|
|
|
|
2000-04-25 08:43:35 -04:00
|
|
|
PORTNAME= sdl-devel
|
2000-06-06 05:36:38 -04:00
|
|
|
PORTVERSION= 1.1.3
|
2000-02-02 23:53:59 -05:00
|
|
|
CATEGORIES= devel
|
2000-06-06 04:05:51 -04:00
|
|
|
MASTER_SITES= http://www.libsdl.org/release/ \
|
|
|
|
http://www.devolution.com/~slouken/SDL/release/
|
2000-04-14 01:44:42 -04:00
|
|
|
DISTNAME= SDL-${PORTVERSION}
|
1999-08-13 01:18:16 -04:00
|
|
|
|
2000-05-17 07:18:29 -04:00
|
|
|
MAINTAINER= sobomax@FreeBSD.org
|
1999-08-13 01:18:16 -04:00
|
|
|
|
2000-04-25 08:43:35 -04:00
|
|
|
LIB_DEPENDS= esd.2:${PORTSDIR}/audio/esound \
|
|
|
|
aa.1:${PORTSDIR}/graphics/aalib \
|
|
|
|
${GL_DEPENDS}
|
1999-08-13 01:18:16 -04:00
|
|
|
BUILD_DEPENDS= nasm:${PORTSDIR}/devel/nasm
|
|
|
|
|
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_XLIB= yes
|
2000-06-16 17:52:40 -04:00
|
|
|
INSTALLS_SHLIB= yes
|
2000-01-23 23:57:17 -05:00
|
|
|
GNU_CONFIGURE= yes
|
2000-04-25 08:43:35 -04:00
|
|
|
|
2000-01-23 23:57:17 -05:00
|
|
|
CONFIGURE_ENV= NASM="${LOCALBASE}/bin/nasm" \
|
|
|
|
LOCALBASE="${LOCALBASE}"
|
2000-04-25 08:43:35 -04:00
|
|
|
CONFIGURE_ARGS= --enable-video-aalib
|
|
|
|
|
2000-04-20 05:24:28 -04:00
|
|
|
CFLAGS+= -D_THREAD_SAFE
|
1999-08-13 01:18:16 -04:00
|
|
|
|
2000-04-25 08:43:35 -04:00
|
|
|
.if defined(WITHOUT_GL)
|
|
|
|
GL_DEPENDS=
|
|
|
|
CONFIGURE_ARGS+= --disable-video-opengl
|
|
|
|
.else
|
2000-04-28 23:14:34 -04:00
|
|
|
GL_DEPENDS= GL.14:${PORTSDIR}/graphics/Mesa3
|
2000-04-25 08:43:35 -04:00
|
|
|
CONFIGURE_ARGS+= --enable-video-opengl
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-configure:
|
|
|
|
@ cd ${WRKSRC} && \
|
|
|
|
${CP} sdl-config sdl11-config && \
|
|
|
|
${CP} sdl.m4 sdl11.m4
|
|
|
|
|
1999-08-13 01:18:16 -04:00
|
|
|
post-install:
|
2000-04-25 08:43:35 -04:00
|
|
|
@ ${MKDIR} ${PREFIX}/share/examples/SDL11
|
|
|
|
@ ${INSTALL_DATA} ${WRKSRC}/test/* ${PREFIX}/share/examples/SDL11
|
1999-08-13 01:18:16 -04:00
|
|
|
.if !defined(NOPORTDOCS)
|
2000-04-25 08:43:35 -04:00
|
|
|
@ ${MKDIR} ${PREFIX}/share/doc/SDL11
|
2000-02-02 23:53:59 -05:00
|
|
|
.for file in BUGS COPYING CREDITS README WhatsNew docs.html
|
2000-04-25 08:43:35 -04:00
|
|
|
@ ${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/SDL11
|
1999-08-13 01:18:16 -04:00
|
|
|
.endfor
|
2000-03-06 17:16:57 -05:00
|
|
|
@ cd ${WRKSRC}/docs; tar cf - `${ECHO} [^M]*` | \
|
2000-04-25 08:43:35 -04:00
|
|
|
(cd ${PREFIX}/share/doc/SDL11; ${TAR} --unlink -xf - )
|
1999-08-13 01:18:16 -04:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|