diff options
author | Jean-Marc Zucconi <jmz@FreeBSD.org> | 2007-07-06 11:00:06 +0000 |
---|---|---|
committer | Jean-Marc Zucconi <jmz@FreeBSD.org> | 2007-07-06 11:00:06 +0000 |
commit | 991f4a704f7b871c4619590935f85ac828507b1b (patch) | |
tree | 3dbd992551932961e4a1c3282838093a35f91b4c /audio/xcd | |
parent | 353f1bc4b51317f95fac72dd1da708d08e3f826a (diff) | |
download | ports-991f4a704f7b871c4619590935f85ac828507b1b.tar.gz ports-991f4a704f7b871c4619590935f85ac828507b1b.zip |
Notes
Diffstat (limited to 'audio/xcd')
-rw-r--r-- | audio/xcd/Makefile | 24 | ||||
-rw-r--r-- | audio/xcd/scripts/configure | 15 |
2 files changed, 20 insertions, 19 deletions
diff --git a/audio/xcd/Makefile b/audio/xcd/Makefile index 3b3d2ed44989..ba0156157f87 100644 --- a/audio/xcd/Makefile +++ b/audio/xcd/Makefile @@ -7,17 +7,33 @@ PORTNAME= xcd PORTVERSION= 1.7 -PORTREVISION= 1 -CATEGORIES= audio tk82 +PORTREVISION= 2 +CATEGORIES= audio tk84 MASTER_SITES= ${MASTER_SITE_LOCAL} MASTER_SITE_SUBDIR= jmz MAINTAINER= jmz@FreeBSD.org COMMENT= A Tcl/Tk CD player -RUN_DEPENDS= wish8.2:${PORTSDIR}/x11-toolkits/tk82 - +USE_TK= yes WRKSRC= ${WRKDIR}/xcd MAN1= xcd.1 +.if !defined(WITH_CDROM_PLAYER) +WITH_CDROM_PLAYER= acd0 +.endif + +pre-extract: + @${ECHO_CMD} "" + @${ECHO_CMD} "You can define WITH_CDROM_PLAYER to set the default CD/DVD player" + @${ECHO_CMD} "Default: acd0" + @${ECHO_CMD} "" + @${ECHO_CMD} "Use the CDPLAYER environment variable to override it." + @${ECHO_CMD} "" + +post-patch: + @${REINPLACE_CMD} 's|cd0c|${WITH_CDROM_PLAYER}|' ${WRKSRC}/cdplayer.cc + @${REINPLACE_CMD} 's|/usr/local/bin/wish8.0|${WISH}|' ${WRKSRC}/xcd.in + @${REINPLACE_CMD} 's|/usr/local|${PREFIX}|' ${WRKSRC}/Makefile + .include <bsd.port.mk> diff --git a/audio/xcd/scripts/configure b/audio/xcd/scripts/configure deleted file mode 100644 index 862c73461b5c..000000000000 --- a/audio/xcd/scripts/configure +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/sh - -cd $WRKSRC || exit 1; - -cat >> Makefile << END - -BINDIR = $PREFIX/bin -CDDIR = $PREFIX/lib/xcd -MANDIR = $PREFIX/man/man1 - -END - -mv xcd.in xcd.in~ -sed -e 's/wish8\.0/wish8.2/' < xcd.in~ > xcd.in -exit 0; |