2012-10-26 08:33:41 +02:00
|
|
|
# Created by: kbyanc@posi.net
|
2000-07-10 05:09:55 +02:00
|
|
|
# $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
|
2013-07-11 18:26:26 +02:00
|
|
|
PORTREVISION= 6
|
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 \
|
2013-06-15 00:31:25 +02:00
|
|
|
curl:${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
|
2013-08-31 01:01:05 +02:00
|
|
|
USES= gmake pathfix pkgconfig
|
2013-04-23 01:19:08 +02:00
|
|
|
USE_GNOME= gnomeprefix libgnomeui vte
|
2010-12-04 08:34:27 +01:00
|
|
|
USE_AUTOTOOLS= libtool
|
2011-09-24 00:26:39 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2000-10-23 21:51:17 +02:00
|
|
|
|
2013-04-26 14:35:50 +02:00
|
|
|
OPTIONS_DEFINE= CDPARANOIA CDDA2WAV LAME VORBIS FAAC FLAC NLS
|
2012-05-30 13:27:09 +02:00
|
|
|
OPTIONS_DEFAULT= CDPARANOIA VORBIS
|
|
|
|
|
|
|
|
.if !defined(PACKAGE_BUILDING)
|
|
|
|
OPTIONS_DEFAULT+= LAME
|
2005-01-30 05:42:04 +01:00
|
|
|
.endif
|
2004-04-20 23:45:10 +02:00
|
|
|
|
2013-06-15 00:31:25 +02:00
|
|
|
OPTIONS_SUB= yes
|
|
|
|
|
|
|
|
CDPARANOIA_LIB_DEPENDS= cdda_paranoia:${PORTSDIR}/audio/cdparanoia
|
|
|
|
CDPARANOIA_CONFIGURE_ENABLE= cdpar
|
|
|
|
CDDA2WAV_RUN_DEPENDS= cdda2wav:${PORTSDIR}/sysutils/cdrtools
|
|
|
|
FAAC_RUN_DEPENDS= faac:${PORTSDIR}/audio/faac
|
|
|
|
FLAC_RUN_DEPENDS= flac:${PORTSDIR}/audio/flac
|
|
|
|
LAME_RUN_DEPENDS= lame:${PORTSDIR}/audio/lame
|
|
|
|
VORBIS_RUN_DEPENDS= ogg123:${PORTSDIR}/audio/vorbis-tools
|
|
|
|
NLS_USES= gettext
|
|
|
|
NLS_CONFIGURE_OFF= --disable-nls
|
2004-04-20 23:55:42 +02:00
|
|
|
|
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
|
|
|
|
|
|
|
|
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
|
|
|
|
2013-06-15 00:31:25 +02:00
|
|
|
.include <bsd.port.mk>
|