aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/libkate/Makefile
blob: beac1de75b170e2830f36b8e828372ef6663a1f3 (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
# Ports collection makefile for:    libkate
# Date created:             Sat 19 Oct 2008
# Whom:                 Anders Nordby <anders@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   libkate
PORTVERSION=    0.1.12
CATEGORIES= multimedia
MASTER_SITES=   ${MASTER_SITE_GOOGLE_CODE}

MAINTAINER= anders@FreeBSD.org
COMMENT=    Codec for karaoke and text encapsulation for Ogg

BUILD_DEPENDS=  pkg-config:${PORTSDIR}/devel/pkg-config
LIB_DEPENDS=    ogg.5:${PORTSDIR}/audio/libogg \
        png.5:${PORTSDIR}/graphics/png

GNU_CONFIGURE=  yes
USE_GMAKE=  yes
USE_GNOME=  gnomelibs pkgconfig
USE_LDCONFIG=   yes

CONFIGURE_ENV=  CFLAGS="-I${LOCALBASE}/include"

MAN1=   kateenc.1 katedec.1

OPTIONS=    DOXYGEN "Build docs with doxygen (requires TeX, QT, etc.)" off

.include <bsd.port.pre.mk>

.ifdef(WITH_DOXYGEN || exists(${LOCALBASE}/bin/doxygen))
BUILD_DEPENDS+= doxygen:${PORTSDIR}/devel/doxygen
PLIST_SUB+= DOXYGEN=""
.else
PLIST_SUB+= DOXYGEN="@comment "
.endif

post-patch:
    @${REINPLACE_CMD} -E -e "s|^(katepcdir =).*|\1 ${LOCALBASE}/libdata/pkgconfig|" \
    ${WRKSRC}/Makefile.in
.ifdef(NOPORTDOCS)
    @${REINPLACE_CMD} -E \
        -e 's|^([[:space:]]*SUBDIRS[[:space:]]*=.*)doc|\1|' \
        ${BUILD_WRKSRC}/Makefile.in
.endif

post-install:
.ifdef(NOPORTDOCS)
.for f in ${MAN1}
    ${INSTALL_MAN}  ${WRKSRC}/doc/man/${f}  ${PREFIX}/man/man1
.endfor
.endif

.include <bsd.port.post.mk>