Makefile 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. # $OpenBSD: Makefile,v 1.3 2017/04/30 08:56:45 espie Exp $
  2. COMMENT = WWII German submarine simulator
  3. PKGNAME = dangerdeep-0.3.99.3327
  4. REVISION = 0
  5. CATEGORIES = games
  6. HOMEPAGE = http://dangerdeep.sourceforge.net/
  7. # Code GPLv2+
  8. # Graphics CC BY-NC-ND 2.5
  9. # Music CC BY-NC-ND 2.0
  10. PERMIT_PACKAGE_CDROM = Noncommercial
  11. PERMIT_PACKAGE_FTP = Yes
  12. WANTLIB += GL GLU SDL SDL_image SDL_mixer bz2 c fftw3f m ${LIBCXX}
  13. WANTLIB += pthread
  14. MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=dangerdeep/}
  15. DISTFILES = dangerdeep-0.4.0_pre3327.tar.gz \
  16. dangerdeep-data-0.4.0_pre3327.zip
  17. MODULES = devel/scons
  18. LIB_DEPENDS = archivers/bzip2 \
  19. devel/sdl-image \
  20. devel/sdl-mixer \
  21. math/fftw3,float
  22. MAKE_ENV = X11BASE="${X11BASE}" \
  23. CC="${CC}" \
  24. CXX="${CXX}" \
  25. CFLAGS="${CFLAGS}" \
  26. CXXFLAGS="${CXXFLAGS}"
  27. NO_TEST = Yes
  28. WRKDIST = ${WRKDIR}/dangerdeep-0.4.0_pre3327
  29. MODSCONS_FLAGS = debug=1 \
  30. devel=1 \
  31. datadir=${TRUEPREFIX}/share/dangerdeep \
  32. installbindir=${PREFIX}/bin
  33. pre-configure:
  34. ${SUBST_CMD} ${WRKSRC}/SConstruct
  35. do-install:
  36. ${SETENV} ${MAKE_ENV} ${MODSCONS_BIN} -C ${WRKSRC} \
  37. ${MODSCONS_ENV} ${MODSCONS_FLAGS} ${INSTALL_TARGET}
  38. ${INSTALL_DATA_DIR} ${PREFIX}/share/dangerdeep
  39. cp -R ${WRKDIR}/data/* ${PREFIX}/share/dangerdeep
  40. .include <bsd.port.mk>