summaryrefslogtreecommitdiff
path: root/sysutils/cdrtools/Makefile
blob: c34a523297c140305a4671ff5c1901e18da69965 (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
PORTNAME=	cdrtools
CATEGORIES=	sysutils audio

COMMENT=	Tools for ripping from and recording to CDs and DVDs

LAME_RUN_DEPENDS=	lame:audio/lame
VORBIS_RUN_DEPENDS=	oggenc:audio/vorbis-tools

USES=		cpe

CPE_VENDOR=	cdrtools_project

OPTIONS_DEFINE=	DOCS LAME VORBIS SETUID
OPTIONS_DEFAULT=DOCS LAME VORBIS
OPTIONS_SUB=	yes
LAME_DESC=	Install cdda2mp3 (requires audio/lame)
VORBIS_DESC=	Install cdda2ogg (requires audio/vorbis-tools)
SETUID_DESC=	Install cdrecord, cdda2wav, and readcd as setuid root
SETUID_PLIST_SUB=	SUID="@(root,,4711) "
SETUID_PLIST_SUB_OFF=	SUID="@(,,755) "

CONFLICTS_INSTALL=	cdrkit-* cdrtools-devel cdrtools-rscsi-devel

MASTERDIR=	${.CURDIR}/../../devel/schilybase
COMPONENTS=	cdda2wav \
		cdrecord \
		mkisofs \
		mkisofs/diag \
		readcd \
		scgcheck \
		scgskeleton

post-install:
	${RM} ${STAGEDIR}${PREFIX}/share/doc/cdrecord/README.rscsi

post-install-LAME-off:
	${RM} ${STAGEDIR}${PREFIX}/bin/cdda2mp3 ${STAGEDIR}${PREFIX}share/man/man1/cdda2mp3.1

post-install-VORBIS-off:
	${RM} ${STAGEDIR}${PREFIX}/bin/cdda2ogg ${STAGEDIR}${PREFIX}share/man/man1/cdda2ogg.1

post-install-DOCS-off:
	${RM} ${STAGEDIR}share/doc

.include "${MASTERDIR}/Makefile.master"