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
|
|
|
#
|
|
|
|
|
2001-04-09 11:55:04 +00:00
|
|
|
PORTNAME= sdl
|
2003-01-02 15:05:08 +00:00
|
|
|
PORTVERSION= 1.2.5
|
2003-07-14 18:14:53 +00:00
|
|
|
PORTREVISION= 2
|
2000-08-31 10:06:09 +00:00
|
|
|
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
|
|
|
|
2003-07-29 09:12:37 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-03-07 06:14:21 +00:00
|
|
|
COMMENT= Cross-platform multi-media development API (developm. vers.)
|
1999-08-13 05:18:16 +00:00
|
|
|
|
2002-02-21 16:42:49 +00:00
|
|
|
LIB_DEPENDS= aa.1:${PORTSDIR}/graphics/aalib
|
2000-08-31 10:06:09 +00:00
|
|
|
BUILD_DEPENDS= nasm:${PORTSDIR}/devel/nasm
|
1999-08-13 05:18:16 +00:00
|
|
|
|
2000-08-31 10:06:09 +00:00
|
|
|
INSTALLS_SHLIB= yes
|
2003-01-08 20:43:31 +00:00
|
|
|
USE_REINPLACE= yes
|
2000-08-31 10:06:09 +00:00
|
|
|
USE_LIBTOOL= yes
|
2003-01-30 19:49:42 +00:00
|
|
|
WANT_GNOME= yes
|
2001-03-30 14:12:29 +00:00
|
|
|
CONFIGURE_ENV= NASM="${LOCALBASE}/bin/nasm" \
|
|
|
|
PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
|
|
|
|
PTHREAD_LIBS="${PTHREAD_LIBS}"
|
2000-08-31 10:06:09 +00:00
|
|
|
CONFIGURE_ARGS= --enable-video-aalib \
|
2002-05-09 22:19:37 +00:00
|
|
|
--disable-nas
|
2000-04-25 12:43:35 +00:00
|
|
|
|
2001-03-29 16:35:19 +00:00
|
|
|
CFLAGS+= ${PTHREAD_CFLAGS}
|
1999-08-13 05:18:16 +00:00
|
|
|
|
2001-01-27 19:22:03 +00:00
|
|
|
.if exists(/usr/lib/libvgl.so.3)
|
|
|
|
CONFIGURE_ARGS+=--enable-video-vgl
|
2001-02-22 08:58:10 +00:00
|
|
|
DISPLAY_MSG= ${CAT} ${PKGMESSAGE}
|
2001-01-27 19:22:03 +00:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-video-vgl
|
2001-03-05 14:09:34 +00:00
|
|
|
PKGMESSAGE= /I/hate/ports/Mk/bsd.port.mk
|
2001-02-22 08:58:10 +00:00
|
|
|
DISPLAY_MSG= ${DO_NADA}
|
2001-01-27 19:22:03 +00:00
|
|
|
.endif
|
|
|
|
|
2002-05-15 20:25:24 +00:00
|
|
|
.if !defined(WITHOUT_X11)
|
|
|
|
USE_XLIB= yes
|
|
|
|
.endif
|
2000-04-25 12:43:35 +00:00
|
|
|
.if defined(WITHOUT_GL)
|
2000-10-05 05:19:38 +00:00
|
|
|
CONFIGURE_ARGS+=--disable-video-opengl
|
2000-04-25 12:43:35 +00:00
|
|
|
.else
|
2000-08-31 10:06:09 +00:00
|
|
|
USE_MESA= yes
|
2000-10-05 05:19:38 +00:00
|
|
|
CONFIGURE_ARGS+=--enable-video-opengl
|
2000-04-25 12:43:35 +00:00
|
|
|
.endif
|
2002-04-18 08:10:01 +00:00
|
|
|
.if exists(/usr/include/libusbhid.h)
|
|
|
|
CONFIGURE_ENV+= USB_LIBS=-lusbhid
|
|
|
|
CFLAGS+= -DHAVE_LIBUSBHID_H
|
|
|
|
.else
|
|
|
|
CONFIGURE_ENV+= USB_LIBS=-lusb
|
|
|
|
.endif
|
2000-04-25 12:43:35 +00:00
|
|
|
|
2000-09-28 07:21:21 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2002-01-29 10:16:28 +00:00
|
|
|
MAN3!= ${CAT} ${FILESDIR}/man3
|
2000-09-28 07:21:21 +00:00
|
|
|
|
2002-05-17 08:32:45 +00:00
|
|
|
.if (${ARCH} != "i386")
|
|
|
|
WITHOUT_SVGALIB= yes
|
|
|
|
.endif
|
|
|
|
|
2003-01-30 19:49:42 +00:00
|
|
|
.if ${HAVE_GNOME:Mesound}!=""
|
|
|
|
USE_GNOME+= esound
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-esd --disable-esdtest
|
|
|
|
.endif
|
|
|
|
|
2002-05-17 08:32:45 +00:00
|
|
|
.if !defined(WITHOUT_SVGALIB)
|
|
|
|
LIB_DEPENDS+= vga.1:${PORTSDIR}/graphics/svgalib
|
|
|
|
CONFIGURE_ARGS+=--enable-video-svga
|
|
|
|
.endif
|
|
|
|
|
2002-08-30 12:39:30 +00:00
|
|
|
.if exists(${LOCALBASE}/bin/artsc-config) || defined(WITH_ARTS)
|
|
|
|
LIB_DEPENDS+= artsc.0:${PORTSDIR}/audio/arts
|
|
|
|
CONFIGURE_ARGS+=--enable-arts
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-arts
|
|
|
|
.endif
|
|
|
|
|
2001-01-24 09:43:34 +00:00
|
|
|
pre-configure:
|
2002-01-29 10:16:28 +00:00
|
|
|
@${FIND} ${WRKSRC} -type f -name Makefile.in | ${XARGS} ${TOUCH}
|
2001-01-24 09:43:34 +00:00
|
|
|
|
2000-04-25 12:43:35 +00:00
|
|
|
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
|
2003-01-08 20:43:31 +00:00
|
|
|
@${REINPLACE_CMD} 's|^deplibs_check_method=.*|deplibs_check_method=pass_all|' \
|
2000-08-31 10:06:09 +00:00
|
|
|
${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
|
2000-10-05 05:19:38 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/test/* ${PREFIX}/share/examples/SDL11
|
1999-08-13 05:18:16 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
2000-09-28 07:21:21 +00:00
|
|
|
@${MKDIR} ${PREFIX}/share/doc/SDL11/docs
|
2000-02-03 04:53:59 +00:00
|
|
|
.for file in BUGS COPYING CREDITS README WhatsNew docs.html
|
2000-10-05 05:19:38 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/SDL11
|
1999-08-13 05:18:16 +00:00
|
|
|
.endfor
|
2002-01-29 10:16:28 +00:00
|
|
|
@cd ${WRKSRC}/docs; ${TAR} cf - `${ECHO_CMD} [^Mm]*` | \
|
2000-09-28 07:21:21 +00:00
|
|
|
(cd ${PREFIX}/share/doc/SDL11/docs; ${TAR} --unlink -xf - )
|
1999-08-13 05:18:16 +00:00
|
|
|
.endif
|
2001-02-22 08:58:10 +00:00
|
|
|
@${DISPLAY_MSG}
|
1999-08-13 05:18:16 +00:00
|
|
|
|
2000-09-28 07:21:21 +00:00
|
|
|
.include <bsd.port.post.mk>
|