blob: 37e0c64658ff4c672c4dd1be49692c48d161bb88 (
plain)
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
49
|
# New ports collection makefile for: portaudio
# Date created: 18 May 2003
# Whom: michaelnottebrock@gmx.net and lioux@FreeBSD.org
#
# $FreeBSD$
#
PORTNAME= portaudio
PORTVERSION= 18
CATEGORIES= audio
MASTER_SITES= http://www.portaudio.com/archives/
DISTNAME= ${PORTNAME}_v${PORTVERSION}
MAINTAINER= michaelnottebrock@gmx.net
COMMENT= Portable cross-platform Audio API
USE_REINPLACE= yes
USE_ZIP= yes
USE_GMAKE= yes
MAKEFILE= Makefile.linux
ALL_TARGET= sharedlib
PLIST_SUB= SHLIB_VERSION=${SHLIB_VERSION}
INSTALLS_SHLIB= yes
SHLIB_VERSION= 0
post-patch:
# replace \r\n with \n
# replace <malloc.h> with <stdlib.h>
@${FIND} ${WRKSRC} -type f \
| ${XARGS} -x -n 10 \
${REINPLACE_CMD} -E \
-e 's|
||' \
-e 's|malloc.h|stdlib.h|'
# C{C,FLAGS} and PREFIX safeness
@${REINPLACE_CMD} -E \
-e 's|gcc|${CC} ${CFLAGS}|' \
-e 's|^CFLAGS.*$$||' \
${BUILD_WRKSRC}/${MAKEFILE}
do-install:
@${INSTALL_DATA} ${WRKSRC}/pa_common/portaudio.h \
${PREFIX}/include
@${INSTALL_DATA} ${WRKSRC}/pa_unix_oss/libportaudio.so \
${PREFIX}/lib
@${LN} -sf libportaudio.so \
${PREFIX}/lib/libportaudio.so.${SHLIB_VERSION}
.include <bsd.port.mk>
|