aboutsummaryrefslogtreecommitdiff
path: root/audio/xcd/Makefile
blob: f4d0cc0a0654cf0bfec06681f46bcdc3b4d263da (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Created by: Jean-Marc Zucconi <jmz@FreeBSD.org>

PORTNAME=	xcd
PORTVERSION=	1.7
PORTREVISION=	3
CATEGORIES=	audio tk
MASTER_SITES=	LOCAL/cy

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Tcl/Tk CD player

WRKSRC=		${WRKDIR}/${PORTNAME}

USES=		tk

WITH_CDROM_PLAYER?=	cd0

MAKE_ENV+=	BINDIR="${PREFIX}/bin" \
		CDDIR="${PREFIX}/lib/xcd" \
		BITMAPDIR="${PREFIX}/lib/xcd" \
		MANDIR="${MANPREFIX}/man/man1"

pre-extract:
	@${ECHO_CMD} ""
	@${ECHO_CMD} "You can define WITH_CDROM_PLAYER to set the default CD/DVD player"
	@${ECHO_CMD} "Default: cd0"
	@${ECHO_CMD} ""
	@${ECHO_CMD} "Use the CDPLAYER environment variable to override it."
	@${ECHO_CMD} ""

post-patch:
	@${REINPLACE_CMD} -e 's|cd0c|${WITH_CDROM_PLAYER}|' ${WRKSRC}/cdplayer.cc
	@${REINPLACE_CMD} -e 's|/usr/local/bin/wish8.0|${WISH}|' ${WRKSRC}/xcd.in

.include <bsd.port.mk>