aboutsummaryrefslogtreecommitdiff
path: root/multimedia/gavl/Makefile
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2004-10-13 23:24:34 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2004-10-13 23:24:34 +0000
commitd2e2005631a04e4f2781093dbffb8930720d14ae (patch)
tree71b8040204e0143651d6b385e6e9a8bbee9ee18b /multimedia/gavl/Makefile
parent44904a3e84f5080f47854e70a4b976799bff6be6 (diff)
[NEW PORT] multimedia/gavl: A library for handling uncompressed video and audio data
Gavl (Gmerlin Audio Video Library) is a library for handling uncompressed video and audio data. PR: ports/71133 Submitted by: Michael Johnson <ahze@ahze.net>
Notes
Notes: svn path=/head/; revision=119332
Diffstat (limited to 'multimedia/gavl/Makefile')
-rw-r--r--multimedia/gavl/Makefile55
1 files changed, 55 insertions, 0 deletions
diff --git a/multimedia/gavl/Makefile b/multimedia/gavl/Makefile
new file mode 100644
index 000000000000..d78277d69ed8
--- /dev/null
+++ b/multimedia/gavl/Makefile
@@ -0,0 +1,55 @@
+# New ports collection makefile for: gavl
+# Date created: 2004-08-29
+# Whom: Michael Johnson <ahze@ahze.net>
+#
+# $FreeBSD$
+#
+
+PORTNAME= gavl
+PORTVERSION= 0.2.0
+CATEGORIES= multimedia
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= gmerlin
+
+MAINTAINER= ahze@ahze.net
+COMMENT= A library for handling uncompressed video and audio data
+
+LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png
+
+USE_INC_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|' \
+ ${WRKSRC}/gavl/c/sampleformat_c.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>