diff options
author | kris <kris@FreeBSD.org> | 2004-03-22 08:25:55 +0800 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2004-03-22 08:25:55 +0800 |
commit | ca498bd72c64260b97f91bbb2b9a33f7d8a13fbb (patch) | |
tree | fb91d492d2a1814b08e3ab461963abb27635f7b7 /audio/portaudio2 | |
parent | 7cb9e6f867cf71dc2513438e049a29b0923752b1 (diff) | |
download | freebsd-ports-gnome-ca498bd72c64260b97f91bbb2b9a33f7d8a13fbb.tar.gz freebsd-ports-gnome-ca498bd72c64260b97f91bbb2b9a33f7d8a13fbb.tar.zst freebsd-ports-gnome-ca498bd72c64260b97f91bbb2b9a33f7d8a13fbb.zip |
Split out header/PTHREAD_LIBS fixups into post-patch, otherwise the
latter prevents the patching of nearby parts of files. This fixes
patching on 4.x.
Diffstat (limited to 'audio/portaudio2')
-rw-r--r-- | audio/portaudio2/Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/audio/portaudio2/Makefile b/audio/portaudio2/Makefile index 3e0189f4e6b3..dc8d98499335 100644 --- a/audio/portaudio2/Makefile +++ b/audio/portaudio2/Makefile @@ -37,11 +37,15 @@ PLIST_SUB+= WITH_PATESTS="" pre-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|
||' +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|' \ -e 's|machine\/soundcard.h|sys\/soundcard.h|' \ -e 's|-lpthread|${PTHREAD_LIBS}|' |