Makefile 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. # $OpenBSD: Makefile,v 1.28 2017/04/10 11:46:19 sthen Exp $
  2. COMMENT-main = physics-based drawing puzzle game
  3. COMMENT-npcomplete = extra levels for physics-based drawing puzzle game
  4. DISTNAME = numptyphysics-0.3.r20100916
  5. PKGNAME-main = ${DISTNAME}
  6. PKGNAME-npcomplete = npcomplete-0.0.r20100124
  7. REVISION-main = 1
  8. REVISION-npcomplete = 0
  9. MULTI_PACKAGES = -main -npcomplete
  10. EXTRACT_SUFX = .tar.bz2
  11. CATEGORIES = games
  12. MAINTAINER = David Coppa <dcoppa@openbsd.org>
  13. HOMEPAGE = http://numptyphysics.garage.maemo.org/
  14. MASTER_SITES = https://spacehopper.org/mirrors/
  15. DISTFILES = ${DISTNAME}${EXTRACT_SUFX} \
  16. npcomplete-0.0.r20100124.tar.bz2
  17. # GPLv3+
  18. PERMIT_PACKAGE_CDROM = Yes
  19. WANTLIB-main = SDL SDL_image SDL_ttf X11 c m \
  20. pthread ${LIBCXX} z
  21. RUN_DEPENDS-main = devel/desktop-file-utils \
  22. x11/gtk+3,-guic
  23. LIB_DEPENDS-main = devel/sdl \
  24. devel/sdl-image \
  25. devel/sdl-ttf
  26. RUN_DEPENDS-npcomplete =${FULLPKGPATH-main}
  27. CONFIGURE_STYLE = autoconf automake no-autoheader
  28. AUTOCONF_VERSION = 2.61
  29. AUTOMAKE_VERSION = 1.9
  30. CPPFLAGS = -I${LOCALBASE}/include \
  31. -I${X11BASE}/include
  32. LDFLAGS = -pthread \
  33. -L${LOCALBASE}/lib \
  34. -L${X11BASE}/lib
  35. CONFIGURE_ENV = CPPFLAGS="${CPPFLAGS}" \
  36. LDFLAGS="${LDFLAGS}"
  37. CONFIGURE_ARGS =--disable-hildon
  38. WRKDIST = ${WRKDIR}/numptyphysics
  39. post-patch:
  40. @cd ${WRKSRC}; AUTOCONF_VERSION=${AUTOCONF_VERSION} \
  41. AUTOMAKE_VERSION=${AUTOMAKE_VERSION} aclocal
  42. pre-configure:
  43. @cd ${WRKSRC}; AUTOCONF_VERSION=${AUTOCONF_VERSION} \
  44. AUTOMAKE_VERSION=${AUTOMAKE_VERSION} /bin/sh ./autogen.sh
  45. @${SUBST_CMD} ${WRKSRC}/Config.h
  46. post-install:
  47. ${INSTALL_DATA} ${WRKDIR}/npcomplete/*.nph \
  48. ${PREFIX}/share/numptyphysics/
  49. .include <bsd.port.mk>