openbsd-ports/emulators/fceux/Makefile
bentley bb86ebc474 Update to fceux-2.2.1.
ok rfreeman@
2013-04-22 23:28:07 +00:00

59 lines
1.3 KiB
Makefile

# $OpenBSD: Makefile,v 1.5 2013/04/22 23:28:07 bentley Exp $
COMMENT = emulator for Nintendo Entertainment System
V = 2.2.1
DISTNAME = fceux-${V}.src
PKGNAME = fceux-${V}
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 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}" \
CXXFLAGS="${CXXFLAGS} -DIOAPI_NO_64" \
LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib"
CONFIGURE_STYLE = scons
WRKDIST = ${WRKDIR}/fceux-${V}
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>