2003-05-02 00:19:27 +02:00
|
|
|
# New ports collection makefile for: dosbox
|
|
|
|
# Date created: 28 July 2002
|
|
|
|
# Whom: Tom Carrick <knyghtmare@knyghtmare.com>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= dosbox
|
2007-07-31 14:59:28 +02:00
|
|
|
PORTVERSION= 0.71
|
2003-05-02 00:19:27 +02:00
|
|
|
CATEGORIES= emulators
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
|
2005-01-03 22:43:09 +01:00
|
|
|
MAINTAINER= knyght@gmail.com
|
2003-05-05 13:03:14 +02:00
|
|
|
COMMENT= An emulator of a PC with DOS
|
2003-05-02 00:19:27 +02:00
|
|
|
|
2004-01-24 00:09:28 +01:00
|
|
|
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png
|
2003-05-02 00:19:27 +02:00
|
|
|
|
2007-03-13 14:18:09 +01:00
|
|
|
USE_AUTOTOOLS= autoconf:259 aclocal:19
|
2003-05-02 00:19:27 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2004-01-24 00:09:28 +01:00
|
|
|
USE_SDL= sdl net
|
2003-11-01 15:28:19 +01:00
|
|
|
|
|
|
|
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
|
2003-05-02 00:19:27 +02:00
|
|
|
|
2006-05-30 09:02:51 +02:00
|
|
|
USE_GCC= 3.2+
|
|
|
|
|
2003-05-02 00:19:27 +02:00
|
|
|
post-patch:
|
2003-11-01 15:28:19 +01:00
|
|
|
@${REINPLACE_CMD} -e 's#\/usr\/share\/doc\/dosbox#${DOCSDIR}#g' \
|
|
|
|
${WRKSRC}/docs/dosbox.1
|
|
|
|
@${SED} 's#%%DOCSDIR%%#${DOCSDIR}#' ${PKGDIR}/pkg-message > \
|
|
|
|
${WRKDIR}/pkg-message
|
2003-05-02 00:19:27 +02:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/dosbox ${PREFIX}/bin/dosbox
|
2003-11-01 15:28:19 +01:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/docs/dosbox.1 ${PREFIX}/man/man1/
|
2003-05-02 00:19:27 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
2003-11-01 15:28:19 +01:00
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/NEWS ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
|
2003-05-02 00:19:27 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
post-install:
|
2003-11-01 15:28:19 +01:00
|
|
|
@${CAT} ${WRKDIR}/pkg-message
|
2003-05-02 00:19:27 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|