naddy b0f86c9083 Update to 1.24.0:
* miscellaneous bug fixes
* use plain dlopen() for opening modules instead of libltdl
* the out123 tool now features tone generation
* enable aarch64 optimizations
2017-04-11 20:25:55 +00:00

50 lines
1.2 KiB
Makefile

# $OpenBSD: Makefile,v 1.87 2017/04/11 20:25:55 naddy Exp $
COMMENT= fast console MPEG audio player and decoder library
DISTNAME= mpg123-1.24.0
SHARED_LIBS= mpg123 6.1 # 43.0
SHARED_LIBS+= out123 1.0 # 2.1
CATEGORIES= audio
HOMEPAGE= https://www.mpg123.de/
MAINTAINER= Christian Weisgerber <naddy@openbsd.org>
# LGPL 2.1
PERMIT_PACKAGE_CDROM= Yes
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=mpg123/} \
https://www.mpg123.de/download/
EXTRACT_SUFX= .tar.bz2
WANTLIB= c m sndio
CONFIGURE_STYLE=gnu
CONFIGURE_ARGS= --enable-static \
--disable-lfs-alias \
--with-audio=sndio \
--with-optimization=0
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
MODGNU_CONFIG_GUESS_DIRS=${WRKSRC}/build
MAKE_ENV= RM='rm -f'
.if ${MACHINE_ARCH} == "amd64"
# no support for AVX instructions in as(1)
USE_GMAKE= Yes
BUILD_DEPENDS+= devel/yasm
.elif ${MACHINE_ARCH} == "arm"
CONFIGURE_ARGS+=--with-cpu=arm_nofpu
.endif
# Do not build static modules
pre-patch:
@cd ${WRKSRC}; mv Makefile.in Makefile.in.bak; sed '\
/^src_libout123_modules_.*_la_LINK =/ { \
N; s/\$$(LIBTOOLFLAGS)/& --tag=disable-static/; \
}' Makefile.in.bak >Makefile.in
.include <bsd.port.mk>