blob: 2b1a6ac38a7f1f73bf38fc09048fc831602fdf64 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# $NetBSD: Makefile,v 1.23 1999/10/08 21:12:52 jlam Exp $
# FreeBSD Id: Makefile,v 1.14 1997/07/03 07:37:08 asami Exp
#
DISTNAME= xv-3.10a
PKGNAME= ${DISTNAME}pl1
CATEGORIES= graphics x11
MASTER_SITES= ftp://ftp.cis.upenn.edu/pub/xv/ \
ftp://ftp.kuis.kyoto-u.ac.jp/X11/contrib/clients/xv/ \
ftp://ftp.tohoku.ac.jp/pub/X/app/xv/
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
xv310a-magpic2-PhotoCD-patch.tar.gz # only from Japan
PATCH_SITES= ftp://ftp.cis.upenn.edu/pub/xv/
PATCHFILES= xv-3.10a.JPEG-patch xv-3.10a.TIFF-patch # (for tiff3.4)
MAINTAINER= packages@netbsd.org
HOMEPAGE= http://www.trilon.com/xv/
DEPENDS+= ghostscript-5.50:../../print/ghostscript5
DEPENDS+= png-1.0.3:../png
DEPENDS+= tiff-*:../../graphics/tiff
USE_IMAKE= yes
LICENSE= shareware
.include "../../mk/bsd.prefs.mk"
pre-patch:
@${PATCH} ${PATCH_ARGS} -p1 < ${WRKDIR}/Patch.magpic2.PhotoCD.XV310a
post-patch:
${MV} ${WRKSRC}/config.h ${WRKSRC}/config.h.bak
${SED} -e 's|@LOCALBASE@|${LOCALBASE}|g' < ${WRKSRC}/config.h.bak \
> ${WRKSRC}/config.h
.if ${OPSYS} == "SunOS"
pre-build:
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} xvinfo.o CC=cc
.endif
post-install:
${MKDIR} ${PREFIX}/share/doc/xv
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/xv
${INSTALL_DATA} ${WRKSRC}/docs/xvdocs.ps ${PREFIX}/share/doc/xv
.if ${OPSYS} == "SunOS"
MAKE_ENV+= CPPFLAGS=
LDFLAGS+= -Wl,-R${X11BASE}/lib
.endif
.include "../../mk/bsd.pkg.mk"
|