aboutsummaryrefslogtreecommitdiffstats
path: root/audio/gvolwheel/Makefile
blob: dbb8140f836b3010ab0583b0cc5df523bb95c4c4 (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
# Created by: Veniamin Gvozdikov <vg@FreeBSD.org>
# $FreeBSD$

PORTNAME=   gvolwheel
PORTVERSION=    1.0
PORTREVISION=   1
CATEGORIES= audio
MASTER_SITES=   SF/${PORTNAME}

MAINTAINER= vg@FreeBSD.org
COMMENT=    Volume mixer

LICENSE=    GPLv3

BUILD_DEPENDS=  intltoolize:${PORTSDIR}/textproc/intltool

CONFIGURE_ARGS+=--enable-oss
GNU_CONFIGURE=  yes
USES=       gmake iconv pathfix pkgconfig
NO_STAGE=   yes
USE_GNOME=  gtk30

PORTDOCS=   AUTHORS ChangeLog README

OPTIONS_DEFINE= DOCS NLS
OPTIONS_SUB=    yes

NLS_CONFIGURE_ENABLE=   nls
NLS_USES=   gettext

SUB_FILES=  pkg-message

DESKTOP_ENTRIES="GVolWheel" "${COMMENT}" "${PORTNAME}" \
        "${PORTNAME}" "GTK;AudioVideo;Audio;Mixer;" true

.include <bsd.port.options.mk>

post-patch:
    ${REINPLACE_CMD} -e 's|linux/soundcard|sys/soundcard|g' \
        ${WRKSRC}/src/callbacks.c ${WRKSRC}/src/actions.c

post-install:
.if ${PORT_OPTIONS:MDOCS}
    @${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
.endif
    ${LN} -sf ${PREFIX}/share/pixmaps/gvolwheel/audio-volume-high.png ${PREFIX}/share/pixmaps/${PORTNAME}.png

    @${ECHO_CMD}
    @${CAT} ${PKGMESSAGE}
    @${ECHO_CMD}

.include <bsd.port.mk>