aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/gavl/Makefile
blob: 28945467f2926519b7c1370f0ed5550dbf9c4fb9 (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
# Created by: Michael Johnson <ahze@ahze.net>
# $FreeBSD$

PORTNAME=   gavl
PORTVERSION=    1.4.0
PORTREVISION=   4
CATEGORIES= multimedia
MASTER_SITES=   SF/gmerlin/${PORTNAME}/${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Library for handling uncompressed video and audio data

LICENSE=    GPLv3
LICENSE_FILE=   ${WRKSRC}/COPYING

USES=       alias libtool pathfix pkgconfig
USE_LDCONFIG=   yes
GNU_CONFIGURE=  yes
CPPFLAGS+=  -I${LOCALBASE}/include
LIBS+=      -L${LOCALBASE}/lib -lm
CONFIGURE_ARGS= --with-cpuflags=none --without-doxygen
INSTALL_TARGET= install-strip

PORTDOCS=   README

OPTIONS_DEFINE= OPTIMIZED_CFLAGS PNG DOCS
OPTIONS_DEFAULT=    OPTIMIZED_CFLAGS PNG
PNG_LIB_DEPENDS=    libpng.so:${PORTSDIR}/graphics/png
PNG_CONFIGURE_OFF=  --disable-libpng

.include <bsd.port.options.mk>

post-patch:
.if empty(PORT_OPTIONS:MOPTIMIZED_CFLAGS)
    @${REINPLACE_CMD} -e \
    's|-O3 -funroll-all-loops -fomit-frame-pointer -ffast-math||g' \
        ${WRKSRC}/configure
.endif

post-install:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    @${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>