openbsd-ports/emulators/fceux/Makefile
2013-03-11 11:02:49 +00:00

58 lines
1.2 KiB
Makefile

# $OpenBSD: Makefile,v 1.4 2013/03/11 11:06:04 espie Exp $
COMMENT = emulator for Nintendo Entertainment System
DISTNAME = fceux-2.2.0.src
PKGNAME = ${DISTNAME:S/.src//}
REVISION = 0
CATEGORIES = emulators games
HOMEPAGE = http://fceux.com/
MAINTAINER = Anthony J. Bentley <anthony@cathet.us>
# GPLv2+
PERMIT_PACKAGE_CDROM = Yes
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=fceultra/}
WANTLIB += GL SDL X11 c gd gdk-x11-2.0 gdk_pixbuf-2.0 glib-2.0
WANTLIB += gobject-2.0 gtk-x11-2.0 lua5.1 m pixman-1 pthread
WANTLIB += stdc++ z ${MODLUA_WANTLIB}
LIB_DEPENDS = devel/sdl \
graphics/gd \
x11/gtk+2
MODULES = devel/scons \
lang/lua
MAKE_ENV = CC="${CC}" \
CXX="${CXX}" \
LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib"
CONFIGURE_STYLE = scons
WRKDIST = ${WRKDIR}/fceux
NO_TEST = Yes
SUBST_VARS += MODLUA_WANTLIB
SUBST_VARS += MODLUA_LIB
post-extract:
@perl -MExtUtils::Command -e dos2unix ${WRKSRC}
pre-configure:
${SUBST_CMD} ${WRKDIST}/SConstruct
do-install:
${SETENV} ${MAKE_ENV} ${MODSCONS_BIN} -C ${WRKSRC} \
${MODSCONS_ENV} ${MODSCONS_FLAGS} \
--prefix=${PREFIX} ${INSTALL_TARGET}
# XXX scons picks up x264.h even though it's in an apparently unused ifdef block
DPB_PROPERTIES = nojunk
.include <bsd.port.mk>