1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-15 03:14:23 +00:00
freebsd-ports/comms/spandsp-devel5/Makefile
Edwin Groothuis 6dfb72a4d7 [PATCH] comms/spandsp: [fix build on FreeBSD < 5.3
tgmath.h doesn't exist in FreeBSD prior to 5.3, so fake it
	when building on earlier FreeBSD

PR:		ports/89958
Submitted:	Tod McQuillin <devin@spamcop.net>
2005-12-05 04:05:36 +00:00

40 lines
1.0 KiB
Makefile

# New ports collection makefile for: spandsp
# Date created: 23 June 2005
# Whom: wlloyd@slap.net
#
# $FreeBSD$
#
PORTNAME= spandsp
DISTVERSION= 0.0.2pre20
CATEGORIES= comms
MASTER_SITES= http://www.soft-switch.org/downloads/spandsp/${PORTNAME}-${DISTVERSION}/ \
${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= pav
MAINTAINER= ports@FreeBSD.org
COMMENT= Fax DSP library for Asterisk
LIB_DEPENDS= tiff.4:${PORTSDIR}/graphics/tiff
WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION:C/pre.*$//}
USE_GMAKE= yes
USE_REINPLACE= yes
USE_AUTOTOOLS= libtool:15
CONFIGURE_ARGS= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
INSTALLS_SHLIB= yes
.include <bsd.port.pre.mk>
post-patch:
@${FIND} ${WRKSRC} -name *.c | ${XARGS} ${REINPLACE_CMD} -e 's|<stdint.h>|<inttypes.h>|'
.if ${OSVERSION} < 503000
${TOUCH} ${WRKSRC}/src/tgmath.h
.endif
.include <bsd.port.post.mk>