- Convert to USES+=tcl
- Refactor a bit the Makefile
This commit is contained in:
parent
8c895fef7f
commit
1b7b5213fd
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=327994
2 changed files with 21 additions and 20 deletions
|
@ -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>
|
||||
|
|
12
audio/xcd/files/patch-Makefile
Normal file
12
audio/xcd/files/patch-Makefile
Normal file
|
@ -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
|
Loading…
Reference in a new issue