Makefile 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. # $OpenBSD: Makefile,v 1.12 2017/04/28 13:17:21 espie Exp $
  2. COMMENT = emulator for Nintendo Entertainment System
  3. V = 2.2.3
  4. DISTNAME = fceux-${V}.src
  5. PKGNAME = fceux-${V}
  6. CATEGORIES = emulators games
  7. HOMEPAGE = http://fceux.com/
  8. MAINTAINER = Anthony J. Bentley <anthony@anjbe.name>
  9. # GPLv2+
  10. PERMIT_PACKAGE_CDROM = Yes
  11. MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=fceultra/}
  12. WANTLIB += GL SDL X11 c gd gdk-x11-2.0 gdk_pixbuf-2.0 glib-2.0
  13. WANTLIB += gobject-2.0 gtk-x11-2.0 lua5.1 m pthread
  14. WANTLIB += ${LIBCXX} z ${MODLUA_WANTLIB}
  15. RUN_DEPENDS = devel/desktop-file-utils
  16. LIB_DEPENDS = devel/sdl \
  17. graphics/gd \
  18. x11/gtk+2
  19. MODULES = devel/scons \
  20. lang/lua
  21. MAKE_ENV = CC="${CC}" \
  22. CXX="${CXX}" \
  23. CXXFLAGS="${CXXFLAGS} -DIOAPI_NO_64" \
  24. LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib -lpthread"
  25. MODSCONS_FLAGS = SYSTEM_LUA=1
  26. CONFIGURE_STYLE = scons
  27. WRKDIST = ${WRKDIR}/fceux-${V}
  28. NO_TEST = Yes
  29. SUBST_VARS += MODLUA_WANTLIB
  30. SUBST_VARS += MODLUA_LIB
  31. post-extract:
  32. @perl -MExtUtils::Command -e dos2unix ${WRKSRC}
  33. pre-configure:
  34. ${SUBST_CMD} ${WRKDIST}/SConstruct ${WRKDIST}/fceux.desktop
  35. do-install:
  36. ${SETENV} ${MAKE_ENV} ${MODSCONS_BIN} -C ${WRKSRC} \
  37. ${MODSCONS_ENV} ${MODSCONS_FLAGS} \
  38. --prefix=${PREFIX} ${INSTALL_TARGET}
  39. #BROKEN = nojunk
  40. # XXX scons picks up x264.h even though it's in an apparently unused ifdef block
  41. DPB_PROPERTIES = nojunk
  42. .include <bsd.port.mk>