1999-08-13 05:18:16 +00:00
|
|
|
# New ports collection makefile for: SDL
|
2000-04-25 12:43:35 +00:00
|
|
|
# Date created: 1 April 2000
|
2000-05-17 11:18:29 +00:00
|
|
|
# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
|
1999-08-13 05:18:16 +00:00
|
|
|
#
|
1999-08-25 05:57:29 +00:00
|
|
|
# $FreeBSD$
|
1999-08-13 05:18:16 +00:00
|
|
|
#
|
|
|
|
|
2000-08-31 10:06:09 +00:00
|
|
|
PORTNAME= sdl-devel
|
|
|
|
PORTVERSION= 1.1.4
|
|
|
|
CATEGORIES= devel
|
|
|
|
MASTER_SITES= http://www.libsdl.org/release/ \
|
|
|
|
http://www.devolution.com/~slouken/SDL/release/
|
|
|
|
DISTNAME= SDL-${PORTVERSION}
|
1999-08-13 05:18:16 +00:00
|
|
|
|
2000-08-31 10:06:09 +00:00
|
|
|
MAINTAINER= sobomax@FreeBSD.org
|
1999-08-13 05:18:16 +00:00
|
|
|
|
2000-08-31 10:06:09 +00:00
|
|
|
LIB_DEPENDS= esd.2:${PORTSDIR}/audio/esound \
|
|
|
|
aa.1:${PORTSDIR}/graphics/aalib \
|
|
|
|
vga.1:${PORTSDIR}/graphics/svgalib
|
|
|
|
BUILD_DEPENDS= nasm:${PORTSDIR}/devel/nasm
|
1999-08-13 05:18:16 +00:00
|
|
|
|
2000-08-31 10:06:09 +00:00
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_XLIB= yes
|
|
|
|
INSTALLS_SHLIB= yes
|
|
|
|
USE_LIBTOOL= yes
|
2000-04-25 12:43:35 +00:00
|
|
|
|
2000-08-31 10:06:09 +00:00
|
|
|
CONFIGURE_ENV= NASM="${LOCALBASE}/bin/nasm" \
|
|
|
|
LOCALBASE="${LOCALBASE}"
|
|
|
|
CONFIGURE_ARGS= --enable-video-aalib \
|
|
|
|
--enable-video-svga
|
2000-04-25 12:43:35 +00:00
|
|
|
|
2000-08-31 10:06:09 +00:00
|
|
|
CFLAGS+= -D_THREAD_SAFE
|
1999-08-13 05:18:16 +00:00
|
|
|
|
2000-04-25 12:43:35 +00:00
|
|
|
.if defined(WITHOUT_GL)
|
|
|
|
CONFIGURE_ARGS+= --disable-video-opengl
|
|
|
|
.else
|
2000-08-31 10:06:09 +00:00
|
|
|
USE_MESA= yes
|
2000-04-25 12:43:35 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-video-opengl
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-configure:
|
2000-08-31 10:06:09 +00:00
|
|
|
@cd ${WRKSRC} && \
|
2000-04-25 12:43:35 +00:00
|
|
|
${CP} sdl-config sdl11-config && \
|
|
|
|
${CP} sdl.m4 sdl11.m4
|
2000-08-31 10:06:09 +00:00
|
|
|
@${PERL} -pi -e 's|^deplibs_check_method=.*|deplibs_check_method=pass_all|' \
|
|
|
|
${WRKSRC}/libtool
|
2000-04-25 12:43:35 +00:00
|
|
|
|
1999-08-13 05:18:16 +00:00
|
|
|
post-install:
|
2000-08-31 10:06:09 +00:00
|
|
|
@${MKDIR} ${PREFIX}/share/examples/SDL11
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/test/* ${PREFIX}/share/examples/SDL11
|
1999-08-13 05:18:16 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
2000-08-31 10:06:09 +00:00
|
|
|
@${MKDIR} ${PREFIX}/share/doc/SDL11
|
2000-02-03 04:53:59 +00:00
|
|
|
.for file in BUGS COPYING CREDITS README WhatsNew docs.html
|
2000-08-31 10:06:09 +00:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/SDL11
|
1999-08-13 05:18:16 +00:00
|
|
|
.endfor
|
2000-08-31 10:06:09 +00:00
|
|
|
@cd ${WRKSRC}/docs; tar cf - `${ECHO} [^M]*` | \
|
2000-04-25 12:43:35 +00:00
|
|
|
(cd ${PREFIX}/share/doc/SDL11; ${TAR} --unlink -xf - )
|
1999-08-13 05:18:16 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|