pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/audio/flac flac: Fix building on i386 with MKPIE. pkg/...
details: https://anonhg.NetBSD.org/pkgsrc/rev/808a70956643
branches: trunk
changeset: 456491:808a70956643
user: nia <nia%pkgsrc.org@localhost>
date: Sun Aug 01 05:07:54 2021 +0000
description:
flac: Fix building on i386 with MKPIE. pkg/56339
diffstat:
audio/flac/Makefile | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 56b801c18eac -r 808a70956643 audio/flac/Makefile
--- a/audio/flac/Makefile Sun Aug 01 02:57:20 2021 +0000
+++ b/audio/flac/Makefile Sun Aug 01 05:07:54 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.55 2019/12/17 13:59:50 nros Exp $
+# $NetBSD: Makefile,v 1.56 2021/08/01 05:07:54 nia Exp $
DISTNAME= flac-1.3.3
CATEGORIES= audio archivers
@@ -19,10 +19,16 @@
PKGCONFIG_OVERRIDE+= src/libFLAC++/flac++.pc.in
PKGCONFIG_OVERRIDE+= src/libFLAC/flac.pc.in
+BUILD_DEFS+= PKGSRC_MKPIE
+
.include "../../mk/bsd.prefs.mk"
-.if !empty(MACHINE_PLATFORM:MNetBSD-*-i386)
-BUILD_DEPENDS+= nasm>=0.98:../../devel/nasm
+.if ${MACHINE_ARCH} == "i386"
+. if ${PKGSRC_MKPIE:tl} == "yes"
+CONFIGURE_ARGS+= --disable-asm-optimizations
+. else
+TOOL_DEPENDS+= nasm>=0.98:../../devel/nasm
+. endif
.endif
.if !empty(MACHINE_PLATFORM:M*-*-powerpc)
Home |
Main Index |
Thread Index |
Old Index