60945f0277
the 32 ports that still use it. Bump PORTREVISION on their dependent ports except the ones that depend on these: audio/libogg audio/libvorbis devel/pcre ftp/curl graphics/jpeg graphics/libart_lgpl graphics/tiff textproc/expat2 textproc/libxslt In these cases the same trick as in the recent gettext update is used. The ports install a symlink with the old library version. When enough of their dependent ports have had regular updates the remaining ones can get a PORTREVISION bump and the links can be removed. Also remove the devel/pcre dependency from USE_GNOME=glib20. It causes over 2200 packages to depend on devel/pcre while less than 200 actually link with it. The glib20 package still depends on devel/pcre so this should not make a difference for ports with USE_GNOME=glib20. Also, libdata/pkgconfig/glib-2.0.pc lists pcre as a private library so USE_GNOME=glib20 should not propagate it. PR: 195724 Exp-run by: antoine Approved by: portmgr (antoine)
74 lines
1.8 KiB
Makefile
74 lines
1.8 KiB
Makefile
# Created by: trevor
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= streamripper
|
|
PORTVERSION= 1.64.6
|
|
PORTREVISION= 5
|
|
CATEGORIES= audio
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}%20%28current%29/${PORTVERSION} \
|
|
http://gd.tuwien.ac.at/hci/cdk/:cdk
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:DEFAULT \
|
|
cdk-${CDK_VERSION}.tgz:cdk
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Splits SHOUTcast stream into tracks
|
|
|
|
LICENSE= GPLv2
|
|
|
|
LIB_DEPENDS= libmad.so:${PORTSDIR}/audio/libmad \
|
|
libtre.so:${PORTSDIR}/textproc/libtre
|
|
|
|
OPTIONS_DEFINE= FAAD VORBIS
|
|
OPTIONS_DEFAULT=FAAD VORBIS
|
|
|
|
USES= iconv pkgconfig
|
|
USE_GNOME= glib20
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --without-included-libmad \
|
|
--without-included-tre \
|
|
--with-included-argv \
|
|
--with-included-cdk
|
|
|
|
PLIST_FILES= bin/streamripper \
|
|
man/man1/streamripper.1.gz
|
|
|
|
CFLAGS+= -DANSI_PROTOTYPES
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -Lcdk-${CDK_VERSION} -L${LOCALBASE}/lib
|
|
|
|
CDK_VERSION= 5.0-20060507
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ! ${PORT_OPTIONS:MFAAD}
|
|
CONFIGURE_ARGS+=ac_cv_lib_faad_NeAACDecDecode2=no
|
|
.else
|
|
LIB_DEPENDS+= libfaad.so:${PORTSDIR}/audio/faad
|
|
.endif
|
|
|
|
.if ! ${PORT_OPTIONS:MVORBIS}
|
|
CONFIGURE_ARGS+=--without-ogg
|
|
.else
|
|
LIB_DEPENDS+= libvorbis.so:${PORTSDIR}/audio/libvorbis
|
|
.endif
|
|
|
|
post-extract:
|
|
${MV} ${WRKDIR}/cdk-${CDK_VERSION} ${WRKSRC}
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e '/if test/s|==|=|g ; \
|
|
s|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
|
|
|
|
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}
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/streamripper ${STAGEDIR}${PREFIX}/bin
|
|
${INSTALL_MAN} ${WRKSRC}/streamripper.1 ${STAGEDIR}${MANPREFIX}/man/man1
|
|
|
|
.include <bsd.port.mk>
|