Makefile 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. # $OpenBSD: Makefile,v 1.15 2017/05/12 14:11:54 espie Exp $
  2. BROKEN-sparc64 = Illegal operands error building SDL_gfxPrimitives.cpp
  3. COMMENT = blinkensisters - hunt for the lost pixels
  4. V = 0.5.3
  5. DISTNAME = LostPixels-${V}-source-with-addons
  6. PKGNAME = lostpixels-${V}
  7. REVISION = 4
  8. HOMEPAGE = http://www.blinkensisters.org
  9. CATEGORIES = games
  10. # GPL v2 only
  11. PERMIT_PACKAGE_CDROM = Yes
  12. MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=blinkensisters/}
  13. LIB_DEPENDS = devel/sdl-net \
  14. devel/sdl-image \
  15. devel/sdl-mixer \
  16. devel/sdl-ttf
  17. WANTLIB += SDL SDL_image SDL_mixer SDL_net SDL_ttf X11 Xau
  18. WANTLIB += Xdmcp Xext Xrandr Xrender c freetype m pthread ${LIBCXX}
  19. USE_GMAKE = Yes
  20. MODULES += devel/cmake \
  21. lang/lua
  22. MODLUA_BUILDDEP = No
  23. WRKDIST = ${WRKDIR}/blinkensisters/lostpixels/game/software
  24. SEPARATE_BUILD = No
  25. NO_TEST = Yes
  26. pre-configure:
  27. ${SUBST_CMD} ${WRKDIST}/CMakeLists.txt
  28. @perl -pi -e 's,make,${MAKE_PROGRAM},g ; s,/usr/local,\$$\{PREFIX},g' \
  29. ${WRKDIST}/../addons/Makefile
  30. @find ${WRKDIST}/../addons/ -name Makefile -exec \
  31. perl -pi -e 's,bmfcompress,${WRKDIST}/bmfcompress,g' {} \;
  32. post-build:
  33. cd ${WRKDIST}/../addons && ${MAKE_PROGRAM} all
  34. post-install:
  35. mv ${PREFIX}/bin/LostPixels ${PREFIX}/bin/lostpixels
  36. cd ${WRKDIST}/../addons && ${MAKE_PROGRAM} install
  37. .include <bsd.port.mk>