blob: 35b141490f041631c8a9f21f4956e68c457d12f3 (
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
|
# Ports collection makefile for: libkate
# Date created: Sat 19 Oct 2008
# Whom: Anders Nordby <anders@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= libkate
PORTVERSION= 0.4.1
PORTREVISION= 2
CATEGORIES= multimedia
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
MAINTAINER= barbara.xxx1975@libero.it
COMMENT= Codec for karaoke and text encapsulation for Ogg
LICENSE= BSD
BUILD_DEPENDS= pkg-config:${PORTSDIR}/devel/pkg-config
LIB_DEPENDS= ogg:${PORTSDIR}/audio/libogg \
png15:${PORTSDIR}/graphics/png
GNU_CONFIGURE= yes
USE_GMAKE= yes
USE_GNOME= pkgconfig
USE_LDCONFIG= yes
CFLAGS+= "-I${LOCALBASE}/include"
MAN1= katalyzer.1 kateenc.1 katedec.1
OPTIONS= DOXYGEN "Build docs with doxygen (requires TeX, QT, etc.)" off \
HTMLDOCS "Install bundled html documentation" off \
KATEDJ "Install KateDJ (requires wxPython - WARNING!)" off
PORTDOCS= *
.include <bsd.port.pre.mk>
.if defined(WITH_DOXYGEN)
BUILD_DEPENDS+= doxygen:${PORTSDIR}/devel/doxygen
.else
CONFIGURE_ARGS+= --disable-doc
.endif
.if defined(WITH_KATEDJ)
RUN_DEPENDS= ${LOCALBASE}/bin/oggz:${PORTSDIR}/audio/liboggz
USE_PYTHON= yes
.include "${PORTSDIR}/Mk/bsd.python.mk"
USE_WX= 2.8
WX_COMPS= wx contrib python:lib
MAN1+= KateDJ.1
PLIST_SUB+= KATEDJ=""
.else
PLIST_SUB+= KATEDJ="@comment "
.endif
post-patch:
.if !defined(NOPORTDOCS)
@${REINPLACE_CMD} -E -e "s|^(katepcdir =).*|\1 ${LOCALBASE}/libdata/pkgconfig|" \
${WRKSRC}/Makefile.in
. if !defined(WITH_HTMLDOCS) && !defined(WITH_DOXYGEN)
. if !defined(WITH_KATEDJ)
@${REINPLACE_CMD} -E -e \
's|^(install-data-am: )(install-data-local )(install-man)|\1\3|; \
s| man/KateDJ.1||' \
${WRKSRC}/doc/Makefile.in
. else
@${REINPLACE_CMD} -E -e \
's|^(install-data-am: )(install-data-local )(install-man)|\1\3|' \
${WRKSRC}/doc/Makefile.in
. endif
. else
. if !defined(WITH_KATEDJ)
@${REINPLACE_CMD} -E -e \
' s| man/KateDJ.1||' \
${WRKSRC}/doc/Makefile.in
. endif
. endif
.else
@${REINPLACE_CMD} -E -e "s|^(katepcdir =).*|\1 ${LOCALBASE}/libdata/pkgconfig|; \
s|^(SUBDIRS =.*) doc|\1|" \
${WRKSRC}/Makefile.in
. if !defined(WITH_KATEDJ)
@${REINPLACE_CMD} -E -e \
' s| man/KateDJ.1||' \
${WRKSRC}/doc/Makefile.in
. endif
.endif
.if !defined(WITH_KATEDJ)
@${REINPLACE_CMD} -e \
"s| HAVE_PYTHON_TRUE=$$| HAVE_PYTHON_TRUE='#'|; \
s| HAVE_PYTHON_FALSE=\'#\'$$| HAVE_PYTHON_FALSE=|" \
${WRKSRC}/configure
.endif
post-install:
.for f in ${MAN1}
${INSTALL_MAN} ${WRKSRC}/doc/man/${f} ${PREFIX}/man/man1
.endfor
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
. for FILE in README AUTHORS COPYING THANKS ChangeLog
${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
. endfor
. if defined(WITH_HTMLDOCS)
${CP} -RPpn ${WRKSRC}/doc/html ${DOCSDIR}/html
. endif
.endif
.include <bsd.port.post.mk>
|