blob: 8223299a95252d41d95ce471c018846192e9a8db (
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# $NetBSD: Makefile,v 1.80 2010/03/30 09:51:30 obache Exp $
DISTNAME= xv-3.10a
PKGREVISION= 15
CATEGORIES= graphics x11
MASTER_SITES= ftp://ftp.cis.upenn.edu/pub/xv/
DISTFILES= ${DEFAULT_DISTFILES} ${JUMBO_PATCHES}
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/}
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
LICENSE= xv-license
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}
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
SUBST_SED.gspath= -e 's|@PREFIX@|${PREFIX}|g'
SUBST_STAGE.gspath= post-configure
SUBST_MESSAGE.gspath= Fixing path to ghostscript interpreter.
INSTALLATION_DIRS+= share/doc/xv
PKG_DESTDIR_SUPPORT= user-destdir
.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} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/xv
${INSTALL_DATA} ${WRKSRC}/docs/xvdocs.ps ${DESTDIR}${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"
|