summaryrefslogtreecommitdiffstats
path: root/news
diff options
context:
space:
mode:
authordanfe <danfe@FreeBSD.org>2007-07-03 19:59:12 +0000
committerdanfe <danfe@FreeBSD.org>2007-07-03 19:59:12 +0000
commit303f42ba19bc7ff41fe219ed0d1847ba7a9ba6d0 (patch)
tree77a753a4daf7d54945c384411393ac4092fbeaa2 /news
parent8c6ec6ac52351a3d9044a3a572651d5ae7d7936d (diff)
downloadFreeBSD-ports-303f42ba19bc7ff41fe219ed0d1847ba7a9ba6d0.zip
FreeBSD-ports-303f42ba19bc7ff41fe219ed0d1847ba7a9ba6d0.tar.gz
- Respect ${CC}
- Fix the build with recent GCC [1] - Clean up Makefile Reported by: pointyhat (logs) [1]
Diffstat (limited to 'news')
-rw-r--r--news/diablo/Makefile32
1 files changed, 14 insertions, 18 deletions
diff --git a/news/diablo/Makefile b/news/diablo/Makefile
index 0ba473e..2bed24f 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>
OpenPOWER on IntegriCloud