Lines 6-14
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= streamripper |
8 |
PORTNAME= streamripper |
9 |
PORTVERSION= 1.62.3 |
9 |
PORTVERSION= 1.63.1 |
10 |
CATEGORIES= audio |
10 |
CATEGORIES= audio |
11 |
MASTER_SITES= SF |
11 |
MASTER_SITES= SF \ |
|
|
12 |
http://gd.tuwien.ac.at/hci/cdk/:cdk |
13 |
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:DEFAULT \ |
14 |
cdk-${CDK_VERSION}.tgz:cdk |
15 |
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} |
12 |
|
16 |
|
13 |
MAINTAINER= ports@FreeBSD.org |
17 |
MAINTAINER= ports@FreeBSD.org |
14 |
COMMENT= Splits SHOUTcast stream into tracks |
18 |
COMMENT= Splits SHOUTcast stream into tracks |
Lines 19-38
Link Here
|
19 |
OPTIONS= FAAD "Include FAAD mpeg4 codec support" on \ |
23 |
OPTIONS= FAAD "Include FAAD mpeg4 codec support" on \ |
20 |
VORBIS "Include Ogg Vorbis codec support" on |
24 |
VORBIS "Include Ogg Vorbis codec support" on |
21 |
|
25 |
|
22 |
USE_GNOME= gnometarget |
26 |
USE_GNOME= glib20 gnometarget |
23 |
USE_ICONV= yes |
27 |
USE_ICONV= yes |
24 |
|
|
|
25 |
GNU_CONFIGURE= yes |
28 |
GNU_CONFIGURE= yes |
26 |
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ |
29 |
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" |
27 |
LDFLAGS="-L${LOCALBASE}/lib" |
|
|
28 |
CONFIGURE_ARGS= --without-included-libmad \ |
30 |
CONFIGURE_ARGS= --without-included-libmad \ |
29 |
--without-included-tre \ |
31 |
--without-included-tre \ |
30 |
--with-included-argv |
32 |
--with-included-argv \ |
31 |
CFLAGS+= -DANSI_PROTOTYPES |
33 |
--with-included-cdk |
32 |
|
34 |
|
33 |
MAN1= streamripper.1 |
35 |
MAN1= streamripper.1 |
34 |
PLIST_FILES= bin/streamripper |
36 |
PLIST_FILES= bin/streamripper |
35 |
|
37 |
|
|
|
38 |
CFLAGS+= -DANSI_PROTOTYPES |
39 |
CPPFLAGS= -I${LOCALBASE}/include |
40 |
LDFLAGS= -Lcdk-${CDK_VERSION} -L${LOCALBASE}/lib |
41 |
|
42 |
CDK_VERSION= 5.0-20060507 |
43 |
|
36 |
.include <bsd.port.pre.mk> |
44 |
.include <bsd.port.pre.mk> |
37 |
|
45 |
|
38 |
.if defined(WITHOUT_FAAD) |
46 |
.if defined(WITHOUT_FAAD) |
Lines 47-56
Link Here
|
47 |
LIB_DEPENDS+= vorbis.4:${PORTSDIR}/audio/libvorbis |
55 |
LIB_DEPENDS+= vorbis.4:${PORTSDIR}/audio/libvorbis |
48 |
.endif |
56 |
.endif |
49 |
|
57 |
|
|
|
58 |
post-extract: |
59 |
@cd ${WRKSRC} && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} \ |
60 |
${DISTDIR}/cdk-${CDK_VERSION}.tgz ${EXTRACT_AFTER_ARGS} |
61 |
|
50 |
post-patch: |
62 |
post-patch: |
51 |
@${REINPLACE_CMD} -e '/if test/s|==|=|g ; \ |
63 |
@${REINPLACE_CMD} -e '/if test/s|==|=|g ; \ |
52 |
s|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure |
64 |
s|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure |
53 |
|
65 |
|
|
|
66 |
pre-configure: |
67 |
@cd ${WRKSRC}/cdk-${CDK_VERSION} && ${SETENV} CC="${CC}" \ |
68 |
CFLAGS="${CFLAGS}" ${SH} ./configure |
69 |
|
70 |
pre-build: |
71 |
@cd ${WRKSRC}/cdk-${CDK_VERSION} && ${SETENV} ${MAKE_ENV} \ |
72 |
${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${ALL_TARGET} |
73 |
|
54 |
do-install: |
74 |
do-install: |
55 |
${INSTALL_PROGRAM} ${WRKSRC}/streamripper ${PREFIX}/bin |
75 |
${INSTALL_PROGRAM} ${WRKSRC}/streamripper ${PREFIX}/bin |
56 |
${INSTALL_MAN} ${WRKSRC}/streamripper.1 ${MANPREFIX}/man/man1 |
76 |
${INSTALL_MAN} ${WRKSRC}/streamripper.1 ${MANPREFIX}/man/man1 |