pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/games/pmars Improve style of games/pmars/Makefile



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9ae175734bb7
branches:  trunk
changeset: 348312:9ae175734bb7
user:      kamil <kamil%pkgsrc.org@localhost>
date:      Sat Jun 11 21:23:28 2016 +0000

description:
Improve style of games/pmars/Makefile

BUILD_DIRS=            src

is equivalent to:

BUILD_MAKE_FLAGS+=     -C src



"${COMPILER_RPATH_FLAG}${X11BASE}/lib"

is preferred over:

-Wl,-rpath,${BUILDLINK_PREFIX.libX11}/lib


No functional change (on NetBSD).

Pointed out by <joerg>

diffstat:

 games/pmars/Makefile |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (21 lines):

diff -r 0af7d0595a70 -r 9ae175734bb7 games/pmars/Makefile
--- a/games/pmars/Makefile      Sat Jun 11 21:13:20 2016 +0000
+++ b/games/pmars/Makefile      Sat Jun 11 21:23:28 2016 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2016/06/11 18:43:24 kamil Exp $
+# $NetBSD: Makefile,v 1.2 2016/06/11 21:23:28 kamil Exp $
 #
 
 DISTNAME=              pmars-0.9.2
@@ -10,9 +10,9 @@
 COMMENT=               The official Core Wars simulator
 LICENSE=               gnu-gpl-v2
 
-BUILD_MAKE_FLAGS+=     -C src
+BUILD_DIRS=            src
 BUILD_MAKE_FLAGS+=     CC=${CC:Q}
-BUILD_MAKE_FLAGS+=     LIB="-Wl,-rpath,${BUILDLINK_PREFIX.libX11}/lib -lX11"
+BUILD_MAKE_FLAGS+=     LIB="${COMPILER_RPATH_FLAG}${X11BASE}/lib -lX11"
 
 INSTALLATION_DIRS+=    bin share/pmars share/pmars/config share/pmars/warriors ${PKGMANDIR}/man6
 



Home | Main Index | Thread Index | Old Index