Import of pkgsrc-2014Q1
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
# $NetBSD: Makefile,v 1.94 2013/06/16 22:10:13 jnemeth Exp $
|
||||
# $NetBSD: Makefile,v 1.104 2014/02/12 23:17:37 tron Exp $
|
||||
#
|
||||
# NOTE: when updating this package, there are two places that sound
|
||||
# tarballs need to be checked
|
||||
|
||||
DISTNAME= asterisk-11.4.0
|
||||
DISTNAME= asterisk-11.7.0
|
||||
DIST_SUBDIR= ${PKGNAME_NOREV}
|
||||
DISTFILES= ${DEFAULT_DISTFILES}
|
||||
EXTRACT_ONLY= ${DISTNAME}.tar.gz
|
||||
PKGREVISION= 5
|
||||
PKGREVISION= 1
|
||||
CATEGORIES= comms net audio
|
||||
MASTER_SITES= http://downloads.asterisk.org/pub/telephony/asterisk/ \
|
||||
http://downloads.asterisk.org/pub/telephony/asterisk/old-releases/ \
|
||||
@@ -37,6 +37,8 @@ CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
|
||||
CONFIGURE_ARGS+= --without-gtk2
|
||||
# XXX remove when lang/lua gets builtin.mk
|
||||
CONFIGURE_ARGS+= --without-lua
|
||||
#JMN doesn't build properly on NetBSD, remove when -current is fixed
|
||||
CONFIGURE_ARGS+= --without-srtp
|
||||
|
||||
INSTALL_TARGET= install samples
|
||||
INSTALLATION_DIRS+= lib/pkgconfig share/doc/${PKGBASE}
|
||||
@@ -134,12 +136,18 @@ SUBST_SED.configs+= -e "s|/usr/local/man|${ASTMANDIR}|"
|
||||
SUBST_SED.configs+= -e "s|/usr/local|${PREFIX}|"
|
||||
SUBST_SED.configs+= -e "s|/var|${VARBASE}|"
|
||||
|
||||
# XXX gross hack, remove when atomics properly implemented
|
||||
.if (${OPSYS} == "NetBSD")
|
||||
# XXX gross hack, remove when atomics properly implemented
|
||||
SUBST_CLASSES+= atomics
|
||||
SUBST_STAGE.atomics= post-configure
|
||||
SUBST_FILES.atomics= include/asterisk/autoconfig.h
|
||||
SUBST_SED.atomics= -e "s|^\#define HAVE_GCC_ATOMICS 1|\#undef HAVE_GCC_ATOMICS|"
|
||||
|
||||
# XXX gross hack, IP_PKTINFO in NetBSD isn't compatible with anything else
|
||||
SUBST_CLASSES+= pktinfo
|
||||
SUBST_STAGE.pktinfo= post-configure
|
||||
SUBST_FILES.pktinfo= include/asterisk/autoconfig.h
|
||||
SUBST_SED.pktinfo= -e "s|^\#define HAVE_PKTINFO 1|\#undef HAVE_PKTINFO|"
|
||||
.endif
|
||||
|
||||
RCD_SCRIPTS= asterisk
|
||||
@@ -206,7 +214,7 @@ post-patch:
|
||||
|
||||
post-install:
|
||||
# check sounds directory for current versions when upgrading package
|
||||
${TAR} xzf ${WRKSRC}/sounds/asterisk-core-sounds-en-gsm-1.4.23.tar.gz -C ${DESTDIR}${ASTDATADIR}/sounds/en
|
||||
${TAR} xzf ${WRKSRC}/sounds/asterisk-core-sounds-en-gsm-1.4.24.tar.gz -C ${DESTDIR}${ASTDATADIR}/sounds/en
|
||||
${TAR} xzf ${WRKSRC}/sounds/asterisk-moh-opsound-wav-2.03.tar.gz -C ${DESTDIR}${ASTDATADIR}/moh
|
||||
${TAR} xzf ${DISTDIR}/${DIST_SUBDIR}/asterisk-extra-sounds-en-gsm-1.4.13.tar.gz -C ${DESTDIR}${ASTDATADIR}/sounds/en
|
||||
${INSTALL_DATA} ${WRKSRC}/BUGS ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
|
||||
@@ -232,6 +240,7 @@ post-install:
|
||||
cp -r ${WRKSRC}/doc/Asterisk-Admin-Guide ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}/Asterisk-Admin-Guide
|
||||
|
||||
.include "../../databases/sqlite3/buildlink3.mk"
|
||||
.include "../../devel/libuuid/buildlink3.mk"
|
||||
.include "../../devel/zlib/buildlink3.mk"
|
||||
.include "../../security/openssl/buildlink3.mk"
|
||||
.include "../../textproc/libxml2/buildlink3.mk"
|
||||
|
||||
Reference in New Issue
Block a user