Opened 13 years ago

Closed 12 years ago

Last modified 11 years ago

#13749 closed submission (fixed)

asterisk - new port submission

Reported by: marc.blanchet@… Owned by: mr_bond@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: marc.blanchet@…, ecronin (Eric Cronin), markd@…


new port submission asterisk: An Open Source PBX and telephony toolkit port tested on tiger and leopard.

Attachments (1)

Portfile (1.1 KB) - added by marc.blanchet@… 13 years ago.
ports/net/asterisk Portfile

Download all attachments as: .zip

Change History (13)

comment:1 Changed 13 years ago by ecronin (Eric Cronin)

Cc: ecronin@… added
Version: 1.6.0

Two comments-

First, any reason why the build.env changes should use the already existing MacPorts $CFLAGS and $LDFLAGS (which may include additional default flags)

And second, while the "let ./configure figure it out" approach is easier it means you'll almost certainly end up with incorrect dependencies which is bad. Take a look at the equally painful multimedia/MPlayer port, which explicitly disables auto-detection of anything not a default dependency and includes the most common options by default.

comment:2 Changed 13 years ago by marc.blanchet@…

1) AST*FLAGS is a trick done by Asterisk builder to preserve flags during the multiple stages. It was put there because of some build issues on embedded systems. I've tried to cut it in many ways, but did not succeed without this portfile config.

2) humm. I see (Mplayer portfile). I understand the "full control" approach on the port side. However, it is much more work on creating and specially maintaining the portfile. The main disadavantage being lack of time or delay to make the changes to the portfile when a new release of asterisk is out.


  • start as it is.
  • if we find issues, then I'll look at the "full control" approach.

comment:3 Changed 13 years ago by ecronin (Eric Cronin)

Sorry, what I meant for the first point is that instead of hard-coding in a particular CFLAGS, why not use the defaults MacPorts already sets (configure.cflags, configure.cppflags, configure.ldflags). Similarly,

configure.cflags-append -I${prefix}/include
configure.ldflags-append -L${prefix}/lib

are probably not needed (or at least not ldflags for sure) since MacPorts starts out with

default configure.cppflags  {"-I${prefix}/include"}
default configure.ldflags   {"-L${prefix}/lib"}

comment:4 Changed 13 years ago by marc.blanchet@…

it seems to now work without, and I can't recall in which circumstances I needed it. so I'll update the portfile without the configure.*-append.

Changed 13 years ago by marc.blanchet@…

Attachment: Portfile added

ports/net/asterisk Portfile

comment:5 Changed 13 years ago by markd@…

Cc: markd@… added

Don't you need some codecs and other stuff for asterisk to work?

comment:6 Changed 13 years ago by ecronin (Eric Cronin)

Destroot is not succeeding for me- it installs directly under ${prefix} both with and without the -t flag to port to enable trace mode. port uninstall then leaves all the files around (sudo rm -rf /opt/local/var/lib/asterisk /opt/local/lib/asterisk/modules /opt/local/etc/asterisk /opt/local/var/spool/asterisk /opt/local/sbin/rasterisk /opt/local/sbin/asterisk /opt/local/sbin/astgenkey /opt/local/sbin/autosupport /opt/local/sbin/safe_asterisk /opt/local/include/asterisk /opt/local/include/asterisk.h /opt/local/lib/asterisk /opt/local/share/man/man8/asterisk.8 /opt/local/share/man/man8/safe_asterisk.8 cleans up after it I think)

I would still recommend addressing the dependency issues sooner rather than later... Binary packages/installs won't work, and it may break unexpectedly down the line for random users when an undetected library dependency gets updated. On my install it seemed to have picked up libtool, gawk, libogg, popt, speex, libusb, libvorbis, pkgconfig, libxml2, and libxslt. Some of those seem like things you'd want variants for, but some like libtool/popt/pkgconfig seem like actual dependencies for a vanilla build. Also, the one dependency in the Portfile, wget, doesn't seem to be used anywhere in the build.

comment:7 Changed 13 years ago by marc.blanchet@…

codecs: most codecs are included. some patent-protected ones (G729) require a binary license module which is not available on macosx. therefore, nothing special to do about codecs.

dependencies: wget is used when installing to get additional sound files from the net.

comment:8 Changed 13 years ago by mr_bond@…

Owner: changed from macports-tickets@… to mr_bond@…
Status: newassigned

comment:9 Changed 12 years ago by mr_bond@…

Added portfile for Testing it before commiting

comment:10 Changed 12 years ago by mr_bond@…

Resolution: fixed
Status: assignedclosed

Closed by r36342

comment:11 Changed 11 years ago by jmroot (Joshua Root)

Type: enhancementsubmission

comment:12 Changed 11 years ago by (none)

Milestone: Port Submissions

Milestone Port Submissions deleted

Note: See TracTickets for help on using tickets.