1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-07 02:06:57 +00:00
freebsd-ports/x11-toolkits/Xaw3d/Makefile
Mark Linimon a8693b8dee Force numerous ports that fail to build with clang over to instead always
rely on gcc.  The patch uses the new USE_GCC=any code in Mk/bsd.gcc.mk to
accomplish this.

The ports chosen were ports that blocked 2 or more ports from building with
clang.  (There are several hundred other ports that still fail to build with
clang, even with this patch.  This is merely one step along the way.)

Those interested in fixing these ports with clang, and have clang as their
default compiler, can simply set FORCE_BASE_CC_FOR_TESTING=yes.

For those who have gcc as their default compiler, this change is believed
to cause no change.

Hat:		portmgr
Tested with:	multiple runs on amd64-8-exp-bcm and 9-exp-clang, with various
		combinations of patch/no-patch and flag settings.
2012-10-09 22:12:13 +00:00

59 lines
1.2 KiB
Makefile

# Created by: asami
# $FreeBSD$
PORTNAME= Xaw3d
PORTVERSION= 1.5E
PORTREVISION= 4
CATEGORIES= x11-toolkits
MASTER_SITES= ftp://ftp.visi.com/users/hawkeyd/X/ \
ftp.slackware.com/pub/slackware/slackware_source/x/xaw3d/
MAINTAINER= dinoex@FreeBSD.org
COMMENT= A 3-D Athena Widget set that looks like Motif
LICENSE= MIT
WRKSRC= ${WRKDIR}/xc/lib/Xaw3d
USE_GCC= any
USE_IMAKE= yes
USE_XORG= x11 xext xmu xt sm ice xpm
USE_LDCONFIG= yes
SUB_FILES= pkg-message
SUB_LIST= XAWVER="${XAWVER}"
.include <bsd.port.pre.mk>
.if !defined(WITHOUT_NLS)
USE_GETTEXT= yes
PLIST_SUB+= NLS=""
.else
PLIST_SUB+= NLS="@comment "
.endif
post-extract:
${MKDIR} ${WRKSRC}/X11/Xaw3d
cd ${WRKSRC}/X11/Xaw3d; ${LN} -sf ../../*.h .
.if defined(WITHOUT_NLS)
${REINPLACE_CMD} -e '/LINTLIBS =/s/=.*/=/' \
-e '/#ifdef XawI18nDefines/s//#if 0/' \
${WRKSRC}/Imakefile
.endif
# Workaround a bug in egcs on FreeBSD/Alpha.
.if ${ARCH} == "alpha"
post-configure:
@(cd ${WRKSRC}; ${MV} Makefile Makefile.orig; ${SED} -e \
's/CDEBUGFLAGS = -O/CDEBUGFLAGS =/g' Makefile.orig > Makefile)
.endif
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README.XAW3D ${DOCSDIR}/
.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>