summaryrefslogtreecommitdiff
path: root/audio/wav2cdr/Makefile
blob: 4ac79f4800230da5089d692899635a0fe7fa996e (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
# Created by: Emanuel Haupt <ehaupt@critical.ch>

PORTNAME=	wav2cdr
PORTVERSION=	2.3.4
DISTVERSIONSUFFIX=	.orig
CATEGORIES=	audio converters
MASTER_SITES=	DEBIAN \
		LOCAL/ehaupt
DISTNAME=	${PORTNAME}_${PORTVERSION}${DISTVERSIONSUFFIX}

MAINTAINER=	ehaupt@FreeBSD.org
COMMENT=	Converts WAV files into CDR audio file format

LICENSE=	GPLv2

USES=		tar:bz2

WRKSRC=		${WRKDIR}/${PORTNAME}
SRC=		wav2cdr cmdarg data fileio process

PLIST_FILES=	bin/wav2cdr man/man1/wav2cdr.1.gz

do-build:
.for f in ${SRC}
	${CC} ${CFLAGS} -c -o ${WRKSRC}/${f}.o ${WRKSRC}/${f}.c
.endfor
	${CC} ${CFLAGS} ${LDFLAGS} -o ${WRKSRC}/${PORTNAME} \
		${SRC:C/(.*)/${WRKSRC}\/\1.o/}

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${MANPREFIX}/man/man1

.include <bsd.port.mk>