1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-29 01:13:08 +00:00
freebsd-ports/audio/grip/Makefile

90 lines
2.2 KiB
Makefile
Raw Normal View History

# Created by: kbyanc@posi.net
# $FreeBSD$
# $MCom: ports/audio/grip/Makefile,v 1.4 2007/05/19 21:35:57 marcus Exp $
PORTNAME= grip
PORTVERSION= 3.3.1
2012-06-01 05:26:28 +00:00
PORTREVISION= 5
CATEGORIES= audio
MASTER_SITES= SF
MAINTAINER= multimedia@FreeBSD.org
COMMENT= GTK front-end to external cd rippers and audio encoders
LIB_DEPENDS= id3-3.8.3:${PORTSDIR}/audio/id3lib \
2010-04-03 10:44:36 +00:00
curl.6:${PORTSDIR}/ftp/curl
USE_XORG= x11
USES= pathfix pkgconfig
USE_GNOME= gnomeprefix libgnomeui vte
USE_GMAKE= yes
2010-12-04 07:34:27 +00:00
USE_AUTOTOOLS= libtool
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
OPTIONS_DEFINE= CDPARANOIA CDDA2WAV LAME VORBIS FAAC FLAC NLS
2012-05-30 11:27:09 +00:00
OPTIONS_DEFAULT= CDPARANOIA VORBIS
.if !defined(PACKAGE_BUILDING)
OPTIONS_DEFAULT+= LAME
.endif
2004-04-20 21:55:42 +00:00
.include <bsd.port.pre.mk>
.if defined(WITH_CDROM_DEVICE)
DEFAULT_CDROM_DEVICE=${WITH_CDROM_DEVICE}
.else
DEFAULT_CDROM_DEVICE=/dev/acd0
.endif
2012-05-30 11:27:09 +00:00
.if ${PORT_OPTIONS:MCDPARANOIA}
LIB_DEPENDS+= cdda_paranoia.0:${PORTSDIR}/audio/cdparanoia
2004-04-20 22:09:46 +00:00
CONFIGURE_ARGS+= --enable-cdpar
.else
CONFIGURE_ARGS+= --disable-cdpar
.endif
2012-05-30 11:27:09 +00:00
.if ${PORT_OPTIONS:MCDDA2WAV}
RUN_DEPENDS+= cdda2wav:${PORTSDIR}/sysutils/cdrtools
.endif
2012-05-30 11:27:09 +00:00
.if ${PORT_OPTIONS:MFAAC}
RUN_DEPENDS+= faac:${PORTSDIR}/audio/faac
.endif
2012-05-30 11:27:09 +00:00
.if ${PORT_OPTIONS:MFLAC}
RUN_DEPENDS+= flac:${PORTSDIR}/audio/flac
.endif
2012-05-30 11:27:09 +00:00
.if ${PORT_OPTIONS:MLAME}
RUN_DEPENDS+= lame:${PORTSDIR}/audio/lame
.endif
2012-05-30 11:27:09 +00:00
.if ${PORT_OPTIONS:MVORBIS}
RUN_DEPENDS+= ogg123:${PORTSDIR}/audio/vorbis-tools
.endif
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
.else
CONFIGURE_ARGS+= --disable-nls
PLIST_SUB+= NLS="@comment "
.endif
pre-everything::
.if !defined(WITH_CDROM_DEVICE)
@${ECHO_MSG} "===> The default CDROM device is ${DEFAULT_CDROM_DEVICE}"
@${ECHO_MSG} "===> Define WITH_CDROM_DEVICE if you want to change the default"
@${ECHO_MSG} "===> For example, 'make WITH_CDROM_DEVICE=\"/dev/somedevice\"'"
.endif
post-patch:
@${REINPLACE_CMD} -e 's|/dev/cdrom|${DEFAULT_CDROM_DEVICE}|' \
${WRKSRC}/src/grip.c
@${REINPLACE_CMD} -e 's|{"xingmp3enc","-B %b -Q %w","mp3"},||; \
s|{"l3enc","-br %b %w %m","mp3"},|{"faac","--no-midside -w -q 100 --artist %a --album %d --track %t --title %n --year %y --genre %g -b %b %w -o %m", "m4a"},|' \
${WRKSRC}/src/gripcfg.c
2004-04-20 21:55:42 +00:00
.include <bsd.port.post.mk>