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
|
|
|
#
|
|
|
|
|
2001-04-09 07:55:04 -04:00
|
|
|
PORTNAME= sdl
|
2001-11-13 09:27:18 -05:00
|
|
|
PORTVERSION= 1.2.3
|
2001-12-19 07:18:40 -05:00
|
|
|
PORTREVISION= 1
|
2000-08-31 06:06:09 -04:00
|
|
|
CATEGORIES= devel
|
|
|
|
MASTER_SITES= http://www.libsdl.org/release/ \
|
|
|
|
http://www.devolution.com/~slouken/SDL/release/
|
|
|
|
DISTNAME= SDL-${PORTVERSION}
|
1999-08-13 01:18:16 -04:00
|
|
|
|
2000-08-31 06:06:09 -04:00
|
|
|
MAINTAINER= sobomax@FreeBSD.org
|
1999-08-13 01:18:16 -04:00
|
|
|
|
2002-02-21 11:42:49 -05:00
|
|
|
LIB_DEPENDS= aa.1:${PORTSDIR}/graphics/aalib
|
2000-08-31 06:06:09 -04:00
|
|
|
BUILD_DEPENDS= nasm:${PORTSDIR}/devel/nasm
|
1999-08-13 01:18:16 -04:00
|
|
|
|
2000-08-31 06:06:09 -04:00
|
|
|
USE_XLIB= yes
|
2000-10-05 01:19:38 -04:00
|
|
|
USE_ESOUND= yes
|
2000-08-31 06:06:09 -04:00
|
|
|
INSTALLS_SHLIB= yes
|
|
|
|
USE_LIBTOOL= yes
|
2001-03-30 09:12:29 -05:00
|
|
|
CONFIGURE_ENV= NASM="${LOCALBASE}/bin/nasm" \
|
|
|
|
PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
|
|
|
|
PTHREAD_LIBS="${PTHREAD_LIBS}"
|
2000-08-31 06:06:09 -04:00
|
|
|
CONFIGURE_ARGS= --enable-video-aalib \
|
2001-03-13 10:29:31 -05:00
|
|
|
--disable-arts \
|
|
|
|
--disable-nas
|
2000-04-25 08:43:35 -04:00
|
|
|
|
2001-03-29 11:35:19 -05:00
|
|
|
CFLAGS+= ${PTHREAD_CFLAGS}
|
1999-08-13 01:18:16 -04:00
|
|
|
|
2001-01-27 14:22:03 -05:00
|
|
|
.if exists(/usr/lib/libvgl.so.3)
|
|
|
|
CONFIGURE_ARGS+=--enable-video-vgl
|
2001-02-22 03:58:10 -05:00
|
|
|
DISPLAY_MSG= ${CAT} ${PKGMESSAGE}
|
2001-01-27 14:22:03 -05:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-video-vgl
|
2001-03-05 09:09:34 -05:00
|
|
|
PKGMESSAGE= /I/hate/ports/Mk/bsd.port.mk
|
2001-02-22 03:58:10 -05:00
|
|
|
DISPLAY_MSG= ${DO_NADA}
|
2001-01-27 14:22:03 -05:00
|
|
|
.endif
|
|
|
|
|
2000-04-25 08:43:35 -04:00
|
|
|
.if defined(WITHOUT_GL)
|
2000-10-05 01:19:38 -04:00
|
|
|
CONFIGURE_ARGS+=--disable-video-opengl
|
2000-04-25 08:43:35 -04:00
|
|
|
.else
|
2000-08-31 06:06:09 -04:00
|
|
|
USE_MESA= yes
|
2000-10-05 01:19:38 -04:00
|
|
|
CONFIGURE_ARGS+=--enable-video-opengl
|
2000-04-25 08:43:35 -04:00
|
|
|
.endif
|
2002-02-21 11:42:49 -05:00
|
|
|
.if !defined(WITHOUT_SVGALIB)
|
|
|
|
LIB_DEPENDS+= vga.1:${PORTSDIR}/graphics/svgalib
|
|
|
|
CONFIGURE_ARGS+=--enable-video-svga
|
|
|
|
.endif
|
2000-04-25 08:43:35 -04:00
|
|
|
|
2000-09-28 03:21:21 -04:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2002-01-29 05:16:28 -05:00
|
|
|
MAN3!= ${CAT} ${FILESDIR}/man3
|
2000-09-28 03:21:21 -04:00
|
|
|
|
2001-01-24 04:43:34 -05:00
|
|
|
pre-configure:
|
2002-01-29 05:16:28 -05:00
|
|
|
@${FIND} ${WRKSRC} -type f -name Makefile.in | ${XARGS} ${TOUCH}
|
2001-01-24 04:43:34 -05:00
|
|
|
|
2000-04-25 08:43:35 -04:00
|
|
|
post-configure:
|
2000-08-31 06:06:09 -04:00
|
|
|
@cd ${WRKSRC} && \
|
2000-04-25 08:43:35 -04:00
|
|
|
${CP} sdl-config sdl11-config && \
|
|
|
|
${CP} sdl.m4 sdl11.m4
|
2000-08-31 06:06:09 -04:00
|
|
|
@${PERL} -pi -e 's|^deplibs_check_method=.*|deplibs_check_method=pass_all|' \
|
|
|
|
${WRKSRC}/libtool
|
2000-04-25 08:43:35 -04:00
|
|
|
|
1999-08-13 01:18:16 -04:00
|
|
|
post-install:
|
2000-08-31 06:06:09 -04:00
|
|
|
@${MKDIR} ${PREFIX}/share/examples/SDL11
|
2000-10-05 01:19:38 -04:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/test/* ${PREFIX}/share/examples/SDL11
|
1999-08-13 01:18:16 -04:00
|
|
|
.if !defined(NOPORTDOCS)
|
2000-09-28 03:21:21 -04:00
|
|
|
@${MKDIR} ${PREFIX}/share/doc/SDL11/docs
|
2000-02-02 23:53:59 -05:00
|
|
|
.for file in BUGS COPYING CREDITS README WhatsNew docs.html
|
2000-10-05 01:19:38 -04:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/SDL11
|
1999-08-13 01:18:16 -04:00
|
|
|
.endfor
|
2002-01-29 05:16:28 -05:00
|
|
|
@cd ${WRKSRC}/docs; ${TAR} cf - `${ECHO_CMD} [^Mm]*` | \
|
2000-09-28 03:21:21 -04:00
|
|
|
(cd ${PREFIX}/share/doc/SDL11/docs; ${TAR} --unlink -xf - )
|
1999-08-13 01:18:16 -04:00
|
|
|
.endif
|
2001-02-22 03:58:10 -05:00
|
|
|
@${DISPLAY_MSG}
|
1999-08-13 01:18:16 -04:00
|
|
|
|
2000-09-28 03:21:21 -04:00
|
|
|
.include <bsd.port.post.mk>
|