Makefile.inc 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. # $OpenBSD: Makefile.inc,v 1.42 2017/05/31 08:08:16 espie Exp $
  2. # Most frequent usage of the GStreamer packages:
  3. # core base library
  4. # plugins-base minimal set: audio (sndio), gio, playback, Ogg Vorbis
  5. # plugins-good audio mixer (oss)
  6. # plugins-ugly mp3 decoding, dvd
  7. # plugins-bad vaapi
  8. # plugins-libav divx, mpeg4, h264, vp8 (same decoding capabilities as FFmpeg)
  9. #
  10. # i.e. applications that use GStreamer require:
  11. # gstreamer1-plugins-base and gstreamer1-plugins-good
  12. # audio/video support for MP3 decoding requires:
  13. # gstreamer1-plugins-ugly
  14. # support for most video codecs is provided by
  15. # gstreamer1-plugins-libav
  16. PORTROACH= limitw:1,even
  17. V ?= 1.12.0
  18. API= 1.0
  19. SUBST_VARS += API
  20. CATEGORIES ?= multimedia devel
  21. HOMEPAGE ?= http://gstreamer.freedesktop.org/
  22. MAINTAINER ?= Antoine Jacoutot <ajacoutot@openbsd.org>
  23. GST_PKGNAME_PREFIX= gstreamer1
  24. # GPLv2 - GPLv2+ - LGPLv2
  25. PERMIT_PACKAGE_CDROM ?= Yes
  26. PERMIT_PACKAGE_FTP ?= Yes
  27. PERMIT_DISTFILES_FTP ?= Yes
  28. DIST_SUBDIR= gstreamer
  29. MASTER_SITE_GST= http://gstreamer.freedesktop.org/src/
  30. EXTRACT_SUFX ?= .tar.xz
  31. P= multimedia/${GST_PKGNAME_PREFIX}
  32. .if defined(MULTI_PACKAGES)
  33. .for i in ${MULTI_PACKAGES}
  34. TEST_DEPENDS += ${BASE_PKGPATH},${i}
  35. .endfor
  36. .else
  37. TEST_DEPENDS += ${BASE_PKGPATH}
  38. .endif
  39. MODULES += lang/python
  40. COMPILER = gcc clang
  41. COMPILER_LANGS ?= c
  42. MODGCC4_ARCHS = powerpc
  43. # python is only used to generate documentation
  44. MODPY_RUNDEP= No
  45. USE_GMAKE ?= Yes
  46. AUTOCONF_VERSION ?= 2.69
  47. CONFIGURE_STYLE ?= autoconf
  48. CONFIGURE_ENV += CPPFLAGS="${CPPFLAGS}" \
  49. LDFLAGS="${LDFLAGS}"
  50. CONFIGURE_ARGS += --with-package-name="OpenBSD ${DISTNAME} package" \
  51. --with-package-origin="https://www.openbsd.org/" \
  52. --with-default-audiosink=sndiosink \
  53. --with-default-audiosrc=sndiosrc \
  54. --with-default-videosink=xvimagesink \
  55. --with-default-videosrc=v4l2src \
  56. --with-default-visualizer=goom \
  57. --enable-introspection \
  58. --disable-valgrind
  59. CPPFLAGS += -I${LOCALBASE}/include \
  60. -I${X11BASE}/include
  61. LDFLAGS += -L${LOCALBASE}/lib \
  62. -L${X11BASE}/lib
  63. .if !target(post-install)
  64. post-install:
  65. rm ${PREFIX}/lib/gstreamer-${API}/*.la
  66. .endif