51 lines
1.1 KiB
Makefile
51 lines
1.1 KiB
Makefile
# Created by: Michael Johnson <ahze@ahze.net>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= gavl
|
|
PORTVERSION= 1.4.0
|
|
CATEGORIES= multimedia
|
|
MASTER_SITES= SF/gmerlin/${PORTNAME}/${PORTVERSION}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= A library for handling uncompressed video and audio data
|
|
|
|
LICENSE= GPLv3
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
USES= pathfix pkgconfig
|
|
USE_LDCONFIG= yes
|
|
GNU_CONFIGURE= yes
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
CONFIGURE_ARGS= --with-cpuflags=none --without-doxygen
|
|
|
|
PORTDOCS= README
|
|
|
|
OPTIONS_DEFINE= OPTIMIZED_CFLAGS PNG
|
|
OPTIONS_DEFAULT= OPTIMIZED_CFLAGS PNG
|
|
|
|
NO_STAGE= yes
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MPNG}
|
|
LIB_DEPENDS+= png15:${PORTSDIR}/graphics/png
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-libpng
|
|
.endif
|
|
|
|
.include <bsd.port.pre.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:
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}
|
|
@${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|