1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-02 06:03:50 +00:00
freebsd-ports/emulators/dosbox/Makefile
Munechika SUMIKAWA 75a5f843a7 Fixed dependency.
2003-05-05 11:03:14 +00:00

50 lines
1.4 KiB
Makefile

# New ports collection makefile for: dosbox
# Date created: 28 July 2002
# Whom: Tom Carrick <knyghtmare@knyghtmare.com>
#
# $FreeBSD$
#
PORTNAME= dosbox
PORTVERSION= 0.55
PORTREVISON= 1
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.5:${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>