openbsd-ports/emulators/mednafen/Makefile

51 lines
1.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.4 2012/09/28 16:21:03 jeremy Exp $
COMMENT = emulates numerous game consoles
DISTNAME = mednafen-0.9.24-wip
PKGNAME = mednafen-0.9.24
REVISION = 0
CATEGORIES = emulators games
HOMEPAGE = http://mednafen.sourceforge.net/
MAINTAINER = Jeremy Evans <jeremy@openbsd.org>
# GPLv2
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM = Yes
PERMIT_DISTFILES_FTP = Yes
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=mednafen/}
EXTRACT_SUFX = .tar.bz2
MODULES = devel/gettext
WANTLIB += SDL c cdio m pthread sndfile sndio stdc++ usbhid z
USE_GMAKE = Yes
LIB_DEPENDS = audio/libcdio \
audio/libsndfile \
devel/sdl
WRKDIST = ${WRKDIR}/mednafen
VMEM_WARNING = Yes
CONFIGURE_STYLE = gnu
CONFIGURE_ENV = CFLAGS="-I${LOCALBASE}/include -I${LOCALBASE}/include/SDL" \
LDFLAGS="-L${LOCALBASE}/lib -pthread"
CONFIGURE_ARGS = --disable-alsa \
--disable-rpath \
--disable-jack \
--with-x \
--with-gnu-ld
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/mednafen
${INSTALL_DATA} ${WRKSRC}/Documentation/* ${PREFIX}/share/doc/mednafen/
.include <bsd.port.mk>