1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-02 06:03:50 +00:00
freebsd-ports/audio/portaudio2/Makefile

69 lines
1.5 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: portaudio
# Date created: 18 May 2003
# Whom: michaelnottebrock@gmx.net and lioux@FreeBSD.org
#
# $FreeBSD$
#
PORTNAME= portaudio
2003-12-07 14:40:31 +00:00
PORTVERSION= 18.1
PORTREVISION= 2
CATEGORIES= audio
MASTER_SITES= http://www.portaudio.com/archives/
2003-12-07 14:40:31 +00:00
DISTNAME= ${PORTNAME}_v${PORTVERSION:S/./_/}
2003-12-07 14:40:31 +00:00
MAINTAINER= lofi@freebsd.org
COMMENT= Portable cross-platform Audio API
USE_REINPLACE= yes
USE_ZIP= yes
USE_GMAKE= yes
2003-12-07 14:40:31 +00:00
GNU_CONFIGURE= yes
INSTALLS_SHLIB= yes
2003-12-07 14:40:31 +00:00
NO_FILTER_SHLIBS=yes
PLIST_SUB+= SHLIB_VERSION=${SHLIB_VERSION}
SHLIB_VERSION= 0
2003-12-07 14:40:31 +00:00
pre-everything::
.if !defined(WITH_PATESTS)
@${ECHO_MSG}
@${ECHO_MSG} "You can additionally build portaudio's testsuite by defining WITH_PATESTS."
@${ECHO_MSG}
PLIST_SUB+= WITH_PATESTS="@comment "
.else
PLIST_SUB+= WITH_PATESTS=""
.endif
pre-patch:
# replace \r\n with \n
@${FIND} ${WRKSRC} -type f \
| ${XARGS} -x -n 10 \
${REINPLACE_CMD} -E \
-e 's| ||'
post-patch:
# replace obsolete headers, and fix up thread library
@${FIND} ${WRKSRC} -type f \
| ${XARGS} -x -n 10 \
${REINPLACE_CMD} -E \
-e 's|malloc.h|stdlib.h|' \
2003-12-07 14:40:31 +00:00
-e 's|machine\/soundcard.h|sys\/soundcard.h|' \
-e 's|-lpthread|${PTHREAD_LIBS}|'
pre-configure:
# Make configure executable
@${CHMOD} +x ${WRKSRC}/configure
.if !defined(WITH_PATESTS)
post-configure:
@${REINPLACE_CMD} -e 's|tests$$||' ${WRKSRC}/Makefile
.endif
post-install:
.if defined(WITH_PATESTS)
2003-12-07 14:40:31 +00:00
@${INSTALL_PROGRAM} ${WRKSRC}/bin/* ${PREFIX}/bin
.endif
@${LN} -sf libportaudio.so \
${PREFIX}/lib/libportaudio.so.${SHLIB_VERSION}
.include <bsd.port.mk>