2007-05-19 20:36:56 +00:00
|
|
|
# New ports collection makefile for: imake-6
|
|
|
|
# Date created: 18 Jun 2004
|
|
|
|
# Whom: anholt
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= imake
|
2011-02-25 16:52:50 +00:00
|
|
|
PORTVERSION= 1.0.4
|
2007-05-19 20:36:56 +00:00
|
|
|
PORTEPOCH= 1
|
|
|
|
CATEGORIES= devel
|
|
|
|
|
|
|
|
MAINTAINER= x11@FreeBSD.org
|
|
|
|
COMMENT= Imake and other utilities from X.Org
|
|
|
|
|
|
|
|
RUN_DEPENDS= gccmakedep:${PORTSDIR}/devel/gccmakedep \
|
|
|
|
makedepend:${PORTSDIR}/devel/makedepend \
|
|
|
|
${PREFIX}/lib/X11/config/xorg.cf:${PORTSDIR}/x11/xorg-cf-files
|
|
|
|
|
|
|
|
USE_PERL5= yes
|
|
|
|
|
|
|
|
XORG_CAT= util
|
|
|
|
USE_XORG= xproto
|
|
|
|
|
|
|
|
.ifdef USE_IMAKE
|
|
|
|
.error You have `USE_IMAKE' variable defined either in environment or in make(1) arguments. Please undefine and try again.
|
|
|
|
.endif
|
|
|
|
|
2008-08-26 14:14:27 +00:00
|
|
|
MAN1= ccmakedep.1 \
|
2007-05-19 20:36:56 +00:00
|
|
|
cleanlinks.1 \
|
|
|
|
imake.1 \
|
|
|
|
makeg.1 \
|
|
|
|
mergelib.1 \
|
|
|
|
mkdirhier.1 \
|
|
|
|
mkhtmlindex.1 \
|
|
|
|
revpath.1 \
|
|
|
|
xmkmf.1
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${PERL} -pi -e 's,^#!/usr/bin/perl,#!${PERL},' ${WRKSRC}/mkhtmlindex.pl
|
|
|
|
|
2011-12-02 16:04:12 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
# clang's cpp destroys whitespace, particularly hard tabs in makefiles,
|
|
|
|
# which is fatal for imake.
|
|
|
|
.if defined(CC) && ${CC} == "clang"
|
2011-12-02 16:29:07 +00:00
|
|
|
BUILD_DEPENDS+= ucpp:${PORTSDIR}/devel/ucpp
|
2011-12-02 16:24:31 +00:00
|
|
|
RUN_DEPENDS+= ucpp:${PORTSDIR}/devel/ucpp
|
2011-12-02 16:04:12 +00:00
|
|
|
CONFIGURE_ENV+= ac_cv_path_RAWCPP="ucpp -s"
|
|
|
|
|
|
|
|
post-build:
|
|
|
|
${REINPLACE_CMD} -e 's|^configdirspec= *|configdirspec=|' ${WRKSRC}/xmkmf
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|