Skip to content

Commit f019f1c

Browse files
committed
snownews: fix implicit declaration error
Also disable silent rules, fix deps and archflags.
1 parent 3350da7 commit f019f1c

File tree

3 files changed

+48
-8
lines changed

3 files changed

+48
-8
lines changed

net/snownews/Portfile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,19 @@ depends_build-append \
2626
port:pkgconfig \
2727
port:gettext
2828

29-
depends_lib port:gettext-runtime \
30-
port:libiconv \
29+
depends_lib port:curl \
30+
port:gettext-runtime \
3131
port:libxml2 \
3232
port:ncurses \
33-
port:zlib
33+
path:lib/libssl.dylib:openssl
3434

3535
compiler.c_standard 2011
36-
# Work around MacPorts base C11 compiler selection bug.
37-
# https://github.com/macports/macports-base/pull/196
38-
compiler.blacklist-append {clang < 500}
3936

40-
build.args CC=${configure.cc} \
41-
PREFIX=${prefix}
37+
patchfiles implicit.patch \
38+
verbose-build.patch
39+
40+
build.env "CFLAGS=${configure.cflags} [get_canonical_archflags cc]" \
41+
"LDFLAGS=${configure.ldflags} [get_canonical_archflags ld]"
4242

4343
# create additional destroot directories
4444
pre-destroot {

net/snownews/files/implicit.patch

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
--- config.h.in.orig 2023-04-13 09:38:01
2+
+++ config.h.in 2025-09-24 13:15:24
3+
@@ -54,6 +54,7 @@
4+
#include <stdint.h>
5+
#include <stdlib.h>
6+
#include <string.h>
7+
+#include <strings.h>
8+
#include <limits.h>
9+
#include <locale.h>
10+
#include <assert.h>
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
--- Makefile.orig 2023-04-13 09:38:01
2+
+++ Makefile 2025-09-24 13:19:31
3+
@@ -21,15 +21,15 @@
4+
5+
${exe}: ${objs}
6+
@echo "Linking $@ ..."
7+
- @${CC} ${ldflags} -o $@ $^ ${libs}
8+
+ ${CC} ${ldflags} -o $@ $^ ${libs}
9+
10+
$O%.o: %.c
11+
@echo " Compiling $< ..."
12+
- @${CC} ${cflags} -MMD -MT "$(<:.c=.s) $@" -o $@ -c $<
13+
+ ${CC} ${cflags} -MMD -MT "$(<:.c=.s) $@" -o $@ -c $<
14+
15+
%.s: %.c
16+
@echo " Compiling $< to assembly ..."
17+
- @${CC} ${cflags} -S -o $@ -c $<
18+
+ ${CC} ${cflags} -S -o $@ -c $<
19+
20+
include man/Module.mk
21+
include po/Module.mk
22+
@@ -47,7 +47,7 @@
23+
@${INSTALL} -d $@
24+
${exei}: ${exe} | ${exed}
25+
@echo "Installing $@ ..."
26+
- @${INSTALL_PROGRAM} $< $@
27+
+ ${INSTALL_PROGRAM} $< $@
28+
29+
installdirs: ${exed}
30+
install: ${exei}

0 commit comments

Comments
 (0)