aboutsummaryrefslogtreecommitdiff
path: root/devel/orc/Makefile
blob: 29fbd07bfdf3c90cdeda80de5bbdd246533cb5c1 (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
# Created by: mm
# $FreeBSD$

PORTNAME=	orc
PORTVERSION=	0.4.18
CATEGORIES=	devel
MASTER_SITES= 	http://gstreamer.freedesktop.org/data/src/orc/

MAINTAINER=	kwm@FreeBSD.org
COMMENT=	Library and toolset to operate arrays of data

LICENSE=	BSD
LICENSE_FILE=	${WRKSRC}/COPYING

USES=		gmake pkgconfig
USE_AUTOTOOLS=	libtool
USE_LDCONFIG=	yes

CONFIGURE_ARGS+=	--disable-gtk-doc

SUBDIRS=	orc orc-test tools

EXAMPLES_DATA=	example1orc.orc example2orc.orc example3orc.orc \
		mt19937arorc.orc
EXAMPLES_EXEC=	example1 example2 example3 mt19937ar volscale

OPTIONS_DEFINE=	DOCS EXAMPLES
DOCS_DESC=	Include gtk-doc documentation

NO_STAGE=	yes
.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MDOCS}
SUBDIRS+=	doc
.else
NOPORTDOCS=	yes
.endif

.if ${PORT_OPTIONS:MEXAMPLES}
SUBDIRS+=	examples
.else
NOPORTEXAMPLES=	yes
.endif

MAKE_ARGS+=	SUBDIRS="${SUBDIRS}"

post-patch:
	@${REINPLACE_CMD} \
		-E -e '/LIBS/s/-lrt(\ )*//; /LIBRT/s/-lrt//' \
		-e 's|pkgconfigdir=.*|pkgconfigdir=\"\\$$(prefix)/libdata/pkgconfig\"|g' \
		${WRKSRC}/configure 

post-install:
.if ${PORT_OPTIONS:MEXAMPLES}
	@${MKDIR} ${EXAMPLESDIR}
.for FILE in ${EXAMPLES_DATA}
	@${INSTALL_DATA} ${WRKSRC}/examples/${FILE} ${EXAMPLESDIR}/${FILE}
.endfor
.for FILE in ${EXAMPLES_EXEC}
	@${INSTALL_SCRIPT} ${WRKSRC}/examples/${FILE} ${EXAMPLESDIR}/${FILE}
.endfor
.endif

.include <bsd.port.mk>