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

(-)Makefile (-27 / +59 lines)
Lines 6-54 Link Here
6
#
6
#
7
7
8
PORTNAME=	mod_musicindex
8
PORTNAME=	mod_musicindex
9
PORTVERSION=	0.99.7
9
PORTVERSION=	1.2.0
10
PORTREVISION=	4
11
CATEGORIES=	www audio
10
CATEGORIES=	www audio
12
# Master site doesn't have a current version'd tarball...
11
MASTER_SITES=	http://www.parisc-linux.org/~varenet/musicindex/ \
13
#MASTER_SITES=	http://www.parisc-linux.org/~varenet/musicindex/
12
		http://depot.fsck.ch/mirror/distfiles/
14
MASTER_SITES=	http://depot.fsck.ch/mirror/distfiles/
15
DISTNAME=	libapache-mod-musicindex_${PORTVERSION}
16
13
17
MAINTAINER=	ports@fsck.ch
14
MAINTAINER=	ports@fsck.ch
18
COMMENT=	Apache module in C that implements the perl module Apache::MP3
15
COMMENT=	Apache module that allows downloading and streaming of audio
19
16
20
LIB_DEPENDS=	vorbis.4:${PORTSDIR}/audio/libvorbis \
17
OPTIONS=	NLS "Native language support" on \
21
		id3tag.0:${PORTSDIR}/audio/libid3tag \
18
		FLAC "FLAC support" off \
22
		mad.2:${PORTSDIR}/audio/libmad \
19
		MP3 "MP3 support" on \
23
		FLAC.7:${PORTSDIR}/audio/flac
20
		MP4 "MP4 support" off \
24
21
		VORBIS "Ogg/Vorbis support" off \
25
CPPFLAGS=	-DHAS_MP3 -DHAS_OGG -DHAS_FLAC
22
		LIBARCHIVE "Archive downloading support" on \
26
CFLAGS+=	-I${LOCALBASE}/include
23
		FILECACHE"Caching support" on
27
24
28
#WANT_APACHE=	YES
25
USE_APACHE=	YES
29
USE_GMAKE=	yes
26
AP_GENPLIST=	YES
30
WRKSRC=		${WRKDIR}/libapache-mod-musicindex-${PORTVERSION}
27
GNU_CONFIGURE=	yes
28
CONFIGURE_ENV=	CPPFLAGS=-I${LOCALBASE}/include LDFLAGS=-L${LOCALBASE}/lib
29
CONFIGURE_ARGS+=	--with-apxs=${APXS}
30
PORTDOCS=	README
31
SUB_FILES=	pkg-message
31
SUB_FILES=	pkg-message
32
SUB_LIST=	PORTNAME=${PORTNAME}
32
33
33
.include <bsd.port.pre.mk>
34
.if defined(WITHOUT_NLS)
34
.include "${PORTSDIR}/www/apache20/Makefile.modules.3rd"
35
CONFIGURE_ARGS+=	--disable-nls
36
PLIST_SUB+=	NLS="@comment "
37
.else
38
USE_GETTEXT=	yes
39
CFLAGS+=	-lintl
40
PLIST_SUB+=	NLS=""
41
.endif
42
43
.if defined(WITHOUT_FLAC)
44
CONFIGURE_ARGS+=	--disable-flac
45
.else
46
LIB_DEPENDS+=	FLAC:${PORTSDIR}/audio/flac
47
.endif
48
49
.if defined(WITHOUT_MP3)
50
CONFIGURE_ARGS+=--disable-mp3
51
.else
52
LIB_DEPENDS+=	id3tag:${PORTSDIR}/audio/libid3tag \
53
		mad:${PORTSDIR}/audio/libmad
54
.endif
35
55
36
MAKE_ENV+=	APXS=${APXS} CPPFLAGS="${CPPFLAGS}" LDFLAGS="-L${LOCALBASE}/lib"
56
.if defined(WITHOUT_MP4)
57
CONFIGURE_ARGS+=	--disable-mp4
58
.else
59
LIB_DEPENDS+=	mp4v2:${PORTSDIR}/multimedia/mpeg4ip-libmp4v2
60
.endif
37
61
38
.if "${AP_VER}"=="2"
62
.if defined(WITHOUT_VORBIS)
39
MAKE_ENV+=	APACHE_VERSION=2 APRCONFIG=${LOCALBASE}/lib/apache2/apr-config
63
CONFIGURE_ARGS+=	--disable-vorbis
40
.if "ARCH" = "amd64"
64
.else
41
CFLAGS+=	-fPIC
65
LIB_DEPENDS+=	vorbis:${PORTSDIR}/audio/libvorbis
42
.endif
66
.endif
67
68
.if defined(WITHOUT_LIBARCHIVE)
69
CONFIGURE_ARGS+=	--disable-archive
70
.endif
71
72
.if defined(WITHOUT_FILECACHE)
73
CONFIGURE_ARGS+=	--disable-filecache
43
.endif
74
.endif
44
75
45
post-install:
76
post-install:
46
.if !defined(NOPORTDOCS)
77
.if !defined(NOPORTDOCS)
47
	@${MKDIR} ${DOCSDIR}
78
	@${MKDIR} ${DOCSDIR}
48
	@${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
79
	@${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${DOCSDIR}
49
.endif
80
.endif
81
50
	@${ECHO_MSG} ""
82
	@${ECHO_MSG} ""
51
	@${CAT} ${PKGMESSAGE}
83
	@${CAT} ${PKGMESSAGE}
52
	@${ECHO_MSG} ""
84
	@${ECHO_MSG} ""
53
85
54
.include <bsd.port.post.mk>
86
.include <bsd.port.mk>
(-)distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
MD5 (libapache-mod-musicindex_0.99.7.tar.gz) = 98a146ee25786152ad756c41ff580e94
1
MD5 (mod_musicindex-1.2.0.tar.gz) = a490703e50be29e271c5a28a4414fce5
2
SHA256 (libapache-mod-musicindex_0.99.7.tar.gz) = 64e23ec204da2125521b177ee412b784ffa8f7c73609da3bbe77ca83da85d041
2
SHA256 (mod_musicindex-1.2.0.tar.gz) = 1b49abffe74a9a39bef57f0767cc2fad9b4e339565dd1ebc0de59f5bd68a531b
3
SIZE (libapache-mod-musicindex_0.99.7.tar.gz) = 81771
3
SIZE (mod_musicindex-1.2.0.tar.gz) = 468706
(-)pkg-descr (-1 / +1 lines)
Lines 1-6 Link Here
1
mod_musicindex is an Apache module aimed at being a C implementation of 
1
mod_musicindex is an Apache module aimed at being a C implementation of 
2
the Perl module Apache::MP3. It allows nice displaying of directories 
2
the Perl module Apache::MP3. It allows nice displaying of directories 
3
containing MP3 or Ogg Vorbis files, including sorting them on various 
3
containing several kinds of audio files, including sorting them on various 
4
fields, streaming/downloading them, constructing playlists, and searching.
4
fields, streaming/downloading them, constructing playlists, and searching.
5
5
6
WWW: http://www.parisc-linux.org/~varenet/musicindex/
6
WWW: http://www.parisc-linux.org/~varenet/musicindex/
(-)pkg-plist (-12 / +12 lines)
Lines 1-12 Link Here
1
%%APACHEMODDIR%%/mod_musicindex.so
1
%%DATADIR%%/musicindex.css
2
@exec %D/sbin/apxs -e -A -n musicindex %D/%F
2
%%DATADIR%%/directory.png
3
@unexec %D/sbin/apxs -e -A -n musicindex %D/%F
3
%%DATADIR%%/fetch.png
4
www/musicindex/directory.png
4
%%DATADIR%%/general.png
5
www/musicindex/fetch.png
5
%%DATADIR%%/right_arrow.gif
6
www/musicindex/general.png
6
%%DATADIR%%/sound.png
7
www/musicindex/musicindex.css
7
%%DATADIR%%/shuffle.png
8
www/musicindex/right_arrow.gif
8
%%DATADIR%%/rss.png
9
www/musicindex/sound.png
9
%%DATADIR%%/fetchok.png
10
%%PORTDOCS%%%%DOCSDIR%%/README
10
%%DATADIR%%/soundok.png
11
@dirrm www/musicindex
11
%%NLS%%share/locale/fr/LC_MESSAGES/mod_musicindex.mo
12
%%PORTDOCS%%@dirrm %%DOCSDIR%%
12
%%NLS%%share/locale/it/LC_MESSAGES/mod_musicindex.mo
(-)files/patch-Makefile (-50 lines)
Removed Link Here
1
--- Makefile.orig	Wed Sep 15 18:34:27 2004
2
+++ Makefile	Sat Jan 22 14:58:01 2005
3
@@ -8,21 +8,16 @@
4
 ##  @todo autoconf/automake (i18n/apache2)
5
 
6
 #   the tools
7
-CC = gcc
8
-INSTALL = install
9
+CC ?= gcc
10
+INSTALL ?= install
11
 
12
 ifeq ($(APACHE_VERSION),2)
13
-APXS = apxs2
14
-APACHECTL = apache2ctl
15
-APRCONFIG = apr-config
16
 APINCDIR = $(shell $(APRCONFIG) --includes)
17
 APCFLAGS = $(shell $(APRCONFIG) --cflags | sed -e "s/-g //" -e "s/-O.//" -e "s/-W[a-z]*//")
18
 APCPPFLAGS = $(shell $(APRCONFIG) --cppflags)
19
 #APLIBXDIR = $(shell $(APRCONFIG) --installbuilddir)
20
 APLIBXDIR = $(shell $(APXS) -q LIBEXECDIR)
21
 else
22
-APXS = apxs
23
-APACHECTL = apachectl
24
 APCFLAGS = $(shell $(APXS) -q CFLAGS_SHLIB | sed -e "s/-g //" -e "s/-O.//" -e "s/-W[a-z]*//")
25
 APLIBXDIR = $(shell $(APXS) -q LIBEXECDIR)
26
 endif
27
@@ -31,11 +26,11 @@
28
 # debian doesn't have some libs (faad2 for instance...)
29
 DEBCPPFLAGS = -DHAS_MP3 -DHAS_OGG -DHAS_FLAC
30
 # in all cases:
31
-CPPFLAGS = -DHAS_MP3 -DHAS_OGG -DHAS_FLAC -DHAS_MP4
32
+#CPPFLAGS = -DHAS_MP3 -DHAS_OGG -DHAS_FLAC -DHAS_MP4
33
 #INC = 
34
 #LDFLAGS = 
35
-CFLAGS = -O2 -Wall
36
-DOCROOT = /var/www
37
+CFLAGS += -Wall
38
+DOCROOT = ${LOCALBASE}/www
39
 
40
 #   our own defines
41
 UNAME := $(shell uname)
42
@@ -90,8 +85,6 @@
43
 	$(INSTALL) -d $(DESTDIR)$(DOCROOT)/musicindex $(DESTDIR)$(LIBEXECDIR)
44
 	$(INSTALL) -m 0644 musicindex/*.* $(DESTDIR)$(DOCROOT)/musicindex
45
 	$(INSTALL) -m 0644 $(MOD_SO) $(DESTDIR)$(LIBEXECDIR)
46
-	@echo -e "\nDon't forget to edit your httpd.conf (see README for details):\n \
47
-		LoadModule musicindex_module $(DESTDIR)$(LIBEXECDIR)/$(MOD_SO)"
48
 
49
 #   how to compile the objects
50
 %.o: %.c %.h mod_musicindex.h
(-)files/pkg-message.in (-40 / +1 lines)
Lines 1-40 Link Here
1
************************************************************
1
Read %%DOCSDIR%%/README to find out how to configure apache for %%PORTNAME%%.
2
You've installed mod_musicindex
3
4
To enable it, you need to take the following steps:
5
6
1) Edit httpd.conf to make sure the module is loaded.
7
2) Mod_musicindex looks for a directory called musicindex below
8
   the apache DocumentRoot. Make sure it finds it by either changing
9
   the DocumentRoot directive in httpd.conf to %%LOCALBASE%%/www or by
10
   copying or linking %%LOCALBASE%%/www/musicindex into your DocumentRoot
11
3) Add a Directory configuration to your httpd.conf that should look
12
   something like this:
13
14
<Directory "/path/to/you/mp3/files/">
15
    Options Indexes MultiViews FollowSymlinks
16
    AllowOverride       None
17
    MusicLister         On
18
    MusicSortOrder      album disc track artist title length bitrate freq filetype filename uri
19
    MusicFields         title artist length bitrate
20
    MusicAllowDownload  On
21
    MusicAllowStream    Off
22
    MusicAllowSearch    On
23
    MusicPageTitle      Myname
24
    MusicCssDefault     musicindex.css
25
    MusicCachePath      /tmp/musicindex
26
    MusicIceServer      [ice.domain.my]:8000
27
    MusicCookieLife     300
28
</Directory>
29
30
4) Optionally consider setting an alias to your mp3 dir, so you can access
31
   the files by http://yourhost/music/ :
32
33
Alias /music/ /path/to/you/mp3/files/
34
35
5) To make your changes effective, restart apache:
36
37
# apachectl configtest (see if there are any config errors)
38
# apachectl restart
39
40
************************************************************

Return to bug 115280