1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-30 01:15:52 +00:00
freebsd-ports/audio/grip/Makefile
Thomas Zander 548523f6ac Update to upstream version 3.7.0
Detailed log:
- Update audio/grip to 3.7.0
- Fix LICENSE
- Convert to USES=localbase
- Remove --disable-nls which does nothing
- Trim down the encoders list defined in src/gripcfg.c to those which we
  have ports for and fix a pre-existing offset problem that arose from
  removing one the encoders from the list. Specfically, the "xingmp3enc"
  encoder was removed, but ginfo->selected_encoder was not changed in
  src/grip.c. This caused the program to point to the flac encoder as the
  default instead of oggenc and overwrote the flac settings with the
  settings for oggenc.

PR:		227336
Submitted by:	jhale
Differential Revision:	https://reviews.freebsd.org/D14997
2018-04-07 12:32:26 +00:00

65 lines
1.6 KiB
Makefile

# Created by: kbyanc@posi.net
# $FreeBSD$
PORTNAME= grip
PORTVERSION= 3.7.0
CATEGORIES= audio
MASTER_SITES= SF/grip/${PORTVERSION}
MAINTAINER= multimedia@FreeBSD.org
COMMENT= GTK front-end to external cd rippers and audio encoders
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libcurl.so:ftp/curl \
libfontconfig.so:x11-fonts/fontconfig \
libfreetype.so:print/freetype2 \
libid3.so:audio/id3lib \
libpopt.so:devel/popt
USES= gmake libtool localbase pathfix pkgconfig
USE_XORG= ice sm x11 xext
USE_GNOME= cairo gdkpixbuf2 gnomeprefix libgnomeui vte
GNU_CONFIGURE= yes
CONFIGURE_ARGS+=--disable-werror
INSTALLS_ICONS= yes
OPTIONS_DEFINE= CDPARANOIA CDDA2WAV LAME VORBIS FAAC FLAC NLS
OPTIONS_DEFAULT= CDPARANOIA VORBIS
.if !defined(PACKAGE_BUILDING)
OPTIONS_DEFAULT+= LAME
.endif
OPTIONS_SUB= yes
CDPARANOIA_LIB_DEPENDS= libcdda_paranoia.so:audio/cdparanoia
CDPARANOIA_CONFIGURE_ENABLE= cdpar
CDDA2WAV_RUN_DEPENDS= cdda2wav:sysutils/cdrtools
FAAC_RUN_DEPENDS= faac:audio/faac
FLAC_RUN_DEPENDS= flac:audio/flac
LAME_RUN_DEPENDS= lame:audio/lame
VORBIS_RUN_DEPENDS= ogg123:audio/vorbis-tools
NLS_USES= gettext
.if defined(WITH_CDROM_DEVICE)
DEFAULT_CDROM_DEVICE=${WITH_CDROM_DEVICE}
.else
DEFAULT_CDROM_DEVICE=/dev/cd0
.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.mk>