mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-19 03:52:17 +00:00
![Alexander Leidinger](/assets/img/avatar_default.png)
- updated website address - 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. PR: 58174 Submitted by: Marius Strobl <marius@alchemy.franken.de> Approved by: maintainer
52 lines
1.3 KiB
Makefile
52 lines
1.3 KiB
Makefile
# New ports collection makefile for: dosbox
|
|
# Date created: 28 July 2002
|
|
# Whom: Tom Carrick <knyghtmare@knyghtmare.com>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= dosbox
|
|
PORTVERSION= 0.60
|
|
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_net.0:${PORTSDIR}/net/sdl_net \
|
|
png.5:${PORTSDIR}/graphics/png
|
|
|
|
GNU_CONFIGURE= yes
|
|
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
|
|
|
|
post-patch:
|
|
@${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} ${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/NEWS ${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
|
|
.endif
|
|
|
|
post-install:
|
|
@${CAT} ${WRKDIR}/pkg-message
|
|
|
|
.include <bsd.port.mk>
|