NetBSD-Users archive

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

Re: Help with asterisk module needed



Dima Veselov <kab00m%lich.phys.spbu.ru@localhost> writes:

> I am interested in sending SMS from Asterisk. Most native approach to
> achieve that is to use app_mt, shipped separately (from Sourceforge)
> along with special SMS bearer software www/kannel.
>
> I recently reviewed, updated and fixed kannel package, but I have
> problems with bl3ing it.
>
> What should be done:
> 1. comms/asterisk16 option "kannel" to add incdirs and libdirs to toolchain.

which is "use kannel bl3 file"

> 2. Optionally this option should download and add app_mt.c to
> workdir/apps directory (for now i put it there by myself).

The other approach is if you can build it separately with header files
installed by the main package, and it can then be a separate asterisk_mt
package.

> I've added this to comms/asterisk16/options.mk:
> .if !empty(PKG_OPTIONS:Mkannel)
> #DEPENDS+=          kannel>=1.4.5:../../www/kannel.new
> .include "../../www/kannel.new/buildlink3.mk"
> PLIST.kannel=       yes
> .endif

With bl3, DEPENDS is implicit and not used.

> I've added this to buildlink3.mk in www/kannel.new:
> BUILDLINK_INCDIRS.kannel=               /usr/pkg/include/kannel
> BUILDLINK_LIBDIRS.kannel=               /usr/pkg/lib/kannel

That isn't right, because it says /usr/pkg, vs PREFIX.  I would look in
doc/pkgsrc.txt and for other examples.

> Any possible values of those do nothing:
> gwlib/gwlib.h is not found

> gwlib/gwlib.h is located in /usr/pkg/include/kannel on installed
> package and in pkgsrc workdir.

Look in work/.buildlink3 and see if you can find the symlinks and if
they seem right.

The other half is making sure asterisk's configure finds them.


Home | Main Index | Thread Index | Old Index