Makefile 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # $OpenBSD: Makefile,v 1.88 2017/06/12 20:37:30 naddy Exp $
  2. COMMENT= fast console MPEG audio player and decoder library
  3. DISTNAME= mpg123-1.25.0
  4. SHARED_LIBS= mpg123 6.2 # 44.0
  5. SHARED_LIBS+= out123 1.0 # 2.1
  6. CATEGORIES= audio
  7. HOMEPAGE= https://www.mpg123.de/
  8. MAINTAINER= Christian Weisgerber <naddy@openbsd.org>
  9. # LGPL 2.1
  10. PERMIT_PACKAGE_CDROM= Yes
  11. MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=mpg123/} \
  12. https://www.mpg123.de/download/
  13. EXTRACT_SUFX= .tar.bz2
  14. WANTLIB= c m sndio
  15. CONFIGURE_STYLE=gnu
  16. CONFIGURE_ARGS= --enable-static \
  17. --disable-lfs-alias \
  18. --with-audio=sndio \
  19. --with-optimization=0
  20. CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
  21. LDFLAGS="-L${LOCALBASE}/lib"
  22. MODGNU_CONFIG_GUESS_DIRS=${WRKSRC}/build
  23. .if ${MACHINE_ARCH} == "amd64"
  24. # no support for AVX instructions in as(1)
  25. USE_GMAKE= Yes
  26. BUILD_DEPENDS+= devel/yasm
  27. .elif ${MACHINE_ARCH} == "arm"
  28. CONFIGURE_ARGS+=--with-cpu=arm_nofpu
  29. .endif
  30. # Do not build static modules
  31. pre-patch:
  32. @cd ${WRKSRC}; mv Makefile.in Makefile.in.beforesubst; sed '\
  33. /^src_libout123_modules_.*_la_LINK =/ { \
  34. N; s/\$$(LIBTOOLFLAGS)/& --tag=disable-static/; \
  35. }' Makefile.in.beforesubst >Makefile.in
  36. .include <bsd.port.mk>