aboutsummaryrefslogtreecommitdiffstats
path: root/comms/spandsp-devel/Makefile
blob: b2bb22d8baa17b653a4b305337bf1e5d906bfe5a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# $FreeBSD$

PORTNAME=   spandsp
DISTVERSION=    0.0.6pre21
CATEGORIES= comms
MASTER_SITES=   http://www.soft-switch.org/downloads/spandsp/
PKGNAMESUFFIX=  -devel
EXTRACT_SUFX=   .tgz

MAINTAINER= nemysis@gmx.ch
COMMENT=    DSP library and software FAX machine

LIB_DEPENDS=    tiff:${PORTSDIR}/graphics/tiff

WRKSRC=     ${WRKDIR}/spandsp-${DISTVERSION:C/pre.*//}
USE_AUTOTOOLS=  libtool autoconf
USE_GMAKE=  yes
USE_GNOME=  gnomehack

GNU_CONFIGURE=  yes
CONFIGURE_ARGS= CPPFLAGS="-I${LOCALBASE}/include" \
        LDFLAGS="-L${LOCALBASE}/lib" \
        -C

USE_LDCONFIG=   yes

CONFLICTS=  spandsp-[0-9]*

OPTIONS_DEFINE= DOXYGEN

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MDOXYGEN}
CONFIGURE_ARGS+=--enable-doc
BUILD_DEPENDS+= doxygen:${PORTSDIR}/devel/doxygen
PORTDOCS=   *
.else
CONFIGURE_ARGS+=--disable-doc
.endif

post-install:
.if ${PORT_OPTIONS:MDOXYGEN}
    ${MKDIR} ${DOCSDIR}
    (cd ${WRKSRC}/doc && \
        ${COPYTREE_SHARE} \* ${DOCSDIR} "-type d -or -mindepth 1")
.endif

.include <bsd.port.mk>