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