diff options
author | gahr <gahr@FreeBSD.org> | 2013-09-23 20:58:03 +0800 |
---|---|---|
committer | gahr <gahr@FreeBSD.org> | 2013-09-23 20:58:03 +0800 |
commit | 04901f0c3ec490c1858bd6d6f7215beee69ad8e8 (patch) | |
tree | bb00c10552f4cb0653e4b4977d4c51aa03bb710e /audio/xcd | |
parent | 8d6917e7c2d2a15ea0995d6f6d75c9206fe84fb3 (diff) | |
download | freebsd-ports-gnome-04901f0c3ec490c1858bd6d6f7215beee69ad8e8.tar.gz freebsd-ports-gnome-04901f0c3ec490c1858bd6d6f7215beee69ad8e8.tar.zst freebsd-ports-gnome-04901f0c3ec490c1858bd6d6f7215beee69ad8e8.zip |
- Convert to USES+=tcl
- Refactor a bit the Makefile
Diffstat (limited to 'audio/xcd')
-rw-r--r-- | audio/xcd/Makefile | 29 | ||||
-rw-r--r-- | audio/xcd/files/patch-Makefile | 12 |
2 files changed, 21 insertions, 20 deletions
diff --git a/audio/xcd/Makefile b/audio/xcd/Makefile index 8d98fbbbea76..70fcd4fc424c 100644 --- a/audio/xcd/Makefile +++ b/audio/xcd/Makefile @@ -12,14 +12,17 @@ COMMENT= Tcl/Tk CD player WRKSRC= ${WRKDIR}/${PORTNAME} -USE_TK_WRAPPER= yes +USES+= tk NO_STAGE= yes MAN1= xcd.1 -.if !defined(WITH_CDROM_PLAYER) -WITH_CDROM_PLAYER= cd0 -.endif +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} "" @@ -30,21 +33,7 @@ pre-extract: @${ECHO_CMD} "" post-patch: - @${REINPLACE_CMD} 's|cd0c|${WITH_CDROM_PLAYER}|' ${WRKSRC}/cdplayer.cc - @(cd ${WRKSRC} && ${SED} -e \ - 's|/usr/local/bin/wish8.0|${WISH}| ; \ - s|CDPLAYER|${PREFIX}/lib/xcd/cdplayer| ; \ - s|BITMAPDIR|${PREFIX}/lib/xcd|' \ - < xcd.in > xcd) - -do-build: - (cd ${WRKSRC} && ${CXX} ${CXXFLAGS} -o cdplayer cdplayer.cc) - -do-install: - (cd ${WRKSRC} && ${INSTALL_SCRIPT} xcd ${PREFIX}/bin) - (cd ${WRKSRC} && ${INSTALL_MAN} xcd.1 ${MANPREFIX}/man/man1) - @${MKDIR} ${PREFIX}/lib/xcd - (cd ${WRKSRC} && ${INSTALL_PROGRAM} cdplayer ${PREFIX}/lib/xcd) - (cd ${WRKSRC}/bitmaps && ${INSTALL_DATA} *.xbm ${PREFIX}/lib/xcd) + @${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> diff --git a/audio/xcd/files/patch-Makefile b/audio/xcd/files/patch-Makefile new file mode 100644 index 000000000000..1b82d41ace8e --- /dev/null +++ b/audio/xcd/files/patch-Makefile @@ -0,0 +1,12 @@ +--- Makefile.orig 1998-10-27 01:14:26.000000000 +0100 ++++ Makefile 2013-09-23 14:57:00.000000000 +0200 +@@ -1,6 +1,6 @@ +-BINDIR = /usr/local/bin +-CDDIR = /usr/local/lib/xcd +-MANDIR = /usr/local/man/man1 ++BINDIR ?= /usr/local/bin ++CDDIR ?= /usr/local/lib/xcd ++MANDIR ?= /usr/local/man/man1 + + all: cdplayer xcd + xcd: xcd.in |