aboutsummaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2004-05-03 08:34:26 +0800
committerpav <pav@FreeBSD.org>2004-05-03 08:34:26 +0800
commit2e28c5220a9903e1f9d69afc4f1944a2800886fb (patch)
tree32e36db622d7699b3f46171ebba2c4de39f5bf81 /audio
parent34d5063bdb277e63158c15b76a3a76401225a25a (diff)
downloadfreebsd-ports-gnome-2e28c5220a9903e1f9d69afc4f1944a2800886fb.tar.gz
freebsd-ports-gnome-2e28c5220a9903e1f9d69afc4f1944a2800886fb.tar.zst
freebsd-ports-gnome-2e28c5220a9903e1f9d69afc4f1944a2800886fb.zip
- Update to 3.2.0
- Add more OPTIONS for encoders - Autodetect CD-ROM device - Pass maintainership on submitter PR: ports/66040 Submitted by: michael johnson <ahze@ahze.net>
Diffstat (limited to 'audio')
-rw-r--r--audio/grip/Makefile67
-rw-r--r--audio/grip/distinfo4
2 files changed, 64 insertions, 7 deletions
diff --git a/audio/grip/Makefile b/audio/grip/Makefile
index 6e6cf623026e..858e8003a96f 100644
--- a/audio/grip/Makefile
+++ b/audio/grip/Makefile
@@ -6,12 +6,12 @@
#
PORTNAME= grip
-PORTVERSION= 3.1.10
+PORTVERSION= 3.2.0
CATEGORIES= audio
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= ahze@ahze.net
COMMENT= GTK front-end to external cd rippers and mp3 encoders
LIB_DEPENDS= id3-3.8.3:${PORTSDIR}/audio/id3lib \
@@ -21,17 +21,74 @@ USE_X_PREFIX= yes
USE_GNOME= gnomehack gnomeprefix gnometarget libgnomeui vte
USE_GMAKE= yes
GNU_CONFIGURE= yes
+USE_REINPLACE= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
-CONFIGURE_ARGS+= --disable-cdpar
-OPTIONS= CDPARANOIA "Enable cdparanoia support" off
+OPTIONS= CDPARANOIA "Ripper: Enable cdparanoia support" on \
+ CDDA2WAV "Ripper: cdda2wav: Install sysutils/cdrtools" off \
+ LAME "Encoder: lame: Install audio/lame" on \
+ BLADEENC "Encoder: bladeenc: Install audio/bladeenc" off \
+ FLAC "Encoder: flac: Install audio/flac" off \
+ GOGO "Encoder: gogo: Install audio/gogo" off \
+ VORBIS "Encoder: oggenc: Install audio/vorbis-tools" off
.include <bsd.port.pre.mk>
-.if defined(WITH_CDPARANOIA)
+.if defined(WITH_CDROM_DEVICE)
+DEFAULT_CDROM_DEVICE=${WITH_CDROM_DEVICE}
+.else
+.if ${OSVERSION} < 500000
+DEFAULT_CDROM_DEVICE=/dev/acd0c
+.else
+DEFAULT_CDROM_DEVICE=/dev/acd0
+.endif
+.endif
+
+.if !defined(WITHOUT_CDPARANOIA)
LIB_DEPENDS+= cdda_paranoia.0:${PORTSDIR}/audio/cdparanoia
CONFIGURE_ARGS+= --enable-cdpar
+.else
+CONFIGURE_ARGS+= --disable-cdpar
+.endif
+
+.if defined(WITH_CDDA2WAV)
+RUN_DEPENDS+= cdda2wav:${PORTSDIR}/sysutils/cdrtools
+.endif
+
+.if defined(WITH_BLADEENC)
+RUN_DEPENDS+= bladeenc:${PORTSDIR}/audio/bladeenc
+.endif
+
+.if defined(WITH_FLAC)
+RUN_DEPENDS+= flac:${PORTSDIR}/audio/flac
.endif
+.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_BLADEENC)
+RUN_DEPENDS+= bladeenc:${PORTSDIR}/audio/bladeenc
+.endif
+
+.if defined(WITH_VORBIS)
+RUN_DEPENDS+= ogg123:${PORTSDIR}/audio/vorbis-tools
+.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
+
.include <bsd.port.post.mk>
diff --git a/audio/grip/distinfo b/audio/grip/distinfo
index 256f1c70df80..cd7513a846a3 100644
--- a/audio/grip/distinfo
+++ b/audio/grip/distinfo
@@ -1,2 +1,2 @@
-MD5 (grip-3.1.10.tar.gz) = d38c119bec6fbede18029ab654ddb197
-SIZE (grip-3.1.10.tar.gz) = 721984
+MD5 (grip-3.2.0.tar.gz) = 9b51933a03dd7d7ddfbb3643fc82c2d0
+SIZE (grip-3.2.0.tar.gz) = 722039