Lines 38-43
Link Here
|
38 |
sed -i -e "s:-idb:-idb \"nostrip\" -idb:g" \ |
38 |
sed -i -e "s:-idb:-idb \"nostrip\" -idb:g" \ |
39 |
"${dir}"/Makefile.in || die "sed failed" |
39 |
"${dir}"/Makefile.in || die "sed failed" |
40 |
done |
40 |
done |
|
|
41 |
sed -i \ |
42 |
-e 's/\${CCF}/& $(USER_LDFLAGS)/' \ |
43 |
etc/Makefile.in || die |
44 |
sed -i \ |
45 |
-e 's/\${C++}/& $(USER_LDFLAGS)/' \ |
46 |
libhylafax/Makefile.LINUXdso || die |
47 |
sed -i \ |
48 |
-e '/\${LDFLAGS}/s: : $(USER_LDFLAGS) :' \ |
49 |
rules.in faxalter/Makefile.in faxcover/Makefile.in faxd/Makefile.in faxmail/Makefile.in faxrm/Makefile.in faxstat/Makefile.in hfaxd/Makefile.in sendfax/Makefile.in sendpage/Makefile.in sgi2fax/Makefile.in util/Makefile.in || die |
41 |
|
50 |
|
42 |
sed -i -e "s|-fpic|-fPIC|g" \ |
51 |
sed -i -e "s|-fpic|-fPIC|g" \ |
43 |
configure || die |
52 |
configure || die |
Lines 45-58
Link Here
|
45 |
# new locale stuff lacks DESTDIR |
54 |
# new locale stuff lacks DESTDIR |
46 |
sed -i -e "s|\${LOCALEDIR}|\${DESTDIR}\${LOCALEDIR}|g" \ |
55 |
sed -i -e "s|\${LOCALEDIR}|\${DESTDIR}\${LOCALEDIR}|g" \ |
47 |
po/nls.mk || die |
56 |
po/nls.mk || die |
48 |
} |
57 |
(echo "CC=\"$(tc-getCC)\""; echo "CXX=\"$(tc-getCXX)\"") >> config.site |
49 |
|
|
|
50 |
src_configure() { |
51 |
# update TIFF check to allow 3.9.x |
58 |
# update TIFF check to allow 3.9.x |
52 |
sed -i \ |
59 |
sed -i \ |
|
|
60 |
-e 's/libc\.h //' \ |
53 |
-e "s|5678|56789|" \ |
61 |
-e "s|5678|56789|" \ |
54 |
-e "s|3.8.|3.9.|" \ |
62 |
-e "s|3.8.|3.9.|" \ |
55 |
configure || die |
63 |
configure || die |
|
|
64 |
} |
65 |
|
66 |
src_configure() { |
56 |
|
67 |
|
57 |
local my_conf=" |
68 |
local my_conf=" |
58 |
--with-DIR_BIN=/usr/bin |
69 |
--with-DIR_BIN=/usr/bin |
Lines 102-115
Link Here
|
102 |
#--enable-pam isn't valid |
113 |
#--enable-pam isn't valid |
103 |
use pam || my_conf="${my_conf} $(use_enable pam)" |
114 |
use pam || my_conf="${my_conf} $(use_enable pam)" |
104 |
|
115 |
|
105 |
myconf="CC=$(tc-getCC) CXX=$(tc-getCXX) ${my_conf}" |
|
|
106 |
|
107 |
# eval required for quoting in ${my_conf} to work properly, better way? |
116 |
# eval required for quoting in ${my_conf} to work properly, better way? |
108 |
eval ./configure --nointeractive ${my_conf} || die "./configure failed" |
117 |
eval ./configure --nointeractive ${my_conf} || die "./configure failed" |
109 |
} |
118 |
} |
110 |
|
119 |
|
111 |
src_compile() { |
120 |
src_compile() { |
112 |
emake -j1 || die "emake failed" |
121 |
emake -j1 USER_LDFLAGS="${LDFLAGS}" || die "emake failed" |
113 |
} |
122 |
} |
114 |
|
123 |
|
115 |
src_install() { |
124 |
src_install() { |