Makefile 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. # $OpenBSD: Makefile,v 1.2 2016/11/04 11:35:18 sthen Exp $
  2. COMMENT = GNU Backgammon
  3. V = 1.05.002
  4. DISTNAME = gnubg-release-$V-sources
  5. PKGNAME = gnubg-$V
  6. CATEGORIES = games x11
  7. HOMEPAGE = http://gnubg.org/
  8. REVISION = 0
  9. MAINTAINER = Dmitrij D. Czarkoff <czarkoff@openbsd.org>
  10. # GPLv3+
  11. PERMIT_PACKAGE_CDROM = Yes
  12. WANTLIB += ${MODPY_WANTLIB}
  13. WANTLIB += GL GLU ICE SM X11 X11-xcb Xcomposite Xcursor Xdamage Xext
  14. WANTLIB += Xfixes Xi Xinerama Xmu Xrandr Xrender Xt Xxf86vm atk-1.0 c
  15. WANTLIB += cairo canberra canberra-gtk crypto curl drm expat ffi
  16. WANTLIB += fontconfig freetype gdk-x11-2.0 gdk_pixbuf-2.0
  17. WANTLIB += gdkglext-x11-1.0 gio-2.0 glapi glib-2.0 gmodule-2.0 gmp
  18. WANTLIB += gobject-2.0 graphite2 gthread-2.0 gtk-x11-2.0
  19. WANTLIB += gtkglext-x11-1.0 harfbuzz iconv intl ltdl m ncurses nghttp2
  20. WANTLIB += ogg pango-1.0 pangocairo-1.0 pangoft2-1.0 pangox-1.0 pcre
  21. WANTLIB += pixman-1 png pthread pthread-stubs readline sqlite3 ssl util
  22. WANTLIB += vorbis vorbisfile xcb xcb-dri2 xcb-glx xcb-render xcb-shm z
  23. MASTER_SITES = http://gnubg.org/media/sources/
  24. MODULES = lang/python
  25. BUILD_DEPENDS = devel/gettext-tools
  26. LIB_DEPENDS = audio/libcanberra,-gtk \
  27. databases/sqlite3 \
  28. devel/gettext \
  29. devel/glib2 \
  30. devel/gmp \
  31. devel/pango \
  32. graphics/png \
  33. net/curl \
  34. x11/gtkglext
  35. RUN_DEPENDS = x11/gtk+3,-guic \
  36. devel/desktop-file-utils
  37. SEPARATE_BUILD = Yes
  38. USE_GMAKE = Yes
  39. CONFIGURE_STYLE = gnu
  40. CONFIGURE_ARGS = --disable-cputest
  41. CONFIGURE_ENV = CPPFLAGS="-I${LOCALBASE}/include" \
  42. LDFLAGS="-L${LOCALBASE}/lib"
  43. .if ${MACHINE_ARCH} == amd64
  44. CONFIGURE_ARGS += --enable-simd=sse2
  45. .else
  46. CONFIGURE_ARGS += --enable-simd=no
  47. .endif
  48. FONT_SANS = ${X11BASE}/lib/X11/fonts/TTF/DejaVuSans.ttf
  49. FONT_SERIF = ${X11BASE}/lib/X11/fonts/TTF/DejaVuSerif-Bold.ttf
  50. CFLAGS += -DFONT_VERA=\\\"${FONT_SANS}\\\" \
  51. -DFONT_VERA_SERIF_BOLD=\\\"${FONT_SERIF}\\\"
  52. WRKDIST = ${WRKDIR}/gnubg-$V
  53. post-install:
  54. ${MODPY_BIN} ${MODPY_LIBDIR}/compileall.py \
  55. ${PREFIX}/share/gnubg/scripts/*.py
  56. rm -R ${PREFIX}/share/gnubg/fonts
  57. ${INSTALL_DATA_DIR} ${PREFIX}/share/applications/
  58. ${INSTALL_DATA} ${FILESDIR}/gnubg.desktop ${PREFIX}/share/applications/
  59. .include <bsd.port.mk>