miod 9ef7c1c89d Unbreak on hppa by compiling with -O2 -finline-functions, after noticing
compiling with -Os would not trigger the ICE. Temporary bandaid (which is
likely to last for a long time...) until Someone(TM) investigates further.

ok landry@
2014-05-13 19:39:54 +00:00

42 lines
987 B
Makefile

# $OpenBSD: Makefile,v 1.3 2014/05/13 19:39:54 miod Exp $
# Warning: CELT is experimental software. Neither the API/ABI, nor
# the bit-stream are stable. Compatibility between different releases
# (even minor ones) is not preserved.
COMMENT = experimental ultra-low delay audio codec (0.7 API)
V = 0.7.1
DISTNAME = celt-$V
PKGNAME = celt07-$V
CATEGORIES = audio
HOMEPAGE = http://www.celt-codec.org/
SHARED_LIBS += celt07 0.0 # 0.0
# BSD
PERMIT_PACKAGE_CDROM = Yes
MASTER_SITES = http://downloads.xiph.org/releases/celt/
WANTLIB = c m ogg sndio
LIB_DEPENDS = audio/libogg
CONFIGURE_STYLE = gnu
CONFIGURE_ARGS = ${CONFIGURE_SHARED} \
--program-suffix=07 \
--with-ogg=${LOCALBASE}
CONFIGURE_ENV = CPPFLAGS="-DUSE_SNDIO"
.if "${MACHINE}" == "hppa"
# Building with -Os or -finline-functions to avoid
# celt.c:1540: internal compiler error: in delete_output_reload, at reload1.c:7926
CONFIGURE_ENV += CFLAGS="-O2 -finline-functions"
.endif
.include <bsd.port.mk>