pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/comms/asterisk16



Module Name:    pkgsrc
Committed By:   nia
Date:           Thu Dec 31 11:07:01 UTC 2020

Modified Files:
        pkgsrc/comms/asterisk16: Makefile options.mk

Log Message:
asterisk16: Avoid using -march=native, it breaks binary packages.

Also avoid passing crazy optimization and debug flags in general, just
honor the user's CFLAGS.


To generate a diff of this commit:
cvs rdiff -u -r1.72 -r1.73 pkgsrc/comms/asterisk16/Makefile
cvs rdiff -u -r1.17 -r1.18 pkgsrc/comms/asterisk16/options.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/comms/asterisk16/Makefile
diff -u pkgsrc/comms/asterisk16/Makefile:1.72 pkgsrc/comms/asterisk16/Makefile:1.73
--- pkgsrc/comms/asterisk16/Makefile:1.72       Thu Dec 10 13:52:30 2020
+++ pkgsrc/comms/asterisk16/Makefile    Thu Dec 31 11:07:01 2020
@@ -1,10 +1,11 @@
-# $NetBSD: Makefile,v 1.72 2020/12/10 13:52:30 gdt Exp $
+# $NetBSD: Makefile,v 1.73 2020/12/31 11:07:01 nia Exp $
 #
 # NOTE: when updating this package, there are two places that sound
 #       tarballs need to be checked; look in ${WRKSRC}/sounds/Makefile
 #       to find out the current sound file versions
 
 DISTNAME=      asterisk-16.15.0
+PKGREVISION=   1
 CATEGORIES=    comms net audio
 MASTER_SITES=  http://downloads.asterisk.org/pub/telephony/asterisk/
 MASTER_SITES+= http://downloads.asterisk.org/pub/telephony/asterisk/old-releases/
@@ -111,7 +112,8 @@ MAKE_FLAGS+=                WRKSRC=${WRKSRC}
 MAKE_FLAGS+=           LDOPTS=${LDFLAGS:M*:Q}
 MAKE_FLAGS+=           HTTP_DOCSDIR=${PREFIX}/share/httpd/htdocs
 MAKE_FLAGS+=           HTTP_CGIDIR=${PREFIX}/libexec/cgi-bin
-MAKE_FLAGS+=           OPTIMIZE=-O3
+MAKE_FLAGS+=           OPTIMIZE=
+MAKE_FLAGS+=           DEBUG=
 
 .if !empty(MACHINE_PLATFORM:MSunOS-*-i386)
 BUILDLINK_TRANSFORM+=  rm:-march=i386

Index: pkgsrc/comms/asterisk16/options.mk
diff -u pkgsrc/comms/asterisk16/options.mk:1.17 pkgsrc/comms/asterisk16/options.mk:1.18
--- pkgsrc/comms/asterisk16/options.mk:1.17     Sun May 31 14:39:32 2020
+++ pkgsrc/comms/asterisk16/options.mk  Thu Dec 31 11:07:01 2020
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.17 2020/05/31 14:39:32 rillig Exp $
+# $NetBSD: options.mk,v 1.18 2020/12/31 11:07:01 nia Exp $
 
 PKG_OPTIONS_VAR=               PKG_OPTIONS.asterisk
 PKG_SUPPORTED_OPTIONS=         x11 unixodbc webvmail ldap spandsp
@@ -70,6 +70,7 @@ post-configure:
        ${ECHO} "MENUSELECT_CHANNELS=-chan_mgcp" >> ${WRKSRC}/pkgsrc.makeopts
 .endif
        ${ECHO} "MENUSELECT_AGIS=agi-test.agi eagi-test eagi-sphinx-test jukebox.agi" >> ${WRKSRC}/pkgsrc.makeopts
+       ${ECHO} "MENUSELECT_CFLAGS=-BUILD_NATIVE" >> ${WRKSRC}/pkgsrc.makeopts
        # this is a hack to work around a bug in menuselect
        cd ${WRKSRC} && make ${MAKE_FLAGS} menuselect.makeopts
 



Home | Main Index | Thread Index | Old Index