diff options
author | vs <vs@FreeBSD.org> | 2005-04-19 14:23:18 +0000 |
---|---|---|
committer | vs <vs@FreeBSD.org> | 2005-04-19 14:23:18 +0000 |
commit | 25e599851c5c600346aa70b7035655feb3ceb64f (patch) | |
tree | cf028b4fe48b428536503e429f3c503c74360704 /audio/play | |
parent | 862838057c4bbd0dbd6c84aa07c14f78031c2698 (diff) | |
download | FreeBSD-ports-25e599851c5c600346aa70b7035655feb3ceb64f.zip FreeBSD-ports-25e599851c5c600346aa70b7035655feb3ceb64f.tar.gz |
Use MAKE_ARGS & REINPLACE
Diffstat (limited to 'audio/play')
-rw-r--r-- | audio/play/Makefile | 10 | ||||
-rw-r--r-- | audio/play/files/patch-ab | 14 |
2 files changed, 5 insertions, 19 deletions
diff --git a/audio/play/Makefile b/audio/play/Makefile index 826039a..6094459 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 <bsd.port.mk> diff --git a/audio/play/files/patch-ab b/audio/play/files/patch-ab deleted file mode 100644 index c52013c..0000000 --- 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 <bsd.prog.mk> - --CFLAGS = -O --DESTDIR = /usr/local -+CFLAGS ?= -O -+DESTDIR = ${PREFIX} - BINDIR = /bin --MANDIR = /man/ja_JP.EUC/man -+MANDIR = /man/ja/man - |