blob: a402113d1dc58cb1af3ea6f4975d3baffd313278 (
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
|
# New ports collection makefile for: gavl
# Date created: 2004-08-29
# Whom: Michael Johnson <ahze@ahze.net>
#
# $FreeBSD$
#
PORTNAME= gavl
PORTVERSION= 0.2.1
PORTREVISION= 2
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
GNU_CONFIGURE= yes
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>
.if ${OSVERSION} < 504000
EXTRA_PATCHES= ${PATCHDIR}/gavl-mix.c-patch \
${PATCHDIR}/gavl-c-_cmix_c.c-patch
.endif
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)
.if ${OSVERSION} < 504000
@${REINPLACE_CMD} -e 's|llrintf|rintf|g' \
${WRKSRC}/gavl/c/*.*
.endif
.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>
|