diff options
author | nia <nia@pkgsrc.org> | 2020-12-31 11:07:01 +0000 |
---|---|---|
committer | nia <nia@pkgsrc.org> | 2020-12-31 11:07:01 +0000 |
commit | 75c162e9b6c987abb9ca76043548f63f7af85be3 (patch) | |
tree | 7dc6dd49af2ff8d39ba0ea3d1a75f3ff2457f288 /comms/asterisk16 | |
parent | 6eef7d07fe324c9ec63da0e8732e2a7554b9054d (diff) | |
download | pkgsrc-75c162e9b6c987abb9ca76043548f63f7af85be3.tar.gz |
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.
Diffstat (limited to 'comms/asterisk16')
-rw-r--r-- | comms/asterisk16/Makefile | 6 | ||||
-rw-r--r-- | comms/asterisk16/options.mk | 3 |
2 files changed, 6 insertions, 3 deletions
diff --git a/comms/asterisk16/Makefile b/comms/asterisk16/Makefile index 300c2a7e71c..8a114527149 100644 --- a/comms/asterisk16/Makefile +++ b/comms/asterisk16/Makefile @@ -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 diff --git a/comms/asterisk16/options.mk b/comms/asterisk16/options.mk index 079e873246a..b69bc1839db 100644 --- a/comms/asterisk16/options.mk +++ b/comms/asterisk16/options.mk @@ -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 |