2013-02-16 12:18:58 +01:00
|
|
|
# $NetBSD: Makefile,v 1.87 2013/02/16 11:22:35 wiz Exp $
|
1997-11-20 14:07:26 +01:00
|
|
|
|
|
|
|
DISTNAME= xv-3.10a
|
2013-02-16 12:18:58 +01:00
|
|
|
PKGREVISION= 21
|
2006-05-14 23:16:00 +02:00
|
|
|
CATEGORIES= graphics x11
|
2005-08-10 18:50:18 +02:00
|
|
|
MASTER_SITES= ftp://ftp.cis.upenn.edu/pub/xv/
|
2010-03-30 11:51:30 +02:00
|
|
|
DISTFILES= ${DEFAULT_DISTFILES} ${JUMBO_PATCHES}
|
1997-11-20 14:07:26 +01:00
|
|
|
|
2010-03-30 11:51:30 +02:00
|
|
|
PATCHFILES= ${JUMBO_PATCHES}
|
|
|
|
JUMBO_PATCHES= xv-3.10a-jumbo-patches-20070520.tar.gz
|
|
|
|
PATCH_DIST_CAT.${JUMBO_PATCHES}= ${CAT} ${WRKDIR}/*-patch-*
|
|
|
|
PATCH_DIST_STRIP.${JUMBO_PATCHES}= -p1
|
|
|
|
SITES.${JUMBO_PATCHES}= ${MASTER_SITE_SOURCEFORGE:=png-mng/}
|
1997-11-20 14:07:26 +01:00
|
|
|
|
2006-03-04 22:28:51 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
1999-06-14 13:09:38 +02:00
|
|
|
HOMEPAGE= http://www.trilon.com/xv/
|
2005-08-10 18:50:18 +02:00
|
|
|
# and... http://www.sonic.net/~roelofs/greg_xv.html
|
2001-02-16 16:22:13 +01:00
|
|
|
COMMENT= X11 program that displays images of various formats
|
2009-05-19 10:59:00 +02:00
|
|
|
LICENSE= xv-license
|
1998-01-24 06:32:04 +01:00
|
|
|
|
2001-07-08 22:12:45 +02:00
|
|
|
USE_IMAKE= YES
|
1997-11-20 14:07:26 +01:00
|
|
|
|
Define NO_SRC_ON_CDROM because the README says
Permission to copy and distribute XV in its entirety, for
non-commercial purposes, is hereby granted without fee, provided that
this license information and copyright notice appear in all copies.
Note that distributing XV 'bundled' in with any product is considered
to be a 'commercial purpose'.
Define NO_BIN_ON_{CDROM,FTP} because the package has been patched, and
because the binary package does not include source.
If you redistribute XV, the *entire* contents of this distribution
must be distributed, including the README, and INSTALL files, the
sources, and the complete contents of the 'docs' directory.
The software may be modified for your own purposes, but modified
versions may not be distributed without prior consent of the author.
2005-08-10 20:36:01 +02:00
|
|
|
# See the end of README in work/xv-3.10a for details.
|
2006-04-22 11:22:05 +02:00
|
|
|
RESTRICTED= Distribution of modified copies and commercial distribution is not permitted.
|
Define NO_SRC_ON_CDROM because the README says
Permission to copy and distribute XV in its entirety, for
non-commercial purposes, is hereby granted without fee, provided that
this license information and copyright notice appear in all copies.
Note that distributing XV 'bundled' in with any product is considered
to be a 'commercial purpose'.
Define NO_BIN_ON_{CDROM,FTP} because the package has been patched, and
because the binary package does not include source.
If you redistribute XV, the *entire* contents of this distribution
must be distributed, including the README, and INSTALL files, the
sources, and the complete contents of the 'docs' directory.
The software may be modified for your own purposes, but modified
versions may not be distributed without prior consent of the author.
2005-08-10 20:36:01 +02:00
|
|
|
NO_SRC_ON_CDROM= ${RESTRICTED}
|
|
|
|
NO_BIN_ON_CDROM= ${RESTRICTED}
|
|
|
|
NO_BIN_ON_FTP= ${RESTRICTED}
|
|
|
|
|
2007-07-08 12:50:23 +02:00
|
|
|
MAKEFLAGS+= PREFIX=${PREFIX:Q}
|
|
|
|
MAKEFLAGS+= PNGDIR=${BUILDLINK_PREFIX.png}
|
|
|
|
CPPFLAGS+= -DDOCDIR=\""${PREFIX:Q}/share/doc/xv"\"
|
|
|
|
|
|
|
|
BUILD_TARGET= depend all
|
|
|
|
|
|
|
|
SUBST_CLASSES+= gspath
|
|
|
|
SUBST_FILES.gspath= config.h
|
2009-05-04 00:58:31 +02:00
|
|
|
SUBST_SED.gspath= -e 's|@PREFIX@|${PREFIX}|g'
|
2007-07-08 12:50:23 +02:00
|
|
|
SUBST_STAGE.gspath= post-configure
|
|
|
|
SUBST_MESSAGE.gspath= Fixing path to ghostscript interpreter.
|
1998-07-06 17:38:00 +02:00
|
|
|
|
2009-05-04 00:58:31 +02:00
|
|
|
INSTALLATION_DIRS+= share/doc/xv
|
|
|
|
|
1998-06-03 14:59:39 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2007-07-08 12:50:23 +02:00
|
|
|
.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.
|
2006-05-14 23:16:00 +02:00
|
|
|
.endif
|
|
|
|
|
2008-03-11 19:47:40 +01:00
|
|
|
.if ${OPSYS} == "SunOS" || !empty(MACHINE_PLATFORM:MIRIX-5*)
|
2007-07-08 12:50:23 +02:00
|
|
|
CPPFLAGS+= -DNEED_ALLOCA_H
|
1999-07-08 15:03:45 +02:00
|
|
|
.endif
|
|
|
|
|
1997-11-20 14:07:26 +01:00
|
|
|
post-install:
|
2009-05-04 00:58:31 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/xv
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs/xvdocs.ps ${DESTDIR}${PREFIX}/share/doc/xv
|
1997-11-20 14:07:26 +01:00
|
|
|
|
2006-12-27 14:37:35 +01:00
|
|
|
BUILDLINK_DEPMETHOD.libXt?= build
|
|
|
|
|
2004-03-29 02:50:41 +02:00
|
|
|
.include "../../graphics/png/buildlink3.mk"
|
|
|
|
.include "../../graphics/tiff/buildlink3.mk"
|
2006-12-27 14:37:35 +01:00
|
|
|
.include "../../x11/libXext/buildlink3.mk"
|
|
|
|
.include "../../x11/libXt/buildlink3.mk"
|
1998-04-15 12:38:15 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|