summaryrefslogtreecommitdiff
path: root/sysutils/tkdvd/Makefile
blob: b29a6f49ba2b77f3909deca81a51348eb052b0b3 (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
# $FreeBSD$

PORTNAME=	tkdvd
PORTVERSION=	4.0.9
PORTREVISION=	3
CATEGORIES=	sysutils
MASTER_SITES=	http://regis.damongeot.free.fr/tkdvd/dl/ \
		http://mirror.amdmi3.ru/distfiles/

MAINTAINER=	amdmi3@FreeBSD.org
COMMENT=	GUI to dvd+rw-tools and cdrecord

RUN_DEPENDS=	growisofs:${PORTSDIR}/sysutils/dvd+rw-tools \
		cdrecord:${PORTSDIR}/sysutils/cdrtools

USE_TCL=	84+
USE_TK=		84+

WRKSRC=		${WRKDIR}/${PORTNAME}

PLIST_FILES=	bin/tkdvd share/pixmaps/tkdvd.png
PORTDOCS=	*

DESKTOP_ENTRIES="TkDVD" \
		"Burn CD/DVD" \
		"tkdvd" \
		"tkdvd" \
		"" \
		true

NO_STAGE=	yes
.include <bsd.port.options.mk>

post-patch:
	@${REINPLACE_CMD} -e 's|tclsh|${TCLSH}|' ${WRKSRC}/install.tcl \
		${WRKSRC}/configure
	@${REINPLACE_CMD} -e 's|wish|${WISH}|' ${WRKSRC}/TkDVD.sh
	@${REINPLACE_CMD} -e 's|/dev/sr0|/dev/cd0|' ${WRKSRC}/TkDVD.sh \
		${WRKSRC}/src/save_load_options.tcl

do-build:
	cd ${WRKSRC} && ${TCLSH} install.tcl

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/tkdvd-install.sh ${PREFIX}/bin/tkdvd
	${INSTALL_DATA} ${WRKSRC}/icons/tkdvd-2-48.png \
		${PREFIX}/share/pixmaps/tkdvd.png
.if ${PORT_OPTIONS:MDOCS}
	${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/README ${WRKSRC}/FAQ ${WRKSRC}/doc/c* \
		${DOCSDIR}
.endif

.include <bsd.port.mk>