From 1aae147d5624224337432894617ce2272573f329 Mon Sep 17 00:00:00 2001 From: jperkin Date: Mon, 15 May 2017 11:31:16 +0000 Subject: Package assumes building from a git checkout, fix build by pre-generating the git version header. --- multimedia/gpac/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'multimedia') diff --git a/multimedia/gpac/Makefile b/multimedia/gpac/Makefile index ff76c88d237..c980a723cf6 100644 --- a/multimedia/gpac/Makefile +++ b/multimedia/gpac/Makefile @@ -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-cflags="${CFLAGS}" 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" -- cgit v1.2.3