2003-06-03 21:03:16 +02:00
|
|
|
# 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 15:40:31 +01:00
|
|
|
PORTVERSION= 18.1
|
2004-02-04 06:21:48 +01:00
|
|
|
PORTREVISION= 2
|
2003-06-03 21:03:16 +02:00
|
|
|
CATEGORIES= audio
|
|
|
|
MASTER_SITES= http://www.portaudio.com/archives/
|
2003-12-07 15:40:31 +01:00
|
|
|
DISTNAME= ${PORTNAME}_v${PORTVERSION:S/./_/}
|
2003-06-03 21:03:16 +02:00
|
|
|
|
2008-09-07 02:36:27 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-06-03 21:03:16 +02:00
|
|
|
COMMENT= Portable cross-platform Audio API
|
|
|
|
|
|
|
|
USE_ZIP= yes
|
|
|
|
USE_GMAKE= yes
|
2003-12-07 15:40:31 +01:00
|
|
|
GNU_CONFIGURE= yes
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
USE_LDCONFIG= yes
|
2003-12-07 15:40:31 +01:00
|
|
|
|
2003-12-07 16:30:01 +01:00
|
|
|
PLIST_SUB+= SHLIB_VERSION=${SHLIB_VERSION}
|
2003-12-07 15:56:17 +01:00
|
|
|
SHLIB_VERSION= 0
|
|
|
|
|
2003-12-07 15:40:31 +01: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:
|
2003-06-03 21:03:16 +02:00
|
|
|
# replace \r\n with \n
|
|
|
|
@${FIND} ${WRKSRC} -type f \
|
|
|
|
| ${XARGS} -x -n 10 \
|
|
|
|
${REINPLACE_CMD} -E \
|
2004-03-22 01:25:55 +01:00
|
|
|
-e 's|
||'
|
|
|
|
post-patch:
|
|
|
|
# replace obsolete headers, and fix up thread library
|
|
|
|
@${FIND} ${WRKSRC} -type f \
|
|
|
|
| ${XARGS} -x -n 10 \
|
|
|
|
${REINPLACE_CMD} -E \
|
2003-06-12 00:05:09 +02:00
|
|
|
-e 's|malloc.h|stdlib.h|' \
|
2003-12-07 15:40:31 +01: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:
|
2003-12-07 15:56:17 +01:00
|
|
|
.if defined(WITH_PATESTS)
|
2003-12-07 15:40:31 +01:00
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/bin/* ${PREFIX}/bin
|
|
|
|
.endif
|
2003-12-07 15:56:17 +01:00
|
|
|
@${LN} -sf libportaudio.so \
|
|
|
|
${PREFIX}/lib/libportaudio.so.${SHLIB_VERSION}
|
2003-06-03 21:03:16 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|