pkgsrc/graphics/xv/Makefile
gdt 36a2868204 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 18:36:01 +00:00

52 lines
1.6 KiB
Makefile

# $NetBSD: Makefile,v 1.60 2005/08/10 18:36:01 gdt Exp $
DISTNAME= xv-3.10a
PKGREVISION= 10
CATEGORIES= graphics x11
MASTER_SITES= ftp://ftp.cis.upenn.edu/pub/xv/
#DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
PATCHFILES= xv-3.10a-jumbo-patches-20050501.tar.bz2
PATCH_SITES= ${MASTER_SITE_SOURCEFORGE:=png-mng/}
PATCH_DIST_CAT= ${BZCAT} $$patchfile | ${TAR} -Oxf - "*-patch-*"
PATCH_DIST_STRIP= -p1
MAINTAINER= tech-pkg@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
USE_IMAKE= YES
# 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}
LICENSE= xv-license
.include "../../mk/bsd.prefs.mk"
pre-configure:
${MV} ${WRKSRC}/config.h ${WRKSRC}/config.h.orig && \
${SED} -e 's|@LOCALBASE@|${LOCALBASE}|g' \
${WRKSRC}/config.h.orig > ${WRKSRC}/config.h
.if ${OPSYS} == "SunOS"
post-configure:
${MV} ${WRKSRC}/${MAKEFILE} ${WRKSRC}/${MAKEFILE}.orig && \
${SED} -e 's| CC = .*| CC = ${CC}|' \
-e 's| CCOPTIONS = .*| CCOPTIONS = ${CFLAGS}|' \
-e 's| CDEBUGFLAGS = .*| CDEBUGFLAGS =|' \
${WRKSRC}/${MAKEFILE}.orig > ${WRKSRC}/${MAKEFILE}
.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
.include "../../graphics/png/buildlink3.mk"
.include "../../graphics/tiff/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"