summaryrefslogtreecommitdiff
path: root/sysutils/cdrecord-xcdroast/Makefile
blob: 3c6515f3e22c17b1d935f17d00f39d035931757f (plain)
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
# $NetBSD: Makefile,v 1.11 2004/05/30 02:19:16 snj Exp $

DISTNAME=	cdrtools-2.01a21
PKGNAME=	cdrecord-xcdroast-0.98a15.2.01a21
CATEGORIES=	sysutils
MASTER_SITES=	ftp://ftp.berlios.de/pub/cdrecord/alpha/
EXTRACT_SUFX=	.tar.bz2

MAINTAINER=	tech-pkg@NetBSD.org
HOMEPAGE=	http://www.fokus.gmd.de/research/cc/glone/employees/joerg.schilling/private/cdrecord.html
COMMENT=	cdrecord bits for xcdroast

CONFLICTS+=	cdrecord-xcdroast098a11-*
CONFLICTS+=	cdrecord-xcdroast098a13-*

.include "../../mk/bsd.prefs.mk"

WRKSRC=			${WRKDIR}/${DISTNAME:C/a.*//}
USE_BUILDLINK3=		yes
USE_GNU_TOOLS+=		make

.if ${LOCALBASE} != "/opt/schily"
BUILDLINK_TRANSFORM=	r:-I/opt/schily
BUILDLINK_TRANSFORM+=	r:-L/opt/schily
.endif

# avoid picking up a bad ${ARCH} during the build
MAKE_ENV+=      ARCH=""
MAKE_ENV+=      MAKEPROG="gmake"

do-configure:
	cd ${WRKSRC}/RULES;						\
	for suffix in netbsd-cc.rul netbsd-gcc.rul; do			\
		if [ ! -f ${MACHINE}-$$suffix ]; then			\
			${LN} -sf i386-$$suffix ${MACHINE}-$$suffix;	\
		fi;							\
	done

XCDRTOOLDIR=	${PREFIX}/lib/xcdroast-0.98/bin

do-install:
	${INSTALL_DATA_DIR} ${XCDRTOOLDIR}
	cd ${WRKSRC}/cdda2wav;						\
		${INSTALL_PROGRAM} OBJ/*/cdda2wav ${XCDRTOOLDIR}
	cd ${WRKSRC}/cdrecord;						\
		${INSTALL_PROGRAM} OBJ/*/cdrecord ${XCDRTOOLDIR}
	cd ${WRKSRC}/mkisofs;						\
		${INSTALL_PROGRAM} OBJ/*/mkisofs ${XCDRTOOLDIR}
	cd ${WRKSRC}/readcd;						\
		${INSTALL_PROGRAM} OBJ/*/readcd ${XCDRTOOLDIR}

.include "../../mk/ossaudio.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"