diff options
Diffstat (limited to 'emulators/dosbox/Makefile')
-rw-r--r-- | emulators/dosbox/Makefile | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/emulators/dosbox/Makefile b/emulators/dosbox/Makefile new file mode 100644 index 000000000000..b3fbdff39b3f --- /dev/null +++ b/emulators/dosbox/Makefile @@ -0,0 +1,48 @@ +# New ports collection makefile for: dosbox +# Date created: 28 July 2002 +# Whom: Tom Carrick <knyghtmare@knyghtmare.com> +# +# $FreeBSD$ +# + +PORTNAME= dosbox +PORTVERSION= 0.55 +CATEGORIES= emulators +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= ${PORTNAME} + +MAINTAINER= knyghtmare@knyghtmare.com +COMMENT= An emulator of a PC with DOS + +LIB_DEPENDS= SDL-1.1.4:${PORTSDIR}/devel/sdl12 + +SDL_CONFIG?= ${LOCALBASE}/bin/sdl11-config + +GNU_CONFIGURE= yes +CONFIGURE_ENV= SDL_CONFIG="${SDL_CONFIG}" + +USE_REINPLACE= yes + +post-patch: + ${REINPLACE_CMD} -e 's#<SDL/#<SDL11/#' ${WRKSRC}/include/timer.h \ + ${WRKSRC}/src/gui/sdlmain.cpp ${WRKSRC}/src/hardware/mixer.cpp + ${REINPLACE_CMD} -e "s#@@PREFIX@@#${PREFIX}#" \ + ${WRKSRC}/src/misc/messages.cpp + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/src/dosbox ${PREFIX}/bin/dosbox + ${MKDIR} ${PREFIX}/share/dosbox + ${INSTALL_DATA} ${WRKSRC}/src/dosbox.lang ${PREFIX}/share/dosbox +.if !defined(NOPORTDOCS) + ${MKDIR} ${PREFIX}/share/doc/dosbox + ${INSTALL_DATA} ${WRKSRC}/NEWS ${PREFIX}/share/doc/dosbox + ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/dosbox +.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} "=================================================" + +.include <bsd.port.mk> |