pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/multimedia/gpac Package assumes building from a git ch...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c6b65169bbe0
branches:  trunk
changeset: 362441:c6b65169bbe0
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Mon May 15 11:31:16 2017 +0000

description:
Package assumes building from a git checkout, fix build by pre-generating
the git version header.

diffstat:

 multimedia/gpac/Makefile |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r 9312d4f6c6ce -r c6b65169bbe0 multimedia/gpac/Makefile
--- a/multimedia/gpac/Makefile  Mon May 15 11:11:35 2017 +0000
+++ b/multimedia/gpac/Makefile  Mon May 15 11:31:16 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.51 2017/02/24 21:54:51 maya Exp $
+# $NetBSD: Makefile,v 1.52 2017/05/15 11:31:16 jperkin Exp $
 
 DISTNAME=      gpac-0.6.1
 PKGREVISION=   3
@@ -25,6 +25,10 @@
 CONFIGURE_ARGS+=       --extra-ldflags="${LDFLAGS}"
 CFLAGS+=               -I${BUILDLINK_PREFIX.faad2}/${BUILDLINK_INCDIRS.faad2}
 
+# Pre-generate header and avoid git dependency.
+pre-build:
+       ${ECHO} "#define GPAC_GIT_REVISION \"release\"" > ${WRKSRC}/include/gpac/revision.h
+
 .include "../../audio/faad2/buildlink3.mk"
 .include "../../audio/liba52/buildlink3.mk"
 .include "../../audio/libmad/buildlink3.mk"



Home | Main Index | Thread Index | Old Index