Skip to content

Commit

Permalink
update build
Browse files Browse the repository at this point in the history
  • Loading branch information
lazedo committed Jan 11, 2018
1 parent 59c5918 commit da2ae54
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions APKBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ pkgusers="$FREESWITCH_USER"
pkggroups="$FREESWITCH_GROUP"
subpackages="$pkgname-dbg $pkgname-dev $pkgname-flite $pkgname-timezones::noarch
$pkgname-sample-config:conf:noarch $pkgname-freetdm $pkgname-sangoma
$pkgname-snmp $pkgname-pgsql $pkgname-perl $pkgname-perlesl $pkgname-phpesl"
$pkgname-snmp $pkgname-pgsql $pkgname-perl"

source="$pkgname-$pkgver.tar.xz
0001-FS-10774-switch_pgsql-Fix-build-for-PostgreSQL-libpq.patch
Expand All @@ -85,7 +85,7 @@ prepare() {
build() {
cd "$builddir"

sed 's/php5/php7/g' -i libs/esl/php/Makefile.am
# sed 's/php5/php7/g' -i libs/esl/php/Makefile.am

./bootstrap.sh

Expand All @@ -110,7 +110,7 @@ build() {

# sed 's/php5/php7/g' -i libs/esl/php/Makefile.in
# sed 's/php5/php7/g' -i libs/esl/php/Makefile.am
make -C libs/esl reswig
# make -C libs/esl reswig

# build freetdm with -lexecinfo
make -C libs/freetdm LIBS="-lexecinfo"
Expand All @@ -121,9 +121,9 @@ build() {
make -j1 all

# build perlesl module
cd "$builddir"/libs/esl
make -j1 perlmod
make -j1 phpmod
# cd "$builddir"/libs/esl
# make -j1 perlmod
# make -j1 phpmod

}
package(){
Expand All @@ -137,9 +137,9 @@ package(){
chown -R $FREESWITCH_USER:$FREESWITCH_GROUP "$pkgdir"/var/*/freeswitch

# install perlesl module
cd "$builddir"/libs/esl
make -j1 DESTDIR="$pkgdir" perlmod-install
make -j1 DESTDIR="$pkgdir" phpmod-install
# cd "$builddir"/libs/esl
# make -j1 DESTDIR="$pkgdir" perlmod-install
# make -j1 DESTDIR="$pkgdir" phpmod-install

cp /usr/bin/epmd "$pkgdir"/usr/bin
}
Expand Down
2 changes: 1 addition & 1 deletion modules.conf
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ event_handlers/mod_json_cdr
#event_handlers/mod_cdr_mongodb
event_handlers/mod_cdr_pg_csv
event_handlers/mod_cdr_sqlite
event_handlers/mod_erlang_event
#event_handlers/mod_erlang_event
event_handlers/mod_kazoo
#event_handlers/mod_event_multicast
event_handlers/mod_event_socket
Expand Down

0 comments on commit da2ae54

Please sign in to comment.