blob: cd51f73884b32e7b1228498ce9eba7b0f70e2d79 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# $NetBSD: Makefile,v 1.50 2014/11/29 20:42:12 adam Exp $
DISTNAME= flac-1.3.1
CATEGORIES= audio archivers
MASTER_SITES= http://downloads.xiph.org/releases/flac/
EXTRACT_SUFX= .tar.xz
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://xiph.org/flac/
COMMENT= Free lossless audio codec
LICENSE= modified-bsd AND gnu-gpl-v2 AND gnu-lgpl-v2.1
WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
USE_LIBTOOL= yes
USE_TOOLS+= gmake
USE_LANGUAGES= c c++
GNU_CONFIGURE= yes
CONFIGURE_ENV+= ac_cv_path_XMMS_CONFIG="no"
CONFIGURE_ENV+= ac_cv_prog_DOXYGEN=""
PKGCONFIG_OVERRIDE+= src/libFLAC++/flac++.pc.in src/libFLAC/flac.pc.in
.include "../../mk/bsd.prefs.mk"
.if !empty(MACHINE_PLATFORM:MNetBSD-*-i386)
BUILD_DEPENDS+= nasm>=0.98:../../devel/nasm
.endif
.if !empty(MACHINE_PLATFORM:M*-*-powerpc)
. if ${OPSYS} != "Darwin"
CONFIGURE_ARGS+= --disable-asm-optimizations
CONFIGURE_ARGS+= --disable-altivec
. endif
.endif
.if !empty(MACHINE_PLATFORM:MDarwin-*-i386)
CONFIGURE_ARGS+= --disable-asm-optimizations
.endif
.include "../../mk/compiler.mk"
# Version 1.1.2 of flac doesn't seem to build correctly with -O3 using
# the MIPSpro compiler.
# XXX: retry for 1.1.3
.if !empty(PKGSRC_COMPILER:Mmipspro)
BUILDLINK_TRANSFORM+= rm:-O3
.endif
# SunPro does not support __inline
.if !empty(PKGSRC_COMPILER:Msunpro)
CFLAGS+= -D__inline=inline
.endif
# With -fgnu89-inline option duplicate symbols arise.
.if !empty(PKGSRC_COMPILER:Mclang)
BUILDLINK_TRANSFORM+= rm:-fgnu89-inline
.endif
.include "../../multimedia/libogg/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|