diff options
author | nia <nia@pkgsrc.org> | 2020-03-26 12:46:58 +0000 |
---|---|---|
committer | nia <nia@pkgsrc.org> | 2020-03-26 12:46:58 +0000 |
commit | 8f0db92a2d11a0555a11ee479d3349bab3ff3885 (patch) | |
tree | d96e36c0bc62fba4e58da9cf1f5b30da1af8b7af /games | |
parent | 52742a8b782dfe5134e35ca5593ae0d6f0de1933 (diff) | |
download | pkgsrc-8f0db92a2d11a0555a11ee479d3349bab3ff3885.tar.gz |
sl: Respect CC/CFLAGS/LDFLAGS/etc
Diffstat (limited to 'games')
-rw-r--r-- | games/sl/Makefile | 5 | ||||
-rw-r--r-- | games/sl/distinfo | 3 | ||||
-rw-r--r-- | games/sl/patches/patch-Makefile | 17 |
3 files changed, 23 insertions, 2 deletions
diff --git a/games/sl/Makefile b/games/sl/Makefile index e52eb36d611..281bb4b612d 100644 --- a/games/sl/Makefile +++ b/games/sl/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.22 2017/01/03 22:13:11 roy Exp $ +# $NetBSD: Makefile,v 1.23 2020/03/26 12:46:58 nia Exp $ # DISTNAME= sl-5.02 @@ -15,6 +15,9 @@ FAKE_NCURSES= yes DIST_SUBDIR= ${PKGNAME_NOREV} BUILD_TARGET= sl +MAKE_FLAGS+= CC=${CC:Q} +MAKE_FLAGS+= CFLAGS=${CFLAGS:Q} + INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 ${PKGMANDIR}/ja_JP.EUC/man1 do-install: diff --git a/games/sl/distinfo b/games/sl/distinfo index d5053e3e989..c8db4598e67 100644 --- a/games/sl/distinfo +++ b/games/sl/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.7 2015/11/03 20:57:04 agc Exp $ +$NetBSD: distinfo,v 1.8 2020/03/26 12:46:58 nia Exp $ SHA1 (sl-5.02/sl-5.02.tar.gz) = 8ea1ed978ed6738d6c510eceb329cb43616afb91 RMD160 (sl-5.02/sl-5.02.tar.gz) = f3643055900b8a71dc9c18d59b0815c554298875 SHA512 (sl-5.02/sl-5.02.tar.gz) = a4d18bc79d7e0eca7748b10226a6b2a85a7a01d636e4e9215bf524a7849bc5cb250034326e5a69f7423d79e40b92182fddc0e56e25df616edae06369c782cb26 Size (sl-5.02/sl-5.02.tar.gz) = 5353 bytes +SHA1 (patch-Makefile) = 4e82d8e3d7a514213d8d2bc806191975f13546d4 diff --git a/games/sl/patches/patch-Makefile b/games/sl/patches/patch-Makefile new file mode 100644 index 00000000000..1be54876d99 --- /dev/null +++ b/games/sl/patches/patch-Makefile @@ -0,0 +1,17 @@ +$NetBSD: patch-Makefile,v 1.1 2020/03/26 12:46:58 nia Exp $ + +Respect LDFLAGS. + +--- Makefile.orig 2014-06-16 07:27:59.000000000 +0000 ++++ Makefile +@@ -9,5 +9,8 @@ + CC=gcc + CFLAGS=-O + +-sl: sl.c sl.h +- $(CC) $(CFLAGS) -o sl sl.c -lncurses ++sl.o: sl.c sl.h ++ $(CC) $(CFLAGS) -c sl.c ++ ++sl: sl.o ++ $(CC) $(LDFLAGS) -o sl sl.o -lncurses |