2000-07-10 05:09:55 +02:00
|
|
|
# New ports collection makefile for: grip
|
|
|
|
# Date created: 31 May 2000
|
|
|
|
# Whom: kbyanc@posi.net
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
2007-10-25 01:37:25 +02:00
|
|
|
# $MCom: ports/audio/grip/Makefile,v 1.4 2007/05/19 21:35:57 marcus Exp $
|
2000-07-10 05:09:55 +02:00
|
|
|
|
|
|
|
PORTNAME= grip
|
2010-04-17 22:27:06 +02:00
|
|
|
PORTVERSION= 3.3.1
|
2010-12-02 00:07:20 +01:00
|
|
|
PORTREVISION= 3
|
2000-07-10 05:09:55 +02:00
|
|
|
CATEGORIES= audio
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
MASTER_SITES= SF
|
2000-07-10 05:09:55 +02:00
|
|
|
|
2006-06-09 20:00:35 +02:00
|
|
|
MAINTAINER= multimedia@FreeBSD.org
|
2004-05-07 04:57:04 +02:00
|
|
|
COMMENT= GTK front-end to external cd rippers and audio encoders
|
2000-07-10 05:09:55 +02:00
|
|
|
|
2004-01-03 23:20:29 +01:00
|
|
|
LIB_DEPENDS= id3-3.8.3:${PORTSDIR}/audio/id3lib \
|
2010-04-03 12:44:36 +02:00
|
|
|
curl.6:${PORTSDIR}/ftp/curl
|
2002-03-14 07:56:08 +01:00
|
|
|
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
USE_XORG= x11
|
2011-08-11 21:20:17 +02:00
|
|
|
USE_GNOME= gnomehack gnomeprefix libgnomeui vte
|
2000-07-10 05:09:55 +02:00
|
|
|
USE_GMAKE= yes
|
2010-12-04 08:34:27 +01:00
|
|
|
USE_AUTOTOOLS= libtool
|
2003-11-05 22:46:31 +01:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
2000-10-23 21:51:17 +02:00
|
|
|
|
2004-05-03 02:34:26 +02:00
|
|
|
OPTIONS= CDPARANOIA "Ripper: Enable cdparanoia support" on \
|
2005-01-30 05:42:04 +01:00
|
|
|
CDDA2WAV "Ripper: cdda2wav: Install sysutils/cdrtools" off
|
|
|
|
.if defined(PACKAGE_BUILDING)
|
|
|
|
OPTIONS+= LAME "Encoder: lame: Install audio/lame" off \
|
|
|
|
VORBIS "Encoder: oggenc: Install audio/vorbis-tools" on
|
|
|
|
.else
|
|
|
|
OPTIONS+= LAME "Encoder: lame: Install audio/lame" on \
|
|
|
|
VORBIS "Encoder: oggenc: Install audio/vorbis-tools" off
|
|
|
|
.endif
|
2011-08-01 06:01:41 +02:00
|
|
|
OPTIONS+= FAAC "Encoder: faac: Install audio/faac" off \
|
2004-05-03 02:34:26 +02:00
|
|
|
FLAC "Encoder: flac: Install audio/flac" off \
|
2007-01-25 11:24:58 +01:00
|
|
|
GOGO "Encoder: gogo: Install audio/gogo" off
|
2004-04-20 23:45:10 +02:00
|
|
|
|
2004-04-20 23:55:42 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2004-05-03 02:34:26 +02:00
|
|
|
.if defined(WITH_CDROM_DEVICE)
|
|
|
|
DEFAULT_CDROM_DEVICE=${WITH_CDROM_DEVICE}
|
|
|
|
.else
|
|
|
|
DEFAULT_CDROM_DEVICE=/dev/acd0
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_CDPARANOIA)
|
2003-09-08 08:12:56 +02:00
|
|
|
LIB_DEPENDS+= cdda_paranoia.0:${PORTSDIR}/audio/cdparanoia
|
2004-04-21 00:09:46 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-cdpar
|
2004-05-03 02:34:26 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-cdpar
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_CDDA2WAV)
|
2007-01-31 15:07:59 +01:00
|
|
|
USE_CDRTOOLS= yes
|
2004-05-03 02:34:26 +02:00
|
|
|
.endif
|
|
|
|
|
2004-05-06 10:45:04 +02:00
|
|
|
.if defined(WITH_FAAC)
|
|
|
|
RUN_DEPENDS+= faac:${PORTSDIR}/audio/faac
|
|
|
|
.endif
|
|
|
|
|
2004-05-03 02:34:26 +02:00
|
|
|
.if defined(WITH_FLAC)
|
|
|
|
RUN_DEPENDS+= flac:${PORTSDIR}/audio/flac
|
2000-07-15 19:16:05 +02:00
|
|
|
.endif
|
2000-07-10 05:09:55 +02:00
|
|
|
|
2004-05-03 02:34:26 +02:00
|
|
|
.if defined(WITH_GOGO)
|
|
|
|
RUN_DEPENDS+= gogo:${PORTSDIR}/audio/gogo
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_LAME)
|
|
|
|
RUN_DEPENDS+= lame:${PORTSDIR}/audio/lame
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_VORBIS)
|
|
|
|
RUN_DEPENDS+= ogg123:${PORTSDIR}/audio/vorbis-tools
|
|
|
|
.endif
|
|
|
|
|
2010-04-17 22:27:06 +02:00
|
|
|
.if !defined(WITHOUT_NLS)
|
|
|
|
USE_GETTEXT= yes
|
|
|
|
PLIST_SUB+= NLS=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-nls
|
|
|
|
PLIST_SUB+= NLS="@comment "
|
|
|
|
.endif
|
|
|
|
|
2004-05-03 02:34:26 +02:00
|
|
|
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
|
2004-05-05 15:20:50 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|{"xingmp3enc","-B %b -Q %w","mp3"},||; \
|
2007-01-25 11:24:58 +01:00
|
|
|
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"},|' \
|
2004-05-05 15:20:50 +02:00
|
|
|
${WRKSRC}/src/gripcfg.c
|
2004-05-03 02:34:26 +02:00
|
|
|
|
2004-04-20 23:55:42 +02:00
|
|
|
.include <bsd.port.post.mk>
|