View | Details | Raw Unified | Return to bug 63403
Collapse All | Expand All

(-)/root/squash/Makefile (-15 / +8 lines)
Lines 5-19 Link Here
5
# $FreeBSD: ports/audio/squash/Makefile,v 1.6 2004/02/04 05:18:39 marcus Exp $
5
# $FreeBSD: ports/audio/squash/Makefile,v 1.6 2004/02/04 05:18:39 marcus Exp $
6
6
7
PORTNAME=		squash
7
PORTNAME=		squash
8
PORTVERSION=		1.0.p1
8
PORTVERSION=		1.0
9
PORTREVISION=		4
10
CATEGORIES=		audio
9
CATEGORIES=		audio
11
MASTER_SITES=		${MASTER_SITE_SAVANNAH} \
10
MASTER_SITES=		${MASTER_SITE_SAVANNAH}
12
       			${MASTER_SITE_LOCAL:S/$/:local/}
11
MASTER_SITE_SUBDIR=	${PORTNAME}
13
MASTER_SITE_SUBDIR=	${PORTNAME} \
14
			pav/:local
15
DISTNAME=		squash-1.0pre1
16
DISTFILES=		${DISTNAME}${EXTRACT_SUFX}:DEFAULT,local
17
12
18
MAINTAINER=	matthias.andree@gmx.de
13
MAINTAINER=	matthias.andree@gmx.de
19
COMMENT=	Learning console-based MP3/OGG player
14
COMMENT=	Learning console-based MP3/OGG player
Lines 26-48 Link Here
26
		ao.3:${PORTSDIR}/audio/libao
21
		ao.3:${PORTSDIR}/audio/libao
27
RUN_DEPENDS=	id3v2:${PORTSDIR}/audio/id3v2
22
RUN_DEPENDS=	id3v2:${PORTSDIR}/audio/id3v2
28
23
29
PKGMESSAGE=	${WRKDIR}/pkg-message
30
USE_BZIP2=	yes
24
USE_BZIP2=	yes
31
USE_GMAKE=	yes
25
USE_GMAKE=	yes
32
USE_REINPLACE=	yes
26
USE_REINPLACE=	yes
33
USE_RUBY=	yes
27
USE_RUBY=	yes
28
.if !defined(NOPORTDOCS)
29
PORTDOCS=	*
30
.endif
34
31
35
.include <bsd.port.pre.mk>
32
.include <bsd.port.pre.mk>
36
33
37
post-patch:
34
post-patch:
38
	@${REINPLACE_CMD} -e "s|--std=gnu99|${CFLAGS} ${PTHREAD_CFLAGS}|; \
35
	@${REINPLACE_CMD} -e "s|--std=gnu99|--std=gnu99 ${CFLAGS} ${PTHREAD_CFLAGS}|; \
39
		s|-Iinclude|-Iinclude -I${LOCALBASE}/include|; \
36
		s|-Iinclude|-Iinclude -I${LOCALBASE}/include|; \
40
		s|-lpthread|${PTHREAD_LIBS}|; s|-ldl|-L${LOCALBASE}/lib|" ${WRKSRC}/Makefile
37
		s|-lpthread|${PTHREAD_LIBS}|; s|-ldl|-L${LOCALBASE}/lib|" ${WRKSRC}/Makefile
41
	@${REINPLACE_CMD} -e "s,/usr/bin/ruby,${RUBY}," \
38
	@${REINPLACE_CMD} -e "s,/usr/bin/ruby,${RUBY}," \
42
		${WRKSRC}/extra/*.rb
39
		${WRKSRC}/extra/*.rb
43
	@${REINPLACE_CMD} -e "s,/etc/squash.conf,${PREFIX}/etc/squash.conf," \
40
	@${REINPLACE_CMD} -e "s,/etc/squash.conf,${PREFIX}/etc/squash.conf," \
44
		${WRKSRC}/src/global.c
41
		${WRKSRC}/src/global.c
45
	@${SED} "s,%%DD%%,${DOCSDIR}," ${FILESDIR}/pkg-message.in > ${PKGMESSAGE}
46
42
47
do-install:
43
do-install:
48
	${MKDIR} ${PREFIX}/bin
44
	${MKDIR} ${PREFIX}/bin
Lines 51-66 Link Here
51
	${INSTALL_SCRIPT} ${WRKSRC}/extra/${FILE}.rb ${PREFIX}/bin
47
	${INSTALL_SCRIPT} ${WRKSRC}/extra/${FILE}.rb ${PREFIX}/bin
52
.endfor
48
.endfor
53
	${INSTALL_DATA} ${WRKSRC}/extra/musicdb_lib.rb ${RUBY_SITELIBDIR}
49
	${INSTALL_DATA} ${WRKSRC}/extra/musicdb_lib.rb ${RUBY_SITELIBDIR}
54
	${INSTALL_DATA} ${WRKSRC}/extra/squash.conf ${PREFIX}/etc
50
	${INSTALL_DATA} ${WRKSRC}/extra/squash.conf ${PREFIX}/etc/squash.conf.dist
55
.if !defined(NOPORTDOCS)
51
.if !defined(NOPORTDOCS)
56
	${MKDIR} ${DOCSDIR}
52
	${MKDIR} ${DOCSDIR}
57
.for i in README doc/FEATURES doc/LOCKS doc/INSTALL doc/USERS_GUIDE
53
.for i in README doc/FEATURES doc/LOCKS doc/INSTALL doc/USERS_GUIDE
58
	${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
54
	${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
59
.endfor
55
.endfor
60
.endif
56
.endif
61
62
post-install:
63
	@${CAT} ${PKGMESSAGE}
64
57
65
.if ${OSVERSION} < 501100
58
.if ${OSVERSION} < 501100
66
59
(-)/root/squash/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
$FreeBSD: ports/audio/squash/distinfo,v 1.1 2003/11/22 22:32:00 pav Exp $
1
MD5 (squash-1.0.tar.bz2) = 8db5cb7686a1b80ffc1b49421fd15b6f
2
MD5 (squash-1.0pre1.tar.bz2) = 017b935067e6f01058af76ad595ccae1
2
SIZE (squash-1.0.tar.bz2) = 84366
(-)/root/squash/files/patch-FIXLOCK-src_global_squash.c (+10 lines)
Line 0 Link Here
1
--- ./src/global_squash.c~	Fri Dec  5 21:23:51 2003
2
+++ ./src/global_squash.c	Thu Feb 26 18:57:02 2004
3
@@ -143,7 +143,6 @@
4
             playlist_queue_song( song, state_info.raw_songs[state_info.current_song].position );
5
         }
6
         state_info.current_song++;
7
-        squash_unlock(state_info.lock);
8
         squash_wunlock(database_info.lock);
9
         squash_unlock(song_queue.lock);
10
         squash_unlock(state_info.lock);
(-)/root/squash/files/pkg-message.in (-4 lines)
Lines 1-4 Link Here
1
---------------------------------------------------------------------------
2
NOTE: You MUST configure squash and run a script before you can use squash.
3
Please see %%DD%%/INSTALL for details.
4
---------------------------------------------------------------------------
(-)/root/squash/pkg-plist (-7 / +1 lines)
Lines 5-15 Link Here
5
bin/joystick.rb
5
bin/joystick.rb
6
bin/squash
6
bin/squash
7
bin/uncollect_info.rb
7
bin/uncollect_info.rb
8
etc/squash.conf
8
etc/squash.conf.dist
9
%%RUBY_SITELIBDIR%%/musicdb_lib.rb
9
%%RUBY_SITELIBDIR%%/musicdb_lib.rb
10
%%DOCSDIR%%/FEATURES
11
%%DOCSDIR%%/INSTALL
12
%%DOCSDIR%%/LOCKS
13
%%DOCSDIR%%/README
14
%%DOCSDIR%%/USERS_GUIDE
15
@dirrm %%DOCSDIR%%

Return to bug 63403