openbsd-ports/misc/cdrdao/Makefile

57 lines
1.4 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.28 2007/09/15 23:54:16 merdely Exp $
COMMENT= write audio/data CD-Rs in disk-at-once mode
2005-05-31 15:40:24 -04:00
DISTNAME= cdrdao-1.2.0
CATEGORIES= audio misc
2002-05-13 19:31:24 -04:00
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=cdrdao/}
HOMEPAGE= http://cdrdao.sourceforge.net/
2000-10-22 12:09:13 -04:00
MAINTAINER= Federico Schwindt <fgsch@openbsd.org>
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
2004-12-22 06:48:32 -05:00
WANTLIB= c m stdc++
USE_GMAKE= Yes
2005-05-31 15:40:24 -04:00
CONFIGURE_STYLE= gnu
2004-08-02 12:08:23 -04:00
MODGNU_CONFIG_GUESS_DIRS=${WRKSRC} ${WRKSRC}/paranoia ${WRKSRC}/scsilib/conf
CONFIGURE_ARGS+= --with-posix-threads=no \
--with-xdao=no
MAKE_ENV= CCOM="${CC}"
FLAVORS= audio
FLAVOR?=
.if ${FLAVOR:L:Maudio}
CONFIGURE_ARGS+= --with-lame-lib=${LOCALBASE}/lib \
--with-lame-include=${LOCALBASE}/include
BUILD_DEPENDS+= :libmad->=0.15.1bp0:audio/libmad
2006-09-21 09:03:12 -04:00
LIB_DEPENDS+= ao.>=3::audio/libao \
mp3lame::audio/lame \
2006-09-21 09:03:12 -04:00
mad.>=2::audio/libmad \
vorbis.>=4::audio/libvorbis
WANTLIB+= ogg.>=5 vorbisfile.>=4
.else
CONFIGURE_ARGS+= --with-ogg-support=no \
--with-mp3-support=no \
--without-lame
.endif
.if ${MACHINE} != "i386" || ${CC} != "cc"
pre-configure:
@ln -sf ${WRKSRC}/scsilib/RULES/i386-openbsd-cc.rul \
${WRKSRC}/scsilib/RULES/${MACHINE}-openbsd-${CC}.rul
.endif
post-install:
@strip ${PREFIX}/bin/cdrdao ${PREFIX}/bin/toc2cue
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/cdrdao
cd ${WRKDIST} && ${INSTALL_DATA} README README.PlexDAE \
${PREFIX}/share/doc/cdrdao
.include <bsd.port.mk>