2013-01-27 06:55:20 +01:00
|
|
|
# Created by: trevor
|
2000-06-05 00:42:15 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= streamripper
|
2009-08-31 01:40:10 +02:00
|
|
|
PORTVERSION= 1.64.6
|
2014-02-05 16:53:18 +01:00
|
|
|
PORTREVISION= 4
|
2000-06-05 00:42:15 +02:00
|
|
|
CATEGORIES= audio
|
2009-08-22 02:13:26 +02:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}%20%28current%29/${PORTVERSION} \
|
2008-05-16 16:10:44 +02:00
|
|
|
http://gd.tuwien.ac.at/hci/cdk/:cdk
|
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:DEFAULT \
|
|
|
|
cdk-${CDK_VERSION}.tgz:cdk
|
2000-06-05 00:42:15 +02:00
|
|
|
|
2014-05-30 19:48:24 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-03-01 15:34:33 +01:00
|
|
|
COMMENT= Splits SHOUTcast stream into tracks
|
2000-06-05 00:42:15 +02:00
|
|
|
|
2014-05-30 19:48:24 +02:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2013-12-11 15:35:36 +01:00
|
|
|
LIB_DEPENDS= libmad.so:${PORTSDIR}/audio/libmad \
|
|
|
|
libtre.so:${PORTSDIR}/textproc/libtre
|
2006-02-13 13:12:30 +01:00
|
|
|
|
2013-03-21 18:32:34 +01:00
|
|
|
OPTIONS_DEFINE= FAAD VORBIS
|
2014-05-30 19:48:24 +02:00
|
|
|
OPTIONS_DEFAULT=FAAD VORBIS
|
2011-05-19 20:25:58 +02:00
|
|
|
|
2013-07-08 13:51:37 +02:00
|
|
|
USES= iconv pkgconfig
|
2011-08-11 21:20:17 +02:00
|
|
|
USE_GNOME= glib20
|
2007-09-20 23:14:24 +02:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS= --without-included-libmad \
|
|
|
|
--without-included-tre \
|
2008-05-16 16:10:44 +02:00
|
|
|
--with-included-argv \
|
|
|
|
--with-included-cdk
|
2007-09-20 23:14:24 +02:00
|
|
|
|
2014-02-17 11:00:36 +01:00
|
|
|
PLIST_FILES= bin/streamripper \
|
|
|
|
man/man1/streamripper.1.gz
|
2006-02-13 13:12:30 +01:00
|
|
|
|
2008-05-16 16:10:44 +02:00
|
|
|
CFLAGS+= -DANSI_PROTOTYPES
|
2011-09-24 00:26:39 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -Lcdk-${CDK_VERSION} -L${LOCALBASE}/lib
|
2008-05-16 16:10:44 +02:00
|
|
|
|
|
|
|
CDK_VERSION= 5.0-20060507
|
|
|
|
|
2013-03-21 18:32:34 +01:00
|
|
|
.include <bsd.port.options.mk>
|
2006-02-13 13:12:30 +01:00
|
|
|
|
2013-03-21 18:32:34 +01:00
|
|
|
.if ! ${PORT_OPTIONS:MFAAD}
|
2014-05-30 19:48:24 +02:00
|
|
|
CONFIGURE_ARGS+=ac_cv_lib_faad_NeAACDecDecode2=no
|
2007-09-20 23:14:24 +02:00
|
|
|
.else
|
2013-12-11 15:35:36 +01:00
|
|
|
LIB_DEPENDS+= libfaad.so:${PORTSDIR}/audio/faad
|
2006-02-13 13:12:30 +01:00
|
|
|
.endif
|
2005-01-18 14:02:25 +01:00
|
|
|
|
2013-03-21 18:32:34 +01:00
|
|
|
.if ! ${PORT_OPTIONS:MVORBIS}
|
2014-05-30 19:48:24 +02:00
|
|
|
CONFIGURE_ARGS+=--without-ogg
|
2007-09-20 23:14:24 +02:00
|
|
|
.else
|
2013-12-11 15:35:36 +01:00
|
|
|
LIB_DEPENDS+= libvorbis.so:${PORTSDIR}/audio/libvorbis
|
2007-09-20 23:14:24 +02:00
|
|
|
.endif
|
2005-01-18 11:58:51 +01:00
|
|
|
|
2008-05-16 16:10:44 +02:00
|
|
|
post-extract:
|
2014-05-30 19:48:24 +02:00
|
|
|
${MV} ${WRKDIR}/cdk-${CDK_VERSION} ${WRKSRC}
|
2008-05-16 16:10:44 +02:00
|
|
|
|
2007-09-20 23:14:24 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e '/if test/s|==|=|g ; \
|
|
|
|
s|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
|
2000-06-05 00:42:15 +02:00
|
|
|
|
2008-05-16 16:10:44 +02:00
|
|
|
pre-configure:
|
|
|
|
@cd ${WRKSRC}/cdk-${CDK_VERSION} && ${SETENV} CC="${CC}" \
|
|
|
|
CFLAGS="${CFLAGS}" ${SH} ./configure
|
|
|
|
|
|
|
|
pre-build:
|
|
|
|
@cd ${WRKSRC}/cdk-${CDK_VERSION} && ${SETENV} ${MAKE_ENV} \
|
|
|
|
${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${ALL_TARGET}
|
|
|
|
|
2007-09-20 23:14:24 +02:00
|
|
|
do-install:
|
2014-02-17 11:00:36 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/streamripper ${STAGEDIR}${PREFIX}/bin
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/streamripper.1 ${STAGEDIR}${MANPREFIX}/man/man1
|
2006-02-13 13:12:30 +01:00
|
|
|
|
2013-03-21 18:32:34 +01:00
|
|
|
.include <bsd.port.mk>
|