diff options
author | Daichi GOTO <daichi@FreeBSD.org> | 2003-06-19 06:56:25 +0000 |
---|---|---|
committer | Daichi GOTO <daichi@FreeBSD.org> | 2003-06-19 06:56:25 +0000 |
commit | e4b8bfe6d0290b70e5ab93cd5e1c140e6a7ff9c0 (patch) | |
tree | 2b5f26ec9f1d7dbba5dc6176ec144d080cde0be3 /x11-toolkits/xview/Makefile | |
parent | - add optional supports for Zlib and Quota (diff) |
- Unbroke xview on -current machine
- New files patch-old-wait.h patch-text_extras_menu patch-util-Imakefile
types.h.in wait.h.in.
PR: 52437
Submitted by: Serge Gagnon <gagnon__s@videotron.ca> (maintainer)
Notes
Notes:
svn path=/head/; revision=83293
Diffstat (limited to 'x11-toolkits/xview/Makefile')
-rw-r--r-- | x11-toolkits/xview/Makefile | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/x11-toolkits/xview/Makefile b/x11-toolkits/xview/Makefile index 76d3b6e5febd..c281a6f3012f 100644 --- a/x11-toolkits/xview/Makefile +++ b/x11-toolkits/xview/Makefile @@ -15,7 +15,7 @@ MASTER_SITES= ${MASTER_SITE_LOCAL} \ MASTER_SITE_SUBDIR= asami/LOCAL_PORTS libraries DISTNAME= xview3.2p1-X11R6 -MAINTAINER= ports@FreeBSD.org +MAINTAINER= gagnon__s@videotron.ca COMMENT= X Window-System-based Visual/Integrated Environment for Workstations USE_IMAKE= yes @@ -24,18 +24,30 @@ IMAKEINCLUDE= "-I${X11BASE}/lib/X11/config -I${WRKSRC}/config" MAKE_ENV+= IMAKEINCLUDE=${IMAKEINCLUDE} XMKMF= ${SETENV} IMAKEINCLUDE=${IMAKEINCLUDE} xmkmf -a ALL_TARGET= World +USE_REINPLACE= yes +REINPLACE_ARGS= -i "" MAN1= msgfmt.1 xgettext.1 xview.1 -.include <bsd.port.pre.mk> - -.if ${OSVERSION} >= 500113 -BROKEN= "Does not compile" -.endif +post-configure: + ${CP} ${FILESDIR}/wait.h.in ${WRKSRC}/build/include/wait.h + ${CP} ${FILESDIR}/types.h.in ${WRKSRC}/build/include/types.h post-install: + + ${INSTALL_DATA} ${WRKSRC}/build/include/wait.h ${X11BASE}/include/xview/ + ${INSTALL_DATA} ${WRKSRC}/build/include/types.h ${X11BASE}/include/xview/ .if !defined(NOPORTDOCS) @(cd $(WRKSRC); $(MAKE) -k 'SUBDIRS=doc' install) .endif +.include <bsd.port.pre.mk> + +.if ${OSVERSION} >= 500000 +post-patch: + @${FIND} ${WRKSRC} -type f | ${XARGS} ${REINPLACE_CMD} -e \ + 's|#include <sys/types.h>|#include "types.h"|;\ + s|^#endif.*$$|#endif|;s|^#else.*$$|#else|' +.endif + .include <bsd.port.post.mk> |