Lines 1-40
Link Here
|
1 |
# New ports collection makefile for: yate |
1 |
# New ports collection makefile for: yate |
2 |
# Date created: 2006-12-11 |
2 |
# Date created: 2006-12-11 |
3 |
# Whom: Balwinder S "bsd" Dheeman <bdheeman@hotmail.com> |
3 |
# Whom: Balwinder S "bsd" Dheeman <bdheeman@gmail.com> |
4 |
# |
4 |
# |
5 |
# $FreeBSD: ports/net/yate-devel/Makefile,v 1.1 2007/09/23 12:34:40 edwin Exp $ |
5 |
# $FreeBSD: ports/net/yate-devel/Makefile,v 1.1 2007/09/23 12:34:40 edwin Exp $ |
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= yate |
8 |
PORTNAME= yate |
9 |
DISTVERSION= 1.2.0.p4 |
9 |
PORTVERSION= 1.3.0.1 |
|
|
10 |
PORTREVISION= 0 |
10 |
CATEGORIES= net comms |
11 |
CATEGORIES= net comms |
11 |
MASTER_SITES= http://cto.homelinux.net/pub/FreeBSD/ports/distfiles/ \ |
12 |
MASTER_SITES= http://cto.homelinux.net/pub/FreeBSD/ports/distfiles/ \ |
12 |
http://yate.null.ro/tarballs/yate1/ |
13 |
http://yate.null.ro/tarballs/yate1/ \ |
13 |
PKGNAMESUFFIX= -devel |
14 |
${MASTER_SITE_LOCAL} |
14 |
DISTNAME= ${PORTNAME}-${DISTVERSION:S/.p/-/} |
15 |
PKGNAMESUFFIX= -devel |
|
|
16 |
DISTVERSION= 1.3.0 |
17 |
DISTRELEASE= 1 |
18 |
DISTNAME= ${PORTNAME}-${DISTVERSION}-${DISTRELEASE} |
19 |
EXTRACT_SUFX= .tar.bz2 |
15 |
|
20 |
|
16 |
MAINTAINER= bdheeman@hotmail.com |
21 |
MAINTAINER= bdheeman@gmail.com |
17 |
COMMENT= Yet Another Telephony Engine |
22 |
COMMENT= Yet Another Telephony Engine |
18 |
|
23 |
|
19 |
LIB_DEPENDS= gsm.1:${PORTSDIR}/audio/gsm \ |
24 |
LIB_DEPENDS= gsm.1:${PORTSDIR}/audio/gsm \ |
20 |
speex.1:${PORTSDIR}/audio/speex |
25 |
speex.1:${PORTSDIR}/audio/speex |
21 |
|
26 |
|
22 |
USE_BZIP2= yes |
|
|
23 |
USE_GMAKE= yes |
24 |
USE_BISON= yes |
27 |
USE_BISON= yes |
|
|
28 |
USE_GMAKE= yes |
25 |
USE_LDCONFIG= yes |
29 |
USE_LDCONFIG= yes |
26 |
WANT_GNOME= yes |
|
|
27 |
|
30 |
|
28 |
GNU_CONFIGURE= yes |
31 |
GNU_CONFIGURE= yes |
29 |
CONFIGURE_ARGS= --without-fdsize \ |
32 |
CONFIGURE_ARGS= --without-fdsize \ |
30 |
--mandir=${LOCALBASE}/man |
33 |
--mandir=${PREFIX}/man |
31 |
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ |
34 |
CONFIGURE_ENV= CPPFLAGS="-I${PREFIX}/include" \ |
32 |
LDFLAGS="-L${LOCALBASE}/lib" |
35 |
LDFLAGS="-L${PREFIX}/lib" |
33 |
MAKE_ENV= CXX="${CXX}" \ |
36 |
MAKE_ENV= CXX="${CXX}" \ |
34 |
PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \ |
37 |
PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \ |
35 |
PTHREAD_LIBS="${PTHREAD_LIBS}" \ |
38 |
PTHREAD_LIBS="${PTHREAD_LIBS}" \ |
36 |
PWLIBDIR=${LOCALBASE}/share/pwlib \ |
39 |
PWLIBDIR=${PREFIX}/share/pwlib \ |
37 |
OPENH323DIR=${LOCALBASE}/share/openh323 |
40 |
OPENH323DIR=${PREFIX}/share/openh323 |
38 |
MAN8= yate-config.8 yate.8 |
41 |
MAN8= yate-config.8 yate.8 |
39 |
|
42 |
|
40 |
ONLY_FOR_ARCHS= amd64 i386 sparc64 |
43 |
ONLY_FOR_ARCHS= amd64 i386 sparc64 |
Lines 46-57
Link Here
|
46 |
ZAPTEL "Zaptel hardware channel/driver support" on \ |
49 |
ZAPTEL "Zaptel hardware channel/driver support" on \ |
47 |
FAX "Fax software channel/driver support" on |
50 |
FAX "Fax software channel/driver support" on |
48 |
|
51 |
|
49 |
DOCSDIR= ${LOCALBASE}/share/doc/yate |
52 |
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME} |
50 |
PORTDOCS= ${DOCSDIR}/* |
53 |
PORTDOCS= ${DOCSDIR}/* |
51 |
PLIST_SUB= BRISTUFF="@comment " |
54 |
PLIST_SUB= BRISTUFF="@comment " |
52 |
SUB_FILES= pkg-message |
55 |
SUB_FILES= pkg-message |
53 |
USE_RC_SUBR= yate.sh |
56 |
USE_RC_SUBR= yate.sh |
54 |
WRKSRC= ${WRKDIR}/${PORTNAME}-1.2.0 |
57 |
WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION} |
55 |
|
58 |
|
56 |
.include <bsd.port.pre.mk> |
59 |
.include <bsd.port.pre.mk> |
57 |
|
60 |
|
Lines 75-81
Link Here
|
75 |
.endif |
78 |
.endif |
76 |
|
79 |
|
77 |
.if !defined(WITHOUT_PGSQL) |
80 |
.if !defined(WITHOUT_PGSQL) |
78 |
CONFIGURE_ARGS+= --with-libpq=${LOCALBASE} |
81 |
CONFIGURE_ARGS+= --with-libpq=${PREFIX} |
79 |
MAKE_ENV+= WITH_PGSQL=1 |
82 |
MAKE_ENV+= WITH_PGSQL=1 |
80 |
PLIST_SUB+= WITH_PGSQL="" |
83 |
PLIST_SUB+= WITH_PGSQL="" |
81 |
USE_PGSQL= yes |
84 |
USE_PGSQL= yes |
Lines 89-96
Link Here
|
89 |
.endif |
92 |
.endif |
90 |
|
93 |
|
91 |
.if !defined(WITHOUT_H323) |
94 |
.if !defined(WITHOUT_H323) |
92 |
CONFIGURE_ARGS+= --with-pwlib=${LOCALBASE} \ |
95 |
CONFIGURE_ARGS+= --with-pwlib=${PREFIX} \ |
93 |
--with-openh323=${LOCALBASE} |
96 |
--with-openh323=${PREFIX} |
94 |
LIB_DEPENDS+= pt_r.1:${PORTSDIR}/devel/pwlib \ |
97 |
LIB_DEPENDS+= pt_r.1:${PORTSDIR}/devel/pwlib \ |
95 |
h323_r.1:${PORTSDIR}/net/openh323 |
98 |
h323_r.1:${PORTSDIR}/net/openh323 |
96 |
MAKE_ENV+= WITH_H323=1 |
99 |
MAKE_ENV+= WITH_H323=1 |
Lines 101-107
Link Here
|
101 |
|
104 |
|
102 |
.if !defined(WITHOUT_ZAPTEL) |
105 |
.if !defined(WITHOUT_ZAPTEL) |
103 |
BUILD_DEPENDS+= libpri>=1.2.0:${PORTSDIR}/misc/libpri \ |
106 |
BUILD_DEPENDS+= libpri>=1.2.0:${PORTSDIR}/misc/libpri \ |
104 |
${LOCALBASE}/include/zaptel/zaptel.h:${PORTSDIR}/misc/zaptel |
107 |
${PREFIX}/include/zaptel/zaptel.h:${PORTSDIR}/misc/zaptel |
105 |
LIB_DEPENDS+= pri.1:${PORTSDIR}/misc/libpri |
108 |
LIB_DEPENDS+= pri.1:${PORTSDIR}/misc/libpri |
106 |
RUN_DEPENDS+= ztcfg:${PORTSDIR}/misc/zaptel |
109 |
RUN_DEPENDS+= ztcfg:${PORTSDIR}/misc/zaptel |
107 |
MAKE_ENV+= WITH_ZAPTEL=1 |
110 |
MAKE_ENV+= WITH_ZAPTEL=1 |
Lines 119-143
Link Here
|
119 |
PLIST_SUB+= WITH_FAX="@comment " |
122 |
PLIST_SUB+= WITH_FAX="@comment " |
120 |
.endif |
123 |
.endif |
121 |
|
124 |
|
122 |
.if ${OSVERSION} >= 500036 |
|
|
123 |
PLIST_SUB+= NEWGCC="" |
124 |
.else |
125 |
PLIST_SUB+= NEWGCC="@comment " |
126 |
.endif |
127 |
|
128 |
post-patch: |
129 |
${REINPLACE_CMD} -e 's,%%LOCALBASE%%,${LOCALBASE},g' \ |
130 |
${WRKSRC}/modules/Makefile.in |
131 |
|
132 |
pre-install: |
125 |
pre-install: |
133 |
@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL |
126 |
@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL |
134 |
|
127 |
|
135 |
post-install: |
128 |
post-install: |
136 |
${MKDIR} ${DOCSDIR} |
129 |
@${MKDIR} ${DOCSDIR} |
137 |
${INSTALL_DATA} ${WRKSRC}/COPYING ${PREFIX}/share/doc/yate |
130 |
@${INSTALL_DATA} ${WRKSRC}/COPYING ${DOCSDIR} |
138 |
${INSTALL_DATA} ${WRKSRC}/ChangeLog ${PREFIX}/share/doc/yate |
131 |
@${INSTALL_DATA} ${WRKSRC}/ChangeLog ${DOCSDIR} |
139 |
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/yate |
132 |
@${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} |
140 |
${INSTALL_DATA} ${FILESDIR}/README.too ${PREFIX}/share/doc/yate |
133 |
@${INSTALL_DATA} files/README.too ${DOCSDIR} |
|
|
134 |
@cd ${PREFIX}/lib; ln -fs lib${PORTNAME}.so.${DISTVERSION} lib${PORTNAME}.so.1 |
135 |
@cd ${PREFIX}/etc/${PORTNAME}; for cfg in *.sample; do test -f $${cfg%%.sample} || cp -p $${cfg} $${cfg%%.sample}; done |
141 |
@${CAT} ${PKGMESSAGE} |
136 |
@${CAT} ${PKGMESSAGE} |
142 |
|
137 |
|
143 |
.include <bsd.port.post.mk> |
138 |
.include <bsd.port.post.mk> |