1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-22 00:35:15 +00:00
freebsd-ports/audio/xcd/Makefile
Pietro Cerutti 1b7b5213fd - Convert to USES+=tcl
- Refactor a bit the Makefile
2013-09-23 12:58:03 +00:00

40 lines
876 B
Makefile

# Created by: Jean-Marc Zucconi <jmz@FreeBSD.org>
# $FreeBSD$
PORTNAME= xcd
PORTVERSION= 1.7
PORTREVISION= 3
CATEGORIES= audio tk
MASTER_SITES= LOCAL/jmz
MAINTAINER= ports@FreeBSD.org
COMMENT= Tcl/Tk CD player
WRKSRC= ${WRKDIR}/${PORTNAME}
USES+= tk
NO_STAGE= yes
MAN1= xcd.1
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>