1 |
aballier 08/02/10 10:59:12 |
2 |
|
3 |
Added: sam2p-0.45-fbsd.patch sam2p-0.45-nostrip.patch |
4 |
sam2p-0.45-cflags.patch |
5 |
Log: |
6 |
Respect cflags, dont prestrip executables, call gmake for Makedep as GNU make is required, import a patch from bsd ports to make it build on fbsd, keyword ~x86-fbsd; install examples via examples useflag. There still remains that 'gmake Makedep' breaks if used with distcc, I couldn't fix it. |
7 |
(Portage version: 2.1.4.2) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 media-gfx/sam2p/files/sam2p-0.45-fbsd.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/sam2p/files/sam2p-0.45-fbsd.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/sam2p/files/sam2p-0.45-fbsd.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: sam2p-0.45-fbsd.patch |
16 |
=================================================================== |
17 |
--- gensio.cpp.orig Fri Feb 7 02:24:56 2003 |
18 |
+++ gensio.cpp Fri Feb 7 02:25:11 2003 |
19 |
@@ -491,11 +491,7 @@ |
20 |
/* --- */ |
21 |
|
22 |
|
23 |
-#if HAVE_lstat_in_sys_stat |
24 |
-# define PTS_lstat lstat |
25 |
-#else |
26 |
# define PTS_lstat stat |
27 |
-#endif |
28 |
|
29 |
/** @param fname must start with '/' (dir separator) |
30 |
* @return true if file successfully created |
31 |
|
32 |
|
33 |
|
34 |
1.1 media-gfx/sam2p/files/sam2p-0.45-nostrip.patch |
35 |
|
36 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/sam2p/files/sam2p-0.45-nostrip.patch?rev=1.1&view=markup |
37 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/sam2p/files/sam2p-0.45-nostrip.patch?rev=1.1&content-type=text/plain |
38 |
|
39 |
Index: sam2p-0.45-nostrip.patch |
40 |
=================================================================== |
41 |
Index: sam2p-0.45/Makefile |
42 |
=================================================================== |
43 |
--- sam2p-0.45.orig/Makefile |
44 |
+++ sam2p-0.45/Makefile |
45 |
@@ -17,7 +17,7 @@ PERL_BADLANG=x |
46 |
export PERL_BADLANG |
47 |
|
48 |
CXXX=$(CXD_assert) |
49 |
-LDALL=$(LDXX) -s $(LDFLAGS) $(LIBS) |
50 |
+LDALL=$(LDXX) $(LDFLAGS) $(LIBS) |
51 |
ifeq ($(ENABLE_DEBUG), no) |
52 |
CXXX=$(CXD_no) |
53 |
endif |
54 |
|
55 |
|
56 |
|
57 |
1.1 media-gfx/sam2p/files/sam2p-0.45-cflags.patch |
58 |
|
59 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/sam2p/files/sam2p-0.45-cflags.patch?rev=1.1&view=markup |
60 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/sam2p/files/sam2p-0.45-cflags.patch?rev=1.1&content-type=text/plain |
61 |
|
62 |
Index: sam2p-0.45-cflags.patch |
63 |
=================================================================== |
64 |
Index: sam2p-0.45/configure.in |
65 |
=================================================================== |
66 |
--- sam2p-0.45.orig/configure.in |
67 |
+++ sam2p-0.45/configure.in |
68 |
@@ -81,7 +81,7 @@ fi |
69 |
dnl Checks for programs. |
70 |
dnl AC_PROG_CC |
71 |
AC_LANG_CPLUSPLUS |
72 |
-CXXFLAGS=" " |
73 |
+#CXXFLAGS=" " |
74 |
dnl ^^^ set it to non-empty, so AC_PROG_CXX won't include `-g' |
75 |
CCC="$CCC g++" |
76 |
dnl ^^^ check g++ before c++ (see acspecific.m4, grep AC_PROG_CXX) |
77 |
@@ -215,7 +215,7 @@ AC_OUTPUT(Makehelp) |
78 |
|
79 |
dnl AC_PTS_RUN_OK([perl -x -S ./ccdep.pl $CXX], [], [AC_MSG_ERROR(cannot compute depends)]) |
80 |
rm -f Makedep |
81 |
-AC_PTS_RUN_OK([make Makedep], [], [AC_MSG_ERROR(cannot compute depends)]) |
82 |
+AC_PTS_RUN_OK([gmake Makedep], [], [AC_MSG_ERROR(cannot compute depends)]) |
83 |
AC_PTS_OK |
84 |
echo "configure done. Now you should run: make; make install" |
85 |
|
86 |
Index: sam2p-0.45/Makefile |
87 |
=================================================================== |
88 |
--- sam2p-0.45.orig/Makefile |
89 |
+++ sam2p-0.45/Makefile |
90 |
@@ -49,8 +49,8 @@ IDE_MODES := release debug |
91 |
IDE_TARGETS_debug := $(patsubst %,%.yes, $(TARGETS)) |
92 |
IDE_TARGETS_release := $(TARGETS) |
93 |
|
94 |
-CXD_assert =$(CXX) -s -O2 |
95 |
-CXD_no =$(CXX) -s -DNDEBUG -O3 |
96 |
+CXD_assert =$(CXX) |
97 |
+CXD_no =$(CXX) -DNDEBUG |
98 |
# CXD_yes =$(CXX) $(GFLAG) -lefence |
99 |
CXD_yes =$(CXX) $(GFLAG) |
100 |
CXD_checker=checkerg++ $(GFLAG) |
101 |
|
102 |
|
103 |
|
104 |
-- |
105 |
gentoo-commits@l.g.o mailing list |