diff options
author | joerg <joerg@pkgsrc.org> | 2012-05-04 16:06:13 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2012-05-04 16:06:13 +0000 |
commit | 61017adf00046d31cf03af3cc74431233b4b0c27 (patch) | |
tree | db98231745e4e23282392682b70bad1392a321ad /comms/asterisk10 | |
parent | ecd504706896b450f21ec8e5241b405f85e32846 (diff) | |
download | pkgsrc-61017adf00046d31cf03af3cc74431233b4b0c27.tar.gz |
Don't override optimizer settings with absurd levels.
Fix inline definitions to work with C99 compiler.
Diffstat (limited to 'comms/asterisk10')
-rw-r--r-- | comms/asterisk10/Makefile | 3 | ||||
-rw-r--r-- | comms/asterisk10/distinfo | 3 | ||||
-rw-r--r-- | comms/asterisk10/patches/patch-include_asterisk_inline__api.h | 17 |
3 files changed, 21 insertions, 2 deletions
diff --git a/comms/asterisk10/Makefile b/comms/asterisk10/Makefile index 5cfa61146f2..e387ffff1d1 100644 --- a/comms/asterisk10/Makefile +++ b/comms/asterisk10/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.14 2012/05/03 06:23:37 jnemeth Exp $ +# $NetBSD: Makefile,v 1.15 2012/05/04 16:06:13 joerg Exp $ # # NOTE: when updating this package, there are two places that sound # tarballs need to be checked @@ -89,6 +89,7 @@ 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= .if !empty(MACHINE_PLATFORM:MSunOS-*-i386) BUILDLINK_TRANSFORM+= rm:-march=i386 diff --git a/comms/asterisk10/distinfo b/comms/asterisk10/distinfo index 1cdaaed1fa0..b715755ba59 100644 --- a/comms/asterisk10/distinfo +++ b/comms/asterisk10/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.10 2012/05/03 06:23:37 jnemeth Exp $ +$NetBSD: distinfo,v 1.11 2012/05/04 16:06:13 joerg Exp $ SHA1 (asterisk-10.4.0/asterisk-10.4.0.tar.gz) = c39ef62f03368663fd00c81138c9f4efc1c496fa RMD160 (asterisk-10.4.0/asterisk-10.4.0.tar.gz) = dd767c256773cc2a6c33a3c270d6213f64b04358 @@ -20,6 +20,7 @@ SHA1 (patch-contrib_scripts_autosupport) = c6c1d917dd0544c4f54ae760f68cbcd1f3503 SHA1 (patch-contrib_scripts_vmail.cgi) = 650b9bbf3e322d1ad351932cfe6f747baa8f35e4 SHA1 (patch-include_asterisk_autoconfig.h.in) = 7d6e3443ce3f0741c72a5f2178895598e79e83c9 SHA1 (patch-include_asterisk_endian.h) = 41c1a9a9e02fe394bc9261f5559e931b1378ea28 +SHA1 (patch-include_asterisk_inline__api.h) = ff43d14e2608dd08d7d03799dfe9847f9f7f5666 SHA1 (patch-include_asterisk_lock.h) = fc7b4934e5f53a09066802daa054300895cf7bcf SHA1 (patch-main_Makefile) = 4b80898802c75937510acf5252c5e82d379f578e SHA1 (patch-main_acl.c) = 85cea968f3c3a2651a687661bba2d8131c342d5a diff --git a/comms/asterisk10/patches/patch-include_asterisk_inline__api.h b/comms/asterisk10/patches/patch-include_asterisk_inline__api.h new file mode 100644 index 00000000000..fbb941453ba --- /dev/null +++ b/comms/asterisk10/patches/patch-include_asterisk_inline__api.h @@ -0,0 +1,17 @@ +$NetBSD: patch-include_asterisk_inline__api.h,v 1.1 2012/05/04 16:06:13 joerg Exp $ + +--- include/asterisk/inline_api.h.orig 2006-02-14 19:14:15.000000000 +0000 ++++ include/asterisk/inline_api.h +@@ -46,7 +46,11 @@ + #if !defined(LOW_MEMORY) + + #if !defined(AST_API_MODULE) +-#define AST_INLINE_API(hdr, body) hdr; extern inline hdr body ++# ifndef __GNUC_STDC_INLINE__ ++# define AST_INLINE_API(hdr, body) hdr; extern inline hdr body ++# else ++# define AST_INLINE_API(hdr, body) inline hdr body ++# endif + #else + #define AST_INLINE_API(hdr, body) hdr; hdr body + #endif |