aboutsummaryrefslogtreecommitdiff
path: root/audio/gogglesmm/Makefile
blob: 93f2545e66d184b5365b816079ec8cedaec947a5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# New ports collection makefile for:   ggm
# Date created:        28 May 2008
# Whom:                Sascha Klauder <sklauder@trimind.de>
#
# $FreeBSD$
#

PORTNAME=	gmm
PORTVERSION=	0.9.15
CATEGORIES=	audio
MASTER_SITES=	http://gogglesmm.googlecode.com/files/
DISTNAME=	musicmanager-${PORTVERSION}

MAINTAINER=	sklauder@trimind.de
COMMENT=	Music collection manager and player

BUILD_DEPENDS=	bash:${PORTSDIR}/shells/bash
LIB_DEPENDS=	FOX-1.6:${PORTSDIR}/x11-toolkits/fox16 		\
		xine.1:${PORTSDIR}/multimedia/libxine		\
		tag.6:${PORTSDIR}/audio/taglib			\
		sqlite3.8:${PORTSDIR}/databases/sqlite3		\
		dbus-1:${PORTSDIR}/devel/dbus			\
		dbus-glib-1.2:${PORTSDIR}/devel/dbus-glib

GNU_CONFIGURE=	yes
USE_GMAKE=	yes
USE_BZIP2=	yes
WANT_GNOME=	yes
USE_GNOME=	gtk20
INSTALLS_ICONS=	yes

PORTDOCS=	README AUTHORS
PLIST_DIRS=	share/applications
PLIST_FILES=	bin/gmm						\
		bin/gmm-tray					\
		share/applications/gmm.desktop			\
		share/icons/hicolor/24x24/apps/gmm-tray.png	\
		share/icons/hicolor/48x48/apps/gmm.png  \
		share/icons/hicolor/48x48/apps/gmm-tray.png

CONFIGURE_ENV=	OPT_CFLAGS=" "

.include <bsd.port.pre.mk>

.if defined(WITHOUT_NEWREMOTE)
CONFIGURE_ARGS+=--without-new-remote
.endif

post-extract:
	${REINPLACE_CMD} -i '' -e "s|/bin/bash|${PREFIX}/bin/bash|" \
		${WRKSRC}/configure

post-configure:
	${REINPLACE_CMD} -i '' -e 's|-D -m|-m|' \
		${WRKSRC}/Makefile

pre-install:
	[ -d ${PREFIX}/share/applications ] ||	\
	    ${MKDIR} ${PREFIX}/share/applications

post-install:
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
. for FILE in ${PORTDOCS}
	${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
. endfor
.endif

.include <bsd.port.post.mk>