blob: dd0fcb502d52f18650529c72c039a644b886c645 (
plain) (
blame)
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
|
# New ports collection makefile for: zgv
# Date created: 2004-04-15
# Whom: Radim Kolar
#
# $FreeBSD$
#
PORTNAME= zgv
PORTVERSION= 5.8
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SUNSITE}
MASTER_SITE_SUBDIR= apps/graphics/viewers/svga
MAINTAINER= hsn@netmag.cz
COMMENT= Graphics viewer for SVGAlib
LIB_DEPENDS= tiff.4:${PORTSDIR}/graphics/tiff \
vga.1:${PORTSDIR}/graphics/svgalib \
jpeg.9:${PORTSDIR}/graphics/jpeg \
png.5:${PORTSDIR}/graphics/png
ONLY_FOR_ARCHS= i386
USE_GETOPT_LONG=yes
USE_GMAKE= yes
USE_REINPLACE= yes
ALL_TARGET= zgv info
MAKE_ENV= ZGV_LIBS="${LDFLAGS}"
PLIST_FILES= bin/zgv etc/zgvrc.sample
.if !defined(NO_INSTALL_MANPAGES)
MAN1= zgv.1
.endif
.if !defined(NOPORTDOCS)
INFO= zgv
PORTDOCS= NEWS README SECURITY TODO INSTALL
.endif
post-patch:
${RM} ${WRKSRC}/doc/zgv
@${REINPLACE_CMD} -e 's|ZGV_LIBS=|ZGV_LIBS+=|' ${WRKSRC}/src/Makefile
do-install:
${INSTALL} -c -g wheel -o root -m 4755 ${WRKSRC}/src/zgv ${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/doc/sample.zgvrc ${PREFIX}/etc/zgvrc.sample
.if !defined(NOPORTDOCS)
${INSTALL_DATA} ${WRKSRC}/doc/zgv ${PREFIX}/${INFO_PATH}/zgv.info
install-info ${PREFIX}/${INFO_PATH}/zgv.info ${PREFIX}/${INFO_PATH}/dir
${MKDIR} ${DOCSDIR}
.for i in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.endif
.if !defined(NO_INSTALL_MANPAGES)
${INSTALL_MAN} ${WRKSRC}/doc/zgv.1 ${MAN1PREFIX}/man/man1
.endif
.include <bsd.port.mk>
|