diff options
author | arved <arved@FreeBSD.org> | 2004-08-21 19:40:40 +0800 |
---|---|---|
committer | arved <arved@FreeBSD.org> | 2004-08-21 19:40:40 +0800 |
commit | e41ee6a2cdb7d9bb6b62799d578cc79b7cf94aae (patch) | |
tree | b1bd4595c1028865e4962aaa31b8c7fe08ae3776 /irc/tr-ircd | |
parent | 19f6f95350a0de5b073d67e833bd3ccf8931cd48 (diff) | |
download | freebsd-ports-gnome-e41ee6a2cdb7d9bb6b62799d578cc79b7cf94aae.tar.gz freebsd-ports-gnome-e41ee6a2cdb7d9bb6b62799d578cc79b7cf94aae.tar.zst freebsd-ports-gnome-e41ee6a2cdb7d9bb6b62799d578cc79b7cf94aae.zip |
* Fix build on amd64
- use va_copy
- Compile shared library with -fPIC
* Respect CFLAGS
Diffstat (limited to 'irc/tr-ircd')
-rw-r--r-- | irc/tr-ircd/Makefile | 17 | ||||
-rw-r--r-- | irc/tr-ircd/files/patch-ircsprintf.c | 12 | ||||
-rw-r--r-- | irc/tr-ircd/files/patch-wordfilter-Makefile.in | 11 |
3 files changed, 31 insertions, 9 deletions
diff --git a/irc/tr-ircd/Makefile b/irc/tr-ircd/Makefile index 95f0c47c2863..8a2add8e0ab1 100644 --- a/irc/tr-ircd/Makefile +++ b/irc/tr-ircd/Makefile @@ -17,11 +17,7 @@ MAINTAINER= ports@FreeBSD.org COMMENT= An irc daeemon based on Bahamut and hybrid-7 USE_GMAKE= yes - -MAN1= md5sum.1 -MAN5= ircd.conf.5 -MAN8= ircd.8 - +USE_REINPLACE= yes GNU_CONFIGURE= yes CONFIGURE_ARGS= --localstatedir=/var \ --libdir=${PREFIX}/lib/tr-ircd \ @@ -30,6 +26,10 @@ CONFIGURE_ARGS= --localstatedir=/var \ --enable-root \ --with-fakehost-postfix=COM +MAN1= md5sum.1 +MAN5= ircd.conf.5 +MAN8= ircd.8 + .if !defined(WITHOUT_SSL) USE_OPENSSL= yes CONFIGURE_ARGS+=--enable-openssl=${OPENSSLBASE} @@ -41,14 +41,13 @@ CONFIGURE_ARGS+=--enable-small-nets .include <bsd.port.pre.mk> -.if ${ARCH} == "amd64" -BROKEN= "Does not compile on amd64" -.endif - .if ${OSVERSION} >= 400014 && !defined(WITHOUT_IPV6) CONFIGURE_ARGS+=--enable-ipv6 .endif +post-patch: + ${REINPLACE_CMD} -e "s,-O2,${CFLAGS}," ${WRKSRC}/configure + post-install: @${ECHO} "Installing ${PREFIX}/etc/rc.d/tr-ircd.sh.sample startup file." @${INSTALL_SCRIPT} ${FILESDIR}/tr-ircd.sh \ diff --git a/irc/tr-ircd/files/patch-ircsprintf.c b/irc/tr-ircd/files/patch-ircsprintf.c new file mode 100644 index 000000000000..b988c2d2df40 --- /dev/null +++ b/irc/tr-ircd/files/patch-ircsprintf.c @@ -0,0 +1,12 @@ +--- src/ircsprintf.c.orig Sat Aug 21 13:36:50 2004 ++++ src/ircsprintf.c Sat Aug 21 13:37:15 2004 +@@ -316,7 +316,8 @@ + const char *format = pattern; + char *buf = str; + int len = 0; +- va_list ap = vl; ++ va_list ap; ++ va_copy(ap,vl); + + while (*format) { + switch (*format) { diff --git a/irc/tr-ircd/files/patch-wordfilter-Makefile.in b/irc/tr-ircd/files/patch-wordfilter-Makefile.in new file mode 100644 index 000000000000..3b727453d226 --- /dev/null +++ b/irc/tr-ircd/files/patch-wordfilter-Makefile.in @@ -0,0 +1,11 @@ +--- contrib/wordfilter/Makefile.in.orig Sat Aug 21 13:34:23 2004 ++++ contrib/wordfilter/Makefile.in Sat Aug 21 13:34:39 2004 +@@ -16,7 +16,7 @@ + RANLIB = @RANLIB@ + MD5SUMS = @MD5SUMS@ + LEXLIB = @LEXLIB@ +-CFLAGS = @IRC_CFLAGS@ -DBASENAME=\"$(BN1)$(BN2)$(BN3)\" -DIRCD_PREFIX=\"@prefix@\" ++CFLAGS = @IRC_CFLAGS@ -DBASENAME=\"$(BN1)$(BN2)$(BN3)\" -DIRCD_PREFIX=\"@prefix@\" -fPIC + LDFLAGS = @LDFLAGS@ + MKDEP = @MKDEP@ -DBASENAME=\"$(BN1)$(BN2)$(BN3)\" -DIRCD_PREFIX=\"@prefix@\" + MV = @MV@ |