svn commit: r548987 - in head/devel/libixp: . files
Stefan Eßer
se at FreeBSD.org
Sat Sep 19 14:02:00 UTC 2020
Author: se
Date: Sat Sep 19 14:01:58 2020
New Revision: 548987
URL: https://svnweb.freebsd.org/changeset/ports/548987
Log:
Fix build with -fno-common
While here add the LICENSE information and move one variable to comply
with the canonical order.
Added:
head/devel/libixp/files/
head/devel/libixp/files/patch-cmd_ixpc.c (contents, props changed)
head/devel/libixp/files/patch-include_ixp__local.h (contents, props changed)
Modified:
head/devel/libixp/Makefile
Modified: head/devel/libixp/Makefile
==============================================================================
--- head/devel/libixp/Makefile Sat Sep 19 13:47:29 2020 (r548986)
+++ head/devel/libixp/Makefile Sat Sep 19 14:01:58 2020 (r548987)
@@ -3,17 +3,21 @@
PORTNAME= libixp
PORTVERSION= 0.5
+PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= http://dl.suckless.org/libs/
MAINTAINER= sbz at FreeBSD.org
COMMENT= Standalone client/server 9P library
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/libixp/LICENSE
+
USE_LDCONFIG= yes
-CFLAGS+= -I. -I${WRKSRC}/include -fPIC
-LDFLAGS+= -L. -L${WRKSRC}/lib
MAKE_ARGS= PREFIX="${PREFIX}" CC="${CC} -c" LD="${CC}" \
CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
+CFLAGS+= -I. -I${WRKSRC}/include -fPIC
+LDFLAGS+= -L. -L${WRKSRC}/lib
post-patch:
@${REINPLACE_CMD} -e 's|\.a|.so|g; s|(AR)|(LD) -shared -fPIC -o|' \
Added: head/devel/libixp/files/patch-cmd_ixpc.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/libixp/files/patch-cmd_ixpc.c Sat Sep 19 14:01:58 2020 (r548987)
@@ -0,0 +1,10 @@
+--- cmd/ixpc.c.orig 2008-09-21 03:39:51 UTC
++++ cmd/ixpc.c
+@@ -14,6 +14,7 @@
+ #define fatal(...) ixp_eprint("ixpc: fatal: " __VA_ARGS__); \
+
+ static IxpClient *client;
++char *argv0;
+
+ static void
+ usage(void) {
Added: head/devel/libixp/files/patch-include_ixp__local.h
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/libixp/files/patch-include_ixp__local.h Sat Sep 19 14:01:58 2020 (r548987)
@@ -0,0 +1,11 @@
+--- include/ixp_local.h.orig 2008-09-21 03:39:51 UTC
++++ include/ixp_local.h
+@@ -2,7 +2,7 @@
+ #define IXP_P9_STRUCTS
+ #include <ixp.h>
+
+-char *argv0;
++extern char *argv0;
+ #define ARGBEGIN \
+ int _argtmp=0, _inargv=0; char *_argv=nil; \
+ if(!argv0) {argv0=*argv; argv++, argc--;} \
More information about the svn-ports-all
mailing list