aboutsummaryrefslogtreecommitdiffstats
path: root/audio/xhippo/Makefile
blob: 7bc3aaec0cbc792c63ea42a05bbc5bca80672aec (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
# Created by: Rod Taylor <rod@zort.on.ca>
# $FreeBSD$

PORTNAME=   xhippo
PORTVERSION=    3.5
CATEGORIES= audio
MASTER_SITES=   GNU

MAINTAINER= ports@FreeBSD.org
COMMENT=    Generic music player for Unix-like systems

LICENSE=    GPLv3

LIB_DEPENDS=    id3tag:${PORTSDIR}/audio/libid3tag
RUN_DEPENDS=    mpg123:${PORTSDIR}/audio/mpg123

USE_GNOME=  gtk20
USES=       gettext
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --with-gtk2
MAKE_JOBS_SAFE= yes

CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib

MAN1=       xhippo.1
INFO=       xhippo

post-extract:
    @${LN} -sf xhippo.config ${WRKSRC}/xhippo.config.default

post-patch:
    @${REINPLACE_CMD} -e \
        '/^sysconf_DATA/s|=.*|= xhippo.config.default|' \
            ${WRKSRC}/Makefile.in

post-install:
.if !exists(${PREFIX}/etc/xhippo.config)
    (cd ${PREFIX}/etc && ${CP} xhippo.config.default xhippo.config)
.endif
    @${ECHO_MSG}
    @${CAT} ${PKGMESSAGE}
    @${ECHO_MSG}

.include <bsd.port.mk>