aboutsummaryrefslogtreecommitdiff
path: root/audio/wav2cdr/Makefile
blob: 7605be3cb131742df54fab8eec9542fd52e3a140 (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
# New ports collection makefile for:	wav2cdr
# Date created:				9 Sep 2005
# Whom:					Emanuel Haupt <ehaupt@critical.ch>
#
# $FreeBSD$
#

PORTNAME=	wav2cdr
PORTVERSION=	2.3.3
CATEGORIES=	audio converters
MASTER_SITES=	${MASTER_SITE_SUNSITE}
MASTER_SITE_SUBDIR=	apps/sound/convert

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

MAKE_JOBS_SAFE=	yes

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

PLIST_FILES=	bin/wav2cdr
MAN1=		wav2cdr.1

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} ${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${MANPREFIX}/man/man1

.include <bsd.port.mk>