From 25e599851c5c600346aa70b7035655feb3ceb64f Mon Sep 17 00:00:00 2001 From: vs Date: Tue, 19 Apr 2005 14:23:18 +0000 Subject: Use MAKE_ARGS & REINPLACE --- audio/play/Makefile | 10 +++++----- audio/play/files/patch-ab | 14 -------------- 2 files changed, 5 insertions(+), 19 deletions(-) delete mode 100644 audio/play/files/patch-ab (limited to 'audio/play') diff --git a/audio/play/Makefile b/audio/play/Makefile index 826039a0c435..60944593e149 100644 --- a/audio/play/Makefile +++ b/audio/play/Makefile @@ -14,7 +14,10 @@ MASTER_SITES= ${MASTER_SITE_PORTS_JP} MAINTAINER= ports@FreeBSD.org COMMENT= A simple audio file player -CONFLICTS= sox-* +CONFLICTS= sox-[0-9]* + +USE_REINPLACE= yes +MAKE_ARGS= CFLAGS="${CFLAGS}" DESTDIR="${PREFIX}" MANDIR="/man/ja/man" MANLANG= ja MAN1= play.1 @@ -23,10 +26,7 @@ PLIST_FILES= bin/play post-patch: .for file in play_audio.c mixer_ctl.c encode_sun.c encode_riff.c speed.c - @${CHMOD} u+w ${WRKSRC}/${file} - @${SED} 's,machine/soundcard.h,sys/soundcard.h,' < ${WRKSRC}/${file} \ - > ${WRKSRC}/${file}.new - @${MV} ${WRKSRC}/${file}.new ${WRKSRC}/${file} + @${REINPLACE_CMD} 's,machine/soundcard.h,sys/soundcard.h,' ${WRKSRC}/${file} .endfor .include diff --git a/audio/play/files/patch-ab b/audio/play/files/patch-ab deleted file mode 100644 index c52013c7f4d7..000000000000 --- a/audio/play/files/patch-ab +++ /dev/null @@ -1,14 +0,0 @@ ---- Makefile.orig Tue Mar 25 07:29:45 1997 -+++ Makefile Tue Apr 6 02:26:42 1999 -@@ -7,8 +7,8 @@ - - .include - --CFLAGS = -O --DESTDIR = /usr/local -+CFLAGS ?= -O -+DESTDIR = ${PREFIX} - BINDIR = /bin --MANDIR = /man/ja_JP.EUC/man -+MANDIR = /man/ja/man - -- cgit