Gentoo Archives: gentoo-commits

From: "Jeroen Roovers (jer)" <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-editors/sandy/files: sandy-0.4-gentoo.patch
Date: Thu, 28 May 2015 17:33:55
Message-Id: 20150528173351.35228A05@oystercatcher.gentoo.org
1 jer 15/05/28 17:33:51
2
3 Added: sandy-0.4-gentoo.patch
4 Log:
5 Initial commit.
6
7 (Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key A792A613)
8
9 Revision Changes Path
10 1.1 app-editors/sandy/files/sandy-0.4-gentoo.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/sandy/files/sandy-0.4-gentoo.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/sandy/files/sandy-0.4-gentoo.patch?rev=1.1&content-type=text/plain
14
15 Index: sandy-0.4-gentoo.patch
16 ===================================================================
17 --- a/config.mk
18 +++ b/config.mk
19 @@ -9,19 +9,19 @@
20
21 # includes and libs (ncurses)
22 INCS = -I. -I/usr/include
23 -LIBS = -L/usr/lib -lc -lncursesw
24 +LIBS = $(shell ${PKG_CONFIG} --libs ncurses)
25
26 # flags
27 -CPPFLAGS = -DVERSION=\"${VERSION}\"
28 +CPPFLAGS = -DVERSION=\"${VERSION}\" -D_DEFAULT_SOURCE
29 #CFLAGS = -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS}
30 #LDFLAGS = -s ${LIBS}
31 -CFLAGS = -g -std=c99 -pedantic -Wall -O0 ${INCS} ${CPPFLAGS}
32 -LDFLAGS = ${LIBS}
33 +CFLAGS += -std=c99 -pedantic -Wall ${INCS} ${CPPFLAGS}
34 +LDFLAGS += ${LIBS}
35
36 # Solaris
37 #CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\"
38 #LDFLAGS = ${LIBS}
39
40 # compiler and linker
41 -CC = cc
42 +CC ?= cc
43
44 --- a/Makefile
45 +++ b/Makefile
46 @@ -15,8 +15,7 @@
47 @echo "CC = ${CC}"
48
49 .c.o:
50 - @echo CC $<
51 - @${CC} -c ${CFLAGS} $<
52 + ${CC} -c ${CFLAGS} $<
53
54 ${OBJ}: config.h config.mk
55
56 @@ -25,8 +24,7 @@
57 @cp config.def.h $@
58
59 sandy: ${OBJ}
60 - @echo CC -o $@
61 - @${CC} -o $@ sandy.o ${LDFLAGS}
62 + ${CC} ${CFLAGS} -o $@ sandy.o ${LDFLAGS}
63
64 clean:
65 @echo cleaning