summaryrefslogtreecommitdiffstats
path: root/multimedia/gavl/Makefile
blob: 66742c5a1d8167224a87d8088b4d0200923fb20e (plain)
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
# New ports collection makefile for:	gavl
# Date created:		2004-08-29
# Whom:			Michael Johnson <ahze@ahze.net>
#
# $FreeBSD$
#

PORTNAME=	gavl
PORTVERSION=	0.2.1
CATEGORIES=	multimedia
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	gmerlin

MAINTAINER=	ahze@FreeBSD.org
COMMENT=	A library for handling uncompressed video and audio data

LIB_DEPENDS=	png.5:${PORTSDIR}/graphics/png \
		samplerate.1:${PORTSDIR}/audio/libsamplerate

USE_LIBTOOL_VER=	15
USE_REINPLACE=		yes
CONFIGURE_ENV=		CPPFLAGS="-I${LOCALBASE}/include" \
			LDFLAGS="-L${LOCALBASE}/lib"

USE_GNOME=	pkgconfig gnometarget gnomehack
INSTALLS_SHLIB=	yes

PORTDOCS=	README

.include <bsd.port.pre.mk>

pre-everything::
.if !defined(WITH_OPTIMIZED_CFLAGS)
	@${ECHO_MSG} "===>"
	@${ECHO_MSG} "===>  Enable Optimized CFLAGS by defining"
	@${ECHO_MSG} "===>   WITH_OPTIMIZED_CFLAGS"
	@${ECHO_MSG} "===>"
.endif

post-patch:
# No llrintf in freebsd (yet)
	@${REINPLACE_CMD} -e 's|llrintf|rintf|g' \
		${WRKSRC}/gavl/c/*.*
.if !defined(WITH_OPTIMIZED_CFLAGS)
	@${REINPLACE_CMD} -e \
	's|-fomit-frame-pointer -funroll-all-loops -falign-functions=2 -falign-loops=2 -falign-jumps=2||; \
	 s|-O3||' ${WRKSRC}/configure
.endif

post-install:
.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
	@${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif

.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud