Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. # $OpenBSD: Makefile,v 1.15 2017/05/31 08:08:15 espie Exp $
  2. COMMENT= free Lemmings-like game
  3. DISTNAME= pingus-0.7.6
  4. REVISION=1
  5. CATEGORIES= games x11
  6. EXTRACT_SUFX= .tar.bz2
  7. HOMEPAGE= http://pingus.seul.org/
  8. MASTER_SITES= ${MASTER_SITE_GOOGLECODE:=pingus/}
  9. # GPLv2
  10. PERMIT_PACKAGE_CDROM= Yes
  11. WANTLIB += GL SDL X11 Xi c iconv m png pthread z
  12. WANTLIB += SDL_mixer>=3 SDL_image>=2 boost_signals ${LIBECXX}
  13. MODULES= devel/scons
  14. COMPILER = gcc
  15. LIB_DEPENDS= converters/libiconv \
  16. devel/sdl-mixer \
  17. devel/sdl-image \
  18. devel/boost
  19. NO_TEST= Yes
  20. pre-configure:
  21. ${SUBST_CMD} ${WRKSRC}/src/pingus/pingus_main.cpp
  22. do-build:
  23. cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MODSCONS_BIN} \
  24. ${MODSCONS_ENV} \
  25. CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
  26. LINKFLAGS="-L${LOCALBASE}/lib -lz -L${X11BASE}/lib" \
  27. with_xinput=1 \
  28. with_linuxusbmouse=0 \
  29. with_wiimote=0 \
  30. with_linuxevdev=0
  31. do-install:
  32. ${INSTALL_DATA_DIR} ${PREFIX}/share{,/doc}/pingus
  33. ${INSTALL_PROGRAM} ${WRKSRC}/build/pingus ${PREFIX}/bin/
  34. cd ${WRKSRC}/data && pax -rw * ${PREFIX}/share/pingus/
  35. ${INSTALL_DATA} ${WRKSRC}/README \
  36. ${PREFIX}/share/doc/pingus/
  37. ${INSTALL_MAN} ${WRKSRC}/doc/man/pingus.6 ${PREFIX}/man/man6/
  38. .include <bsd.port.mk>