- Fix the build with GCC 4.2 [1]

- Nuke trivial pkg-message.in
- Usual round of Makefile cleanups

Reported by:	pointyhat (logs) [1]
This commit is contained in:
Alexey Dokuchaev 2007-07-04 16:56:23 +00:00
parent 9f2a2b8efc
commit bb862a8251
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=194923
2 changed files with 12 additions and 26 deletions

View file

@ -1,6 +1,6 @@
# New ports collection makefile for: njs
# New ports collection makefile for: NJS
# Date created: Fri Jan 11 20:45:26 GMT 2002
# Whom: thierry@pompo.net
# Whom: Thierry Thomas <thierry@pompo.net>
#
# $FreeBSD$
#
@ -22,29 +22,20 @@ USE_LDCONFIG= yes
USE_AUTOTOOLS= libtool:15
CONFIGURE_ARGS= --enable-shared
SUB_FILES= pkg-message
PKGMESSAGE= ${WRKDIR}/pkg-message
MAN1= js.1 jsdas.1
INFO= js
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 700042
BROKEN= Broken with gcc 4.2
.endif
post-extract:
@${RM} ${WRKSRC}/docs/js.info*
# Fix for GCC 4.2
@${REINPLACE_CMD} -E \
's,(\(unsigned char \*\) )(ptr \+=),\2 sizeof\1*,' \
${WRKSRC}/src/iostream.c
pre-install:
.if defined(NOPORTDOCS)
@${REINPLACE_CMD} -e "s:docs micros examples:micros:g" ${WRKSRC}/Makefile
@${REINPLACE_CMD} -e "s:docs micros examples:micros:g" \
${WRKSRC}/Makefile
.endif
post-install:
@${ECHO_MSG}
@${CAT} ${PKGMESSAGE}
@${ECHO_MSG}
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View file

@ -1,5 +0,0 @@
*****************************************************************************
js & jsdas have been installed in %%PREFIX%%/bin.
*****************************************************************************