aboutsummaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorshaun <shaun@FreeBSD.org>2011-07-26 10:53:57 +0800
committershaun <shaun@FreeBSD.org>2011-07-26 10:53:57 +0800
commit386991384e7baf28e5a7da66069917e7422ab2d4 (patch)
tree0a742f11a5670a9fd78fb40c4f7510ea19c13d20 /audio
parent9875e01f44cb91244ed77fd6184952ab53303ae3 (diff)
downloadfreebsd-ports-gnome-386991384e7baf28e5a7da66069917e7422ab2d4.tar.gz
freebsd-ports-gnome-386991384e7baf28e5a7da66069917e7422ab2d4.tar.zst
freebsd-ports-gnome-386991384e7baf28e5a7da66069917e7422ab2d4.zip
- Fix build on clang. [1]
- Respect PREFIX and CFLAGS. PR: ports/158546 [1] Submitted by: Niclas Zeising <niclas.zeising@gmail.com> [1]
Diffstat (limited to 'audio')
-rw-r--r--audio/cdplay/Makefile13
1 files changed, 12 insertions, 1 deletions
diff --git a/audio/cdplay/Makefile b/audio/cdplay/Makefile
index 424ffb26697f..c2746643987a 100644
--- a/audio/cdplay/Makefile
+++ b/audio/cdplay/Makefile
@@ -15,12 +15,23 @@ MASTER_SITE_SUBDIR= dannyboy
MAINTAINER= ports@FreeBSD.org
COMMENT= CD-player with text-based user interface
-MAKE_ARGS= CFLAGS="${CFLAGS} -c -ansi"
+MAKE_ARGS= CFLAGS="${CFLAGS} -c -ansi" \
+ BINPATH="${PREFIX}/bin/" \
+ MANPATH="${MANPREFIX}/man/man1/"
MAKE_JOBS_UNSAFE= yes
MAN1= cdplay.1
PLIST_FILES= bin/cdplay
+post-patch:
+ ${REINPLACE_CMD} \
+ -e 's/^CC=/CC?=/' \
+ -e 's/^OPTIMISE=.*$$/OPTIMISE=/'\
+ -e 's/^CFLAGS=/CFLAGS+=/' \
+ -e 's/^BINPATH=/BINPATH?=/' \
+ -e 's/^MANPATH=/MANPATH?=/' \
+ ${WRKSRC}/Makefile
+
pre-patch:
@${GUNZIP_CMD} ${WRKSRC}/cdplay.1.gz