aboutsummaryrefslogtreecommitdiffstats
path: root/audio/zinf/Makefile
blob: e36061718af6c0c6480684b7be4d27bd4a6a1039 (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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# New ports collection makefile for:    freeamp
# Date Created:             26 Oct 2000
# Whom:                 Roman Shterenzon <roman@xpert.com>
#
# $FreeBSD$
#

PORTNAME=   zinf
PORTVERSION=    2.2.3
CATEGORIES= audio
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}

MAINTAINER= ports@FreeBSD.org
COMMENT=    GTK-based MP3 player

LIB_DEPENDS=    id3-3.8.2:${PORTSDIR}/audio/id3lib \
        musicbrainz.2:${PORTSDIR}/audio/musicbrainz

USE_X_PREFIX=   yes
USE_GNOME=  gnomehier gdkpixbuf
WANT_GNOME= yes
USE_PERL5=  yes
USE_FREETYPE=   yes
USE_GMAKE=  yes
USE_AUTOCONF_VER=   213
CONFIGURE_ENV=  CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"

CPPFLAGS=   -I${LOCALBASE}/include/freetype1 -I${LOCALBASE}/include \
        ${PTHREAD_CFLAGS}
LDFLAGS=    -L${LOCALBASE}/lib -lintl ${PTHREAD_LIBS}

.include <bsd.port.pre.mk>

.if ${ARCH} == "i386"
BUILD_DEPENDS+= nasm:${PORTSDIR}/devel/nasm
CPPFLAGS+=  "-D_M_IX86"
.elif ${ARCH} == "alpha"
CPPFLAGS+=  "-D_M_ALPHA"
.endif

.if ${HAVE_GNOME:Mesound}!="" || defined(WITH_ALL_PLUGINS)
USE_GNOME+= esound
PLIST_SUB+= ESOUND=""
PKGNAMESUFFIX=  -esound
.else
CONFIGURE_ARGS+=    --disable-esd
PLIST_SUB+= ESOUND="@comment "
.endif

.if defined(WITH_LIBARTS) || defined(WITH_ALL_PLUGINS)
LIB_DEPENDS+=   artsc.0:${PORTSDIR}/audio/arts
PLIST_SUB+= LIBARTS=""
.else
CONFIGURE_ARGS+=    --disable-arts
PLIST_SUB+= LIBARTS="@comment "
.endif

.if !defined(WITHOUT_VORBIS) || defined(WITH_ALL_PLUGINS)
LIB_DEPENDS+=   vorbis.2:${PORTSDIR}/audio/libvorbis
PLIST_SUB+= VORBIS=""
.else
CONFIGURE_ARGS+=    --disable-vorbis
PLIST_SUB+= VORBIS="@comment "
.endif

# Stop a flood of complaints and PRs from people who can't be bothered
# to keep their ports and packages up to date.
.if exists(${LOCALBASE}/include/freetype/freetype.h)
.error UPGRADE print/freetype TO CURRENT VERSION!
.endif

pre-everything::
    @${ECHO_MSG}
    @${ECHO_MSG} "You may use the following build options:"
    @${ECHO_MSG}
    @${ECHO_MSG} "WITH_LIBARTS      build with libArts output plugin"
    @${ECHO_MSG} "WITHOUT_GNOME=esound  do NOT build with esd support"
    @${ECHO_MSG} "WITHOUT_VORBIS        do NOT build with Ogg/Vorbis codec plugin"
    @${ECHO_MSG}
    @${ECHO_MSG} "WITH_ALL_PLUGINS=yes  build with all plugins"
    @${ECHO_MSG}

post-install:
    @${MKDIR} ${PREFIX}/etc/sdr/plugins
    ${INSTALL_DATA} ${FILESDIR}/sdr2.plugin.S100.audio.rtp.mpa.zinf \
        ${PREFIX}/etc/sdr/plugins
    ${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DATADIR}

.include <bsd.port.post.mk>