1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-08 06:48:28 +00:00
freebsd-ports/graphics/xv/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

78 lines
2.1 KiB
Makefile

# New ports collection makefile for: xv
# Date created: 30 October 1994
# Whom: smace
#
# $FreeBSD$
#
PORTNAME= xv
PORTVERSION= 3.10a
PORTREVISION= 15
CATEGORIES+= graphics
MASTER_SITES= ftp://ftp.cis.upenn.edu/pub/xv/:base \
SF/png-mng/XV%20jumbo%20patches/20070520
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:base \
${DISTNAME}-jumbo-patches-20070520.tar.gz
DIST_SUBDIR= ${PORTNAME}
PATCH_SITES= http://www.gregroelofs.com/code/
PATCHFILES= xv-3.10a-enhancements.20070520-20081216.diff
MAINTAINER?= dinoex@FreeBSD.org
COMMENT?= An X11 program that displays images of various formats
LIB_DEPENDS= jpeg.11:${PORTSDIR}/graphics/jpeg \
tiff.4:${PORTSDIR}/graphics/tiff \
png15:${PORTSDIR}/graphics/png \
jasper.4:${PORTSDIR}/graphics/jasper
USE_GCC= any
USE_IMAKE= yes
USE_XORG= xext x11 xt
.if !defined(NOMAN)
MAN1= bggen.1 vdcomp.1 xcmap.1 xv.1 xvp2p.1
.endif
XVDIST= ${DISTDIR}/${DIST_SUBDIR}
CFLAGS+= -I${LOCALBASE}/include/libpng15
pre-patch:
@${PATCH} ${PATCH_ARGS} -p1 < ${WRKDIR}/xv-3.10a-jumbo-fix-enh-patch-20070520.txt
post-patch:
@${MV} ${WRKSRC}/config.h ${WRKSRC}/config.h.in
@${CAT} ${WRKSRC}/config.h.in | \
${SED} -e "s@%%LOCALBASE%%@${LOCALBASE}@" > ${WRKSRC}/config.h
.for i in ${MAN1}
@${CP} ${WRKSRC}/docs/${i:R}.man ${WRKSRC}
.endfor
.if defined(NOMAN)
${REINPLACE_CMD} -e 's,^InstallManPage.*$$,/\* $$& \*/,' \
${WRKSRC}/Imakefile
.endif
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/README.jumbo ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/README.pcd ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/docs/epsf.ps ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/docs/xpm.ps ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/docs/xvdocs.ps ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/docs/xvtitle.ps ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/docs/help ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/docs/bmp.doc ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/docs/gif* ${DOCSDIR}
.endif
.if defined(CC) && ${CC:T:Mclang}
# Optimizer crashes with
# Assertion failed: (isPtrIV == IndVar->getType()->isPointerTy() && "IndVar type must match IVInit type")
CFLAGS:= ${CFLAGS:S/-O2//g}
.endif
.include <bsd.port.mk>