ports/58174: [maintainer update] update emulators/dosbox to 0.60

Marius Strobl marius at alchemy.franken.de
Sat Oct 18 23:50:23 UTC 2003


The following reply was made to PR ports/58174; it has been noted by GNATS.

From: Marius Strobl <marius at alchemy.franken.de>
To: knyghtmare at knyghtmare.com
Cc: freebsd-gnats-submit at FreeBSD.org, netchild at FreeBSD.org
Subject: Re: ports/58174: [maintainer update] update emulators/dosbox to 0.60
Date: Sun, 19 Oct 2003 01:41:23 +0200

 --EY/WZ/HvNxOox07X
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 
 
 Hi,
 
 attached is an alternate patch, additionally to updating the port to 0.60
 it does the following:
 - Use USE_SDL instead of manually specifying devel/sdl12 as LIB_DEPENDS
   and setting SDL_CONFIG.
 - Enable screenshot and modem emulation support.
 - Install the dosbox(1) manual page.
 - Move the message displayed by the post-install target into a pkg-message
   so it also gets displayed when this port is installed via its package.
 - Use DOCSDIR.
 
 
 --EY/WZ/HvNxOox07X
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: attachment; filename="emulators::dosbox.diff"
 
 Index: Makefile
 ===================================================================
 RCS file: /mnt/futile/usr/data/bsd/cvs/fbsd/ports/emulators/dosbox/Makefile,v
 retrieving revision 1.4
 diff -u -r1.4 Makefile
 --- Makefile	16 Aug 2003 11:44:40 -0000	1.4
 +++ Makefile	18 Oct 2003 11:15:37 -0000
 @@ -6,7 +6,7 @@
  #
  
  PORTNAME=	dosbox
 -PORTVERSION=	0.58
 +PORTVERSION=	0.60
  CATEGORIES=	emulators
  MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
  MASTER_SITE_SUBDIR=	${PORTNAME}
 @@ -14,34 +14,38 @@
  MAINTAINER=	knyghtmare at knyghtmare.com
  COMMENT=	An emulator of a PC with DOS
  
 -LIB_DEPENDS=	SDL-1.1.5:${PORTSDIR}/devel/sdl12
 -
 -SDL_CONFIG?=	${LOCALBASE}/bin/sdl11-config
 +LIB_DEPENDS=	SDL_net.0:${PORTSDIR}/net/sdl_net \
 +		png.5:${PORTSDIR}/graphics/png
  
  GNU_CONFIGURE=	yes
 -CONFIGURE_ENV=	SDL_CONFIG="${SDL_CONFIG}"
 -
  USE_REINPLACE=	yes
 +USE_SDL=	yes
 +
 +MAN1=		dosbox.1
 +PKGMESSAGE=	${WRKDIR}/pkg-message
 +
 +CPPFLAGS+=		-I${LOCALBASE}/include
 +CONFIGURE_ENV+=		CPPFLAGS="${CPPFLAGS}"
 +CONFIGURE_TARGET=	--build=${ARCH}-portbld-freebsd${OSREL}
 +CONFIGURE_ARGS+=	--enable-core-inline=${TRUE}
  
  post-patch:
 -	@${REINPLACE_CMD} -e 's#"SDL.h"#<SDL11/SDL.h>#' \
 -		${WRKSRC}/src/gui/sdlmain.cpp ${WRKSRC}/src/hardware/mixer.cpp
 -	@${REINPLACE_CMD} -e 's#<SDL.h>#<SDL11/SDL.h>#' ${WRKSRC}/include/timer.h
 -	@${REINPLACE_CMD} -e 's#"SDL_thread.h"#<SDL11/SDL_thread.h>#' \
 -		${WRKSRC}/src/gui/sdlmain.cpp
 +	@${REINPLACE_CMD} -e 's#SDL\/#SDL11\/#g' ${WRKSRC}/configure
 +	@${REINPLACE_CMD} -e 's#\/usr\/share\/doc\/dosbox#${DOCSDIR}#g' \
 +		${WRKSRC}/docs/dosbox.1
 +	@${SED} 's#%%DOCSDIR%%#${DOCSDIR}#' ${PKGDIR}/pkg-message > \
 +		${WRKDIR}/pkg-message
  
  do-install:
  	${INSTALL_PROGRAM} ${WRKSRC}/src/dosbox ${PREFIX}/bin/dosbox
 +	${INSTALL_MAN} ${WRKSRC}/docs/dosbox.1 ${PREFIX}/man/man1/
  .if !defined(NOPORTDOCS)
 -	${MKDIR} ${PREFIX}/share/doc/dosbox
 -	${INSTALL_DATA} ${WRKSRC}/NEWS ${PREFIX}/share/doc/dosbox
 -	${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/dosbox
 +	${MKDIR} ${DOCSDIR}
 +	${INSTALL_DATA} ${WRKSRC}/NEWS ${DOCSDIR}
 +	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
  .endif
  
  post-install:
 -	@${ECHO_CMD} "================================================="
 -	@${ECHO_CMD} "Be sure to read the README for usage instructions"
 -	@${ECHO_CMD} "located in ${PREFIX}/share/doc/dosbox by default"
 -	@${ECHO_CMD} "================================================="
 +	@${CAT} ${WRKDIR}/pkg-message
  
  .include <bsd.port.mk>
 Index: distinfo
 ===================================================================
 RCS file: /mnt/futile/usr/data/bsd/cvs/fbsd/ports/emulators/dosbox/distinfo,v
 retrieving revision 1.2
 diff -u -r1.2 distinfo
 --- distinfo	26 Jul 2003 00:03:00 -0000	1.2
 +++ distinfo	18 Oct 2003 10:38:55 -0000
 @@ -1 +1 @@
 -MD5 (dosbox-0.58.tar.gz) = 91c49a597134f35f899d32a8b253205b
 +MD5 (dosbox-0.60.tar.gz) = ca68955bcc3585630dcf17bab6ec185a
 Index: pkg-descr
 ===================================================================
 RCS file: /mnt/futile/usr/data/bsd/cvs/fbsd/ports/emulators/dosbox/pkg-descr,v
 retrieving revision 1.1
 diff -u -r1.1 pkg-descr
 --- pkg-descr	1 May 2003 22:19:27 -0000	1.1
 +++ pkg-descr	18 Oct 2003 10:53:45 -0000
 @@ -4,10 +4,10 @@
  
  Currently emulated is:
  
 -o CPU:286/386 realmode
 -o GFX:VGA/EGS/CGA
 +o CPU:286/386 realmode/pmode
 +o GFX:VGA/EGS/CGA/SVGA/VESA
  o SND:PC-Speaker/Tandy 3-Voice/Adlib/SoundBlaster
  o MSC:Keyboard/Mouse
 -o DOS:Director FileSystem/XMS/EMS
 +o DOS:Directory FileSystem/XMS/EMS
  
 -WWW: http://dosbox.zophar.net/
 +WWW: http://dosbox.sourceforge.net/
 Index: pkg-message
 ===================================================================
 RCS file: pkg-message
 diff -N pkg-message
 --- /dev/null	1 Jan 1970 00:00:00 -0000
 +++ pkg-message	18 Oct 2003 10:38:55 -0000
 @@ -0,0 +1,4 @@
 +=================================================
 +Be sure to read the README for usage instructions
 +located in %%DOCSDIR%% by default
 +=================================================
 Index: pkg-plist
 ===================================================================
 RCS file: /mnt/futile/usr/data/bsd/cvs/fbsd/ports/emulators/dosbox/pkg-plist,v
 retrieving revision 1.3
 diff -u -r1.3 pkg-plist
 --- pkg-plist	16 Aug 2003 11:44:40 -0000	1.3
 +++ pkg-plist	18 Oct 2003 10:38:55 -0000
 @@ -1,5 +1,4 @@
  bin/dosbox
 -%%PORTDOCS%%share/doc/dosbox/NEWS
 -%%PORTDOCS%%share/doc/dosbox/README
 -%%PORTDOCS%%@dirrm share/doc/dosbox
 - at dirrm share/dosbox
 +%%PORTDOCS%%%%DOCSDIR%%/NEWS
 +%%PORTDOCS%%%%DOCSDIR%%/README
 +%%PORTDOCS%%@dirrm %%DOCSDIR%%
 Index: files/patch-src::gui::sdlmain.cpp
 ===================================================================
 RCS file: files/patch-src::gui::sdlmain.cpp
 diff -N files/patch-src::gui::sdlmain.cpp
 --- files/patch-src::gui::sdlmain.cpp	29 Jul 2003 00:49:08 -0000	1.1
 +++ /dev/null	1 Jan 1970 00:00:00 -0000
 @@ -1,12 +0,0 @@
 ---- src/gui/sdlmain.cpp.orig	Sun May 11 14:05:10 2003
 -+++ src/gui/sdlmain.cpp	Sun May 11 14:06:05 2003
 -@@ -39,9 +39,7 @@
 - //#define DISABLE_JOYSTICK
 - #define C_GFXTHREADED 1						//Enabled by default
 - 
 --#if defined(MACOSX)
 - extern char** environ;
 --#endif
 - 
 - struct SDL_Block {
 - 	volatile bool active;						//If this isn't set don't draw
 
 --EY/WZ/HvNxOox07X--



More information about the freebsd-ports-bugs mailing list