sthen 37bfd0f162 Make use of some code in dosbox, intended for MacOS X, which avoids using
%ebx on i386 (now used for PIE). Not 100% sure if this is the best way to go,
but it works in initial tests, and the port no longer builds without it,
so let's try this for now and see how it goes, jsg@ agrees.

There's a bit more commentary in a comment in the patch (the enabled code
also aligns stack on 16 bytes which OSX IA-32 ABI requires as they use SSE
extensively, which we won't need but it seems safer to enable all the
related code together).
2014-01-09 10:10:15 +00:00

56 lines
1.6 KiB
Makefile

# $OpenBSD: Makefile,v 1.28 2014/01/09 10:10:15 sthen Exp $
ONLY_FOR_ARCHS= ${GCC4_ARCHS}
COMMENT= x86 with DOS emulator targeted at playing games
BROKEN-hppa = mpu401.cpp:42: error: expected identifier before numeric constant
DISTNAME= dosbox-0.74
REVISION= 4
CATEGORIES= games x11 emulators
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=dosbox/}
HOMEPAGE= http://dosbox.sourceforge.net/
MAINTAINER= Jonathan Gray <jsg@openbsd.org>
# GPL
PERMIT_PACKAGE_CDROM= Yes
WANTLIB += SDL SDL_net SDL_sound stdc++ png X11 c m pthread sndio z
LIB_DEPENDS= devel/sdl-net \
devel/sdl-sound \
graphics/png
USE_GROFF= Yes
NO_TEST= Yes
AUTOCONF_VERSION= 2.69
AUTOMAKE_VERSION= 1.12
BUILD_DEPENDS= ${MODGNU_AUTOCONF_DEPENDS} \
${MODGNU_AUTOMAKE_DEPENDS}
CONFIGURE_STYLE= gnu
CONFIGURE_ENV=CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include"
CONFIGURE_ENV+=LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib"
CONFIGURE_ARGS+= --disable-alsatest
CONFIGURE_ARGS+= --disable-opengl
pre-configure:
cp ${FILESDIR}/midi_sndio.h ${WRKSRC}/src/gui
cd ${WRKSRC} && env AUTOCONF_VERSION=${AUTOCONF_VERSION} \
AUTOMAKE_VERSION=${AUTOMAKE_VERSION} aclocal
cd ${WRKSRC} && env AUTOCONF_VERSION=${AUTOCONF_VERSION} \
AUTOMAKE_VERSION=${AUTOMAKE_VERSION} autoconf
cd ${WRKSRC} && env AUTOCONF_VERSION=${AUTOCONF_VERSION} \
AUTOMAKE_VERSION=${AUTOMAKE_VERSION} autoheader
cd ${WRKSRC} && env AUTOCONF_VERSION=${AUTOCONF_VERSION} \
AUTOMAKE_VERSION=${AUTOMAKE_VERSION} automake
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/dosbox
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/dosbox
.include <bsd.port.mk>