pkgsrc/graphics/xv/Makefile
tnn 882d3eb4fe Put back a couple of IRIX conditionals the way they used to behave,
e.g. match IRIX 5.x but not 6.x. Some of these may indeed apply to 6.x
too, but let's be conservative. PR pkg/38224.
2008-03-11 18:47:40 +00:00

69 lines
2.2 KiB
Makefile

# $NetBSD: Makefile,v 1.73 2008/03/11 18:47:40 tnn Exp $
DISTNAME= xv-3.10a
PKGREVISION= 13
CATEGORIES= graphics x11
MASTER_SITES= ftp://ftp.cis.upenn.edu/pub/xv/
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} xv-3.10a-jumbo-patches-20070520.tar.gz
PATCHFILES= xv-3.10a-jumbo-patches-20070520.tar.gz
PATCH_SITES= ${MASTER_SITE_SOURCEFORGE:=png-mng/}
PATCH_DIST_CAT= ${GZCAT} $$patchfile | ${TAR} -Oxf - "*-patch-*"
PATCH_DIST_STRIP= -p1
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.trilon.com/xv/
# and... http://www.sonic.net/~roelofs/greg_xv.html
COMMENT= X11 program that displays images of various formats
SITES.xv-3.10a-jumbo-patches-20070520.tar.gz= ${MASTER_SITE_SOURCEFORGE:=png-mng/}
USE_IMAKE= YES
USE_TOOLS+= gzcat tar
# See the end of README in work/xv-3.10a for details.
RESTRICTED= Distribution of modified copies and commercial distribution is not permitted.
NO_SRC_ON_CDROM= ${RESTRICTED}
NO_BIN_ON_CDROM= ${RESTRICTED}
NO_BIN_ON_FTP= ${RESTRICTED}
MAKEFLAGS+= PREFIX=${PREFIX:Q}
MAKEFLAGS+= PNGDIR=${BUILDLINK_PREFIX.png}
CPPFLAGS+= -DDOCDIR=\""${PREFIX:Q}/share/doc/xv"\"
LICENSE= xv-license
BUILD_TARGET= depend all
SUBST_CLASSES+= gspath
SUBST_FILES.gspath= config.h
SUBST_SED.gspath= -e 's|@LOCALBASE@|${LOCALBASE}|g'
SUBST_STAGE.gspath= post-configure
SUBST_MESSAGE.gspath= Fixing path to ghostscript interpreter.
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "SunOS"
SUBST_CLASSES+= ccflags
SUBST_FILES.ccflags= Makefile
SUBST_SED.ccflags= -e 's| CC = .*| CC = ${CC:Q}|'
SUBST_SED.ccflags+= -e 's| CCOPTIONS = .*| CCOPTIONS = ${CFLAGS:Q}|'
SUBST_SED.ccflags+= -e 's| CDEBUGFLAGS = .*| CDEBUGFLAGS =|'
SUBST_STAGE.ccflags= post-configure
SUBST_MESSAGE.ccflags= Fixing compiler flags for Solaris.
.endif
.if ${OPSYS} == "SunOS" || !empty(MACHINE_PLATFORM:MIRIX-5*)
CPPFLAGS+= -DNEED_ALLOCA_H
.endif
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/xv
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/xv
${INSTALL_DATA} ${WRKSRC}/docs/xvdocs.ps ${PREFIX}/share/doc/xv
BUILDLINK_DEPMETHOD.libXt?= build
.include "../../graphics/png/buildlink3.mk"
.include "../../graphics/tiff/buildlink3.mk"
.include "../../x11/libXext/buildlink3.mk"
.include "../../x11/libXt/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"