openbsd-ports/graphics/xv/Makefile
1999-11-10 09:53:57 +00:00

55 lines
1.5 KiB
Makefile

# $OpenBSD: Makefile,v 1.8 1999/11/10 09:53:57 jakob Exp $
# Original from: Marco S Hyman <marc@OpenBSD.ORG>
DISTNAME= xv-3.10a
DIST_SUBDIR= ${DISTNAME}
CATEGORIES= graphics x11
NO_CDROM= "NOFEE: can not sell"
MASTER_SITES= ftp://ftp.cis.upenn.edu/pub/xv/
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
# Add support for png
#
MASTER_SITES0= ftp://swrinde.nde.swri.edu/pub/png/applications/
DISTFILES+= xv-3.10a-png-1.2d.tar.gz:0
# Up-to-date jpeg/tiff libraries
#
PATCH_SITES= ftp://ftp.cis.upenn.edu/pub/xv/
PATCHFILES= xv-3.10a.JPEG-patch xv-3.10a.TIFF-patch
# Various patches from the XV author's site
#
# (xpm.patch is integrated in xvpng.diff that is in xv-3.10a-png-1.2d.tar.gz)
# longname.patch is integrated in patches/patch-aj
PATCH_SITES0= ftp://ftp.trilon.com/pub/xv/patches/
PATCHFILES+= deepcolor.patch:0 gifpatch:0 grabpatch:0 \
mp-tiff-patch:0 pdf.patch:0 vispatch:0 xvpng-fix2.patch:0
MAINTAINER= rohee@OpenBSD.ORG
HOMEPAGE= http://www.trilon.com/xv/index.html
LIB_DEPENDS= jpeg.62.:${PORTSDIR}/graphics/jpeg \
tiff.35.:${PORTSDIR}/graphics/tiff \
png.1.:${PORTSDIR}/graphics/png
USE_IMAKE= yes
pre-patch:
@${PATCH} ${PATCH_ARGS} -p1 < ${WRKDIR}/xcmap.diff
@${PATCH} ${PATCH_ARGS} -p1 < ${WRKDIR}/xvpng.diff
@${MV} ${WRKDIR}/xvpng.c ${WRKSRC}
@${MV} ${WRKDIR}/bits/br_png ${WRKSRC}/bits
post-install:
${MKDIR} ${PREFIX}/share/doc/xv
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/xv
.if !defined(NOPORTDOCS)
${INSTALL_DATA} ${WRKSRC}/docs/xvdocs.ps ${PREFIX}/share/doc/xv
.endif
.include <bsd.port.mk>