diff options
author | jperkin <jperkin@pkgsrc.org> | 2017-05-15 11:31:16 +0000 |
---|---|---|
committer | jperkin <jperkin@pkgsrc.org> | 2017-05-15 11:31:16 +0000 |
commit | 1aae147d5624224337432894617ce2272573f329 (patch) | |
tree | c9dabe26d5bb6951cb9856ba2ec228f26265b3fe /multimedia | |
parent | f7096057982fce0bb8d3758d7e99d6f0951e11e4 (diff) | |
download | pkgsrc-1aae147d5624224337432894617ce2272573f329.tar.gz |
Package assumes building from a git checkout, fix build by pre-generating
the git version header.
Diffstat (limited to 'multimedia')
-rw-r--r-- | multimedia/gpac/Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
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" |