2012-10-26 06:33:41 +00:00
|
|
|
# Created by: kbyanc@posi.net
|
2000-07-10 03:09:55 +00:00
|
|
|
# $FreeBSD$
|
2007-10-24 23:37:25 +00:00
|
|
|
# $MCom: ports/audio/grip/Makefile,v 1.4 2007/05/19 21:35:57 marcus Exp $
|
2000-07-10 03:09:55 +00:00
|
|
|
|
|
|
|
PORTNAME= grip
|
2010-04-17 20:27:06 +00:00
|
|
|
PORTVERSION= 3.3.1
|
2014-05-06 06:57:28 +00:00
|
|
|
PORTREVISION= 7
|
2000-07-10 03:09:55 +00: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 17:56:05 +00:00
|
|
|
MASTER_SITES= SF
|
2000-07-10 03:09:55 +00:00
|
|
|
|
2006-06-09 18:00:35 +00:00
|
|
|
MAINTAINER= multimedia@FreeBSD.org
|
2004-05-07 02:57:04 +00:00
|
|
|
COMMENT= GTK front-end to external cd rippers and audio encoders
|
2000-07-10 03:09:55 +00:00
|
|
|
|
2014-03-01 18:20:15 +00:00
|
|
|
LIB_DEPENDS= libid3.so:${PORTSDIR}/audio/id3lib \
|
2013-10-04 19:40:05 +00:00
|
|
|
libcurl.so:${PORTSDIR}/ftp/curl
|
2002-03-14 06:56:08 +00: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 17:56:05 +00:00
|
|
|
USE_XORG= x11
|
2014-05-06 06:57:28 +00:00
|
|
|
USES= gmake libtool pathfix pkgconfig
|
2013-04-22 23:19:08 +00:00
|
|
|
USE_GNOME= gnomeprefix libgnomeui vte
|
2014-05-06 06:57:28 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2011-09-23 22:26:39 +00:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2000-10-23 19:51:17 +00:00
|
|
|
|
2013-04-26 12:35:50 +00:00
|
|
|
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
|
2005-01-30 04:42:04 +00:00
|
|
|
.endif
|
2004-04-20 21:45:10 +00:00
|
|
|
|
2013-06-14 22:31:25 +00:00
|
|
|
OPTIONS_SUB= yes
|
|
|
|
|
2013-10-04 19:40:05 +00:00
|
|
|
CDPARANOIA_LIB_DEPENDS= libcdda_paranoia.so:${PORTSDIR}/audio/cdparanoia
|
2013-06-14 22:31:25 +00:00
|
|
|
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 21:55:42 +00:00
|
|
|
|
2004-05-03 00:34:26 +00: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 13:20:50 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|{"xingmp3enc","-B %b -Q %w","mp3"},||; \
|
2007-01-25 10:24:58 +00: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 13:20:50 +00:00
|
|
|
${WRKSRC}/src/gripcfg.c
|
2004-05-03 00:34:26 +00:00
|
|
|
|
2013-06-14 22:31:25 +00:00
|
|
|
.include <bsd.port.mk>
|