summaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authorimil <imil@pkgsrc.org>2016-03-08 19:09:56 +0000
committerimil <imil@pkgsrc.org>2016-03-08 19:09:56 +0000
commit3cc458b9cd9e2f2d52a37320a1b3bfee62f777b2 (patch)
tree140e09ba5691d40e558fa0b2466744452f38cfcc /sysutils
parent8ff1fc057c8ae9e8c307f3973978c143fc6aa335 (diff)
downloadpkgsrc-3cc458b9cd9e2f2d52a37320a1b3bfee62f777b2.tar.gz
Fixed build on NetBSD 7:
Explicit build target and linking
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/facette/Makefile10
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/