sthen a1af0ec998 Don't build with -march=native on clang arches, ok ajacoutot@ (maintainer).
From my description,

> For gcc, lame has a big "experimental optimizer" section with
> -march=native and other flags that we don't want in bulk builds
> (but might be useful for self builds sometimes). It's controlled by
> --enable-expopt (the default is "none" to disable it),
>
> There is a similar section for clang which is just outside the "expopt"
> block. I think that's a mistake, but I don't want to poke around too much
> as they have other mistakes in their configure script nearby and I don't
> want to go down that rabbit hole ;)
>
> Here's a simple diff to neuter the check.
2018-10-04 14:48:38 +00:00

46 lines
932 B
Makefile

# $OpenBSD: Makefile,v 1.63 2018/10/04 14:48:38 sthen Exp $
COMMENT= lame ain't an MP3 encoder
#'
DISTNAME= lame-3.100
REVISION= 1
SHARED_LIBS += mp3lame 2.2 # 0.0
CATEGORIES= audio
HOMEPAGE= http://lame.sourceforge.net/
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
# LGPLv2 - patent restriction
PERMIT_PACKAGE_CDROM= MP3 patent, http://mp3licensing.com/royalty/
PERMIT_PACKAGE_FTP= Yes
WANTLIB += c curses iconv m
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=lame/}
LIB_DEPENDS= converters/libiconv
CONFIGURE_STYLE=gnu
CONFIGURE_ARGS= --disable-cpml \
--disable-mp3x \
--enable-mp3rtp \
--without-dmalloc \
--with-fileio=lame
.if ${MACHINE_ARCH} == "i386"
BUILD_DEPENDS+= devel/nasm
CONFIGURE_ARGS+= --enable-nasm
# gmake required for i386/ directory
USE_GMAKE= Yes
.else
CONFIGURE_ARGS+= --disable-nasm
.endif
MAKE_FLAGS= pkghtmldir=${TRUEPREFIX}/share/doc/lame
.include <bsd.port.mk>