mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-07 06:40:06 +00:00
0d2725682b
structure (i.e. include/SDL for includes and sdl-config for configuration binary) - Update graphics/sdl_ttf to version 2.0.8 - Update graphics/sdl_image to version 1.2.5 - Update audio/sdl_mixer to version 1.2.7 - Update net/sdl_net to version 1.2.6 - Update Mk/bsd.sdl.mk accordingly - Fix dependent ports to fit the new directory structure and avoid several API breakages - Bump up portrevisions for all dependent ports to allow them to be upgraded by portupgrade/portmaster etc tools Approved by: kris (portmgr), sem (mentor)
84 lines
1.8 KiB
Makefile
84 lines
1.8 KiB
Makefile
# New ports collection makefile for: scummvm
|
|
# Date created: Tue Sep 2 23:34:32 BST 2003
|
|
# Whom: Alex Trull <freebsd.alex@trull.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= scummvm
|
|
PORTVERSION= 0.8.2
|
|
PORTREVISION= 1
|
|
CATEGORIES= games emulators
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
MAINTAINER= freebsd.alex@trull.org
|
|
COMMENT= Graphical Adventure Game Virtual Machine
|
|
|
|
USE_BZIP2= yes
|
|
#USE_GCC= 3.3+
|
|
USE_GMAKE= yes
|
|
HAS_CONFIGURE= yes
|
|
USE_SDL= sdl
|
|
|
|
CONFIGURE_ARGS=--with-sdl-prefix=${LOCALBASE} \
|
|
--disable-alsa \
|
|
--with-zlib-prefix=/usr \
|
|
--disable-debug
|
|
CONFIGURE_ENV= CXX="${CXX}"
|
|
|
|
OPTIONS= VORBIS "Enable Ogg Vorbis support" off \
|
|
MAD "Enable mad (MP3) support" on \
|
|
MPEG2 "Enable MPEG2 support (implies VORBIS)" off
|
|
|
|
MAN6= scummvm.6
|
|
|
|
PORTDOCS= NEWS README TODO
|
|
PLIST_FILES= bin/scummvm
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if defined(WITH_MPEG2)
|
|
WITH_VORBIS= yes
|
|
.endif
|
|
|
|
.if defined(WITH_VORBIS)
|
|
LIB_DEPENDS+= ogg.5:${PORTSDIR}/audio/libogg \
|
|
vorbis.3:${PORTSDIR}/audio/libvorbis
|
|
CONFIGURE_ARGS+=--with-ogg-prefix=${LOCALBASE} \
|
|
--with-vorbis-prefix=${LOCALBASE}
|
|
.else
|
|
CONFIGURE_ARGS+=--disable-vorbis
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_MAD)
|
|
LIB_DEPENDS+= mad.2:${PORTSDIR}/audio/libmad
|
|
CONFIGURE_ARGS+=--with-mad-prefix=${LOCALBASE}
|
|
.else
|
|
CONFIGURE_ARGS+=--disable-mad
|
|
.endif
|
|
|
|
.if defined(WITH_MPEG2)
|
|
WITH_VORBIS= yes
|
|
LIB_DEPENDS+= mpeg2.0:${PORTSDIR}/multimedia/libmpeg2
|
|
CONFIGURE_ARGS+=--with-mpeg2-prefix=${LOCALBASE}
|
|
.else
|
|
CONFIGURE_ARGS+=--disable-mpeg2
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's/-O//' ${WRKSRC}/Makefile
|
|
|
|
do-install:
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/scummvm ${PREFIX}/bin
|
|
@${INSTALL_MAN} ${WRKSRC}/scummvm.6 ${PREFIX}/man/man6
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}
|
|
.for doc in ${PORTDOCS}
|
|
@${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
|
|
.endfor
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|