Makefile 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. # $OpenBSD: Makefile,v 1.131 2017/06/12 08:56:43 ajacoutot Exp $
  2. COMMENT= multimedia decoding library
  3. DISTNAME= xine-lib-1.2.8
  4. REVISION= 1
  5. CATEGORIES= multimedia
  6. MASTER_SITES= https://xine-lib.alioth.debian.org/releases/
  7. EXTRACT_SUFX= .tar.xz
  8. SHARED_LIBS= xine 33.0
  9. HOMEPAGE= http://www.xine-project.org/
  10. MAINTAINER= Brad Smith <brad@comstyle.com>
  11. # GPLv2
  12. PERMIT_PACKAGE_CDROM= patents
  13. PERMIT_PACKAGE_FTP= Yes
  14. WANTLIB += FLAC GL GLU ICE SDL SM X11 X11-xcb Xdamage Xext Xfixes
  15. WANTLIB += Xinerama Xv XvMCW Xxf86vm avcodec avformat avutil
  16. WANTLIB += bluray c cdio drm dvdnav dvdread execinfo expat fontconfig
  17. WANTLIB += freetype glapi iconv intl iso9660 jpeg lzma m mng modplug
  18. WANTLIB += mpcdec ogg postproc pthread pthread-stubs sndio speex theora
  19. WANTLIB += usbhid v4l2 v4lconvert vcdinfo vorbis xcb xcb-dri2
  20. WANTLIB += xcb-glx xcb-shape xcb-shm xcb-xv xdg-basedir xml2 z
  21. XINEAPI_REV= 2.6
  22. SUBST_VARS+= XINEAPI_REV
  23. COMPILER= clang
  24. COMPILER_LANGS= c
  25. MODCLANG_ARCHS= amd64 i386
  26. BUILD_DEPENDS= textproc/xmlto
  27. LIB_DEPENDS= audio/flac \
  28. audio/libcdio \
  29. audio/libmodplug \
  30. audio/libogg \
  31. audio/libvorbis \
  32. audio/musepack \
  33. audio/speex \
  34. converters/libiconv \
  35. devel/gettext \
  36. devel/sdl \
  37. graphics/ffmpeg \
  38. graphics/jpeg \
  39. graphics/libmng \
  40. graphics/vcdimager \
  41. multimedia/libbluray>=0.8.0 \
  42. multimedia/libdvdnav \
  43. multimedia/libtheora \
  44. multimedia/libv4l \
  45. x11/libxdg-basedir
  46. # Add back fast math flag since we override CFLAGS
  47. CFLAGS+= -ffast-math
  48. MAKE_ENV= V=1
  49. USE_GMAKE= Yes
  50. # Uses GNU libtool -weak feature
  51. USE_LIBTOOL= gnu
  52. CONFIGURE_STYLE= autoconf
  53. AUTOCONF_VERSION= 2.69
  54. CONFIGURE_ARGS+=--disable-a52dec \
  55. --disable-aalib \
  56. --disable-dts \
  57. --disable-faad \
  58. --disable-gdkpixbuf \
  59. --disable-gnomevfs \
  60. --disable-mad \
  61. --disable-optimizations \
  62. --disable-real-codecs \
  63. --disable-samba \
  64. --disable-vpx \
  65. --disable-w32dll \
  66. --with-external-dvdnav \
  67. --with-fontconfig \
  68. --with-freetype \
  69. --without-caca \
  70. --without-esound \
  71. --without-imagemagick
  72. CONFIGURE_ENV= CPPFLAGS="-I${X11BASE}/include -I${LOCALBASE}/include" \
  73. LDFLAGS="-L${X11BASE}/lib -L${LOCALBASE}/lib" \
  74. ac_cv_header_execinfo_h=no
  75. NO_TEST= Yes
  76. pre-configure:
  77. sed -i 's/__u32/u_int32_t/' ${WRKSRC}/src/input/input_pvr.c
  78. post-install:
  79. @find ${PREFIX}/lib/xine/plugins -name '*.a' -print | xargs rm
  80. .include <bsd.port.mk>