aboutsummaryrefslogtreecommitdiff
path: root/news/diablo
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2007-07-03 19:59:12 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2007-07-03 19:59:12 +0000
commit26360ed531a1286fe9030a1eb5b4027732d4b09f (patch)
treeae8d9df1a1a5f957dc80c3849e842e9641a4d9a1 /news/diablo
parent3412ad5fcb311d2c7d12e814a5da379068c04a80 (diff)
downloadports-26360ed531a1286fe9030a1eb5b4027732d4b09f.tar.gz
ports-26360ed531a1286fe9030a1eb5b4027732d4b09f.zip
Notes
Diffstat (limited to 'news/diablo')
-rw-r--r--news/diablo/Makefile32
1 files changed, 14 insertions, 18 deletions
diff --git a/news/diablo/Makefile b/news/diablo/Makefile
index 0ba473e62a6e..2bed24f2357f 100644
--- a/news/diablo/Makefile
+++ b/news/diablo/Makefile
@@ -1,6 +1,6 @@
-# New ports collection makefile for: diablo
-# Date created: June 2nd 1997
-# Whom: jfitz
+# New ports collection makefile for: Diablo
+# Date created: June 2nd 1997
+# Whom: James FitzGibbon <jfitz@FreeBSD.org>
#
# $FreeBSD$
#
@@ -25,20 +25,16 @@ MAN8= dicmd.8 didump.8 dexpireover.8 dfeedinfo.8 dgrpctl.8 \
doverctl.8 drequeue.8 dhisexpire.8
PORTDOCS= COPYRIGHT INSTALL README.READER README.SERVER RELEASE_NOTES
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} >= 700042
-BROKEN= Broken with gcc 4.2
-.endif
-
post-extract:
@${CP} ${SCRIPTDIR}/diablo.sh-sample ${WRKDIR}
-
-do-configure:
- @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g;\
- s|-g -O2|${CFLAGS}|' \
+ @${REINPLACE_CMD} -E 's|%%PREFIX%%|${PREFIX}|g ;\
+ s|-g -O.?|${CFLAGS}| ; s|g?cc|${CC}|' \
${WRKDIR}/diablo.sh-sample ${WRKSRC}/XMakefile.inc
-.ifndef WITH_DES
+# Fix for GCC 4.2
+ @${REINPLACE_CMD} -e 's|VServerConfig\[\]|*VServerConfig|' \
+ ${WRKSRC}/dreaderd/main.c
+
+.if !defined(WITH_DES)
@${REINPLACE_CMD} -e 's| -ldes||g' ${WRKSRC}/XMakefile.inc
.endif
@@ -46,15 +42,15 @@ do-build:
@cd ${WRKSRC} && xmake all
pre-install:
- @${INSTALL} -d ${DOCDIR} ${PREFIX}/news ${PREFIX}/news/dbin
+ ${INSTALL} -d ${DOCDIR} ${PREFIX}/news ${PREFIX}/news/dbin
do-install:
@cd ${WRKSRC} && xmake install
- @${INSTALL_SCRIPT} ${WRKDIR}/diablo.sh-sample ${PREFIX}/etc/rc.d
+ ${INSTALL_SCRIPT} ${WRKDIR}/diablo.sh-sample ${PREFIX}/etc/rc.d
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for file in ${PORTDOCS}
- @${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.endif
@@ -63,4 +59,4 @@ post-install:
@${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
@${RM} -rf ${PREFIX}/news/man
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>