diff options
author | imil <imil@pkgsrc.org> | 2016-03-08 19:09:56 +0000 |
---|---|---|
committer | imil <imil@pkgsrc.org> | 2016-03-08 19:09:56 +0000 |
commit | 67d56a65878c460aadb546da449f76c9ada264de (patch) | |
tree | 140e09ba5691d40e558fa0b2466744452f38cfcc /sysutils/facette | |
parent | 9cc851ef885d6062d5587aef9a8a56e48c856595 (diff) | |
download | pkgsrc-67d56a65878c460aadb546da449f76c9ada264de.tar.gz |
Fixed build on NetBSD 7:
Explicit build target and linking
Diffstat (limited to 'sysutils/facette')
-rw-r--r-- | sysutils/facette/Makefile | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/sysutils/facette/Makefile b/sysutils/facette/Makefile index f04d45ad5f2..3c6b8bc8b63 100644 --- a/sysutils/facette/Makefile +++ b/sysutils/facette/Makefile @@ -1,6 +1,7 @@ -# $NetBSD: Makefile,v 1.1 2016/03/08 16:52:44 imil Exp $ +# $NetBSD: Makefile,v 1.2 2016/03/08 19:09:56 imil Exp $ DISTNAME= facette-0.4.0dev +PKGREVISION= 1 CATEGORIES= sysutils MASTER_SITES= ${MASTER_SITE_GITHUB:=facette/} GITHUB_PROJECT= facette @@ -23,13 +24,16 @@ SUBST_STAGE.paths= pre-build SUBST_FILES.paths= Makefile SUBST_SED.paths= -e 's,/usr/local,${PREFIX}/,g' -MAKE_ENV+= CGO_LDFLAGS="-L${PREFIX}/lib -Wl,-rpath,${PREFIX}/lib" - DOCDIR= ${PREFIX}/share/doc/facette EGDIR= ${PREFIX}/share/examples/facette DATADIR= ${PREFIX}/share/facette INSTALLATION_DIRS+= bin ${EGDIR} ${DOCDIR} ${DATADIR}/static +CGO_LDFLAGS= -L${PREFIX}/lib ${COMPILER_RPATH_FLAG},${PREFIX}/lib + +do-build: + cd ${WRKSRC} && CGO_LDFLAGS="${CGO_LDFLAGS}" ${GMAKE} build + do-install: ${INSTALL_PROGRAM} ${WRKSRC}/build/*/bin/facette \ ${DESTDIR}${PREFIX}/bin/ |