1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-22 00:35:15 +00:00

- Don't force gcc, make this work with clang, too [1]

- Don't call gmake directly [1]
- Make the -p (Run as pseudo-realtime thread) work on FreeBSD [1]
- Use @dirrmtry for directories that can contain files after deinstall

Submitted by:	tijl [1]
This commit is contained in:
Florian Smeets 2013-07-04 22:46:33 +00:00
parent 42da4e24d4
commit b003ca6d34
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=322295
6 changed files with 16 additions and 16 deletions

View File

@ -3,7 +3,7 @@
PORTNAME= asterisk
PORTVERSION= 1.8.22.0
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= net
MASTER_SITES= http://downloads.asterisk.org/pub/telephony/asterisk/ \
http://downloads.asterisk.org/pub/telephony/asterisk/old-releases/
@ -26,7 +26,7 @@ GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-gsm=${LOCALBASE}
LDFLAGS+= -L${LOCALBASE}/lib
CPPFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/openh323
USE_GCC= any
USE_CSTD= gnu89
USE_GMAKE= yes
USE_GNOME= libxml2
USES= bison
@ -286,7 +286,7 @@ post-patch:
${REINPLACE_CMD} -e 's|/var/lib|${PREFIX}/share|g' ${WRKSRC}/configs/musiconhold.conf.sample
post-configure:
@cd ${WRKSRC} && gmake menuselect.makeopts
@cd ${WRKSRC} && ${GMAKE} menuselect.makeopts
@cd ${WRKSRC} && ./menuselect/menuselect --disable res_timing_kqueue menuselect.makeopts
.if ${PORT_OPTIONS:MMYSQL}
@cd ${WRKSRC} && ./menuselect/menuselect --enable res_config_mysql menuselect.makeopts

View File

@ -6,7 +6,7 @@
-#ifdef __linux__
- /* On Linux, pthread_attr_init() defaults to PTHREAD_EXPLICIT_SCHED,
+#ifdef __linux__ || defined(__FreeBSD__)
+#if defined(__linux__) || defined(__FreeBSD__)
+ /* On Linux and FreeBSD, pthread_attr_init() defaults to PTHREAD_EXPLICIT_SCHED,
which is kind of useless. Change this here to
PTHREAD_INHERIT_SCHED; that way the -p option to set realtime

View File

@ -1240,8 +1240,8 @@ spool/asterisk/voicemail/default/1234/en/unavail.gsm
@dirrm spool/asterisk/voicemail
@dirrm spool/asterisk/tmp
@dirrm spool/asterisk
@dirrm log/asterisk/cdr-csv
@dirrm log/asterisk/cdr-custom
@dirrm log/asterisk/cel-custom
@dirrm log/asterisk
@dirrmtry log/asterisk/cdr-csv
@dirrmtry log/asterisk/cdr-custom
@dirrmtry log/asterisk/cel-custom
@dirrmtry log/asterisk
@dirrmtry db/asterisk

View File

@ -3,7 +3,7 @@
PORTNAME= asterisk
PORTVERSION= 10.12.2
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= net
MASTER_SITES= http://downloads.asterisk.org/pub/telephony/asterisk/ \
http://downloads.asterisk.org/pub/telephony/asterisk/old-releases/
@ -24,7 +24,7 @@ GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-gsm=${LOCALBASE}
LDFLAGS+= -L${LOCALBASE}/lib
CPPFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/openh323
USE_GCC= any
USE_CSTD= gnu89
USE_GMAKE= yes
USE_GNOME= libxml2
USES= bison
@ -279,7 +279,7 @@ post-patch:
post-configure:
.if !empty(PORT_OPTIONS:MMYSQL) || !empty(PORT_OPTIONS:MNEWG711) || !empty(PORT_OPTIONS:MOOH323) || !empty(PORT_OPTIONS:MH323)
@cd ${WRKSRC} && gmake menuselect.makeopts
@cd ${WRKSRC} && ${GMAKE} menuselect.makeopts
.if ${PORT_OPTIONS:MMYSQL}
@cd ${WRKSRC} && ./menuselect/menuselect --enable res_config_mysql menuselect.makeopts
@cd ${WRKSRC} && ./menuselect/menuselect --enable app_mysql menuselect.makeopts

View File

@ -6,7 +6,7 @@
-#ifdef __linux__
- /* On Linux, pthread_attr_init() defaults to PTHREAD_EXPLICIT_SCHED,
+#ifdef __linux__ || defined(__FreeBSD__)
+#if defined(__linux__) || defined(__FreeBSD__)
+ /* On Linux and FreeBSD, pthread_attr_init() defaults to PTHREAD_EXPLICIT_SCHED,
which is kind of useless. Change this here to
PTHREAD_INHERIT_SCHED; that way the -p option to set realtime

View File

@ -1245,8 +1245,8 @@ spool/asterisk/voicemail/default/1234/en/unavail.gsm
@dirrm spool/asterisk/voicemail
@dirrm spool/asterisk/tmp
@dirrm spool/asterisk
@dirrm log/asterisk/cdr-csv
@dirrm log/asterisk/cdr-custom
@dirrm log/asterisk/cel-custom
@dirrm log/asterisk
@dirrmtry log/asterisk/cdr-csv
@dirrmtry log/asterisk/cdr-custom
@dirrmtry log/asterisk/cel-custom
@dirrmtry log/asterisk
@dirrmtry db/asterisk