2013-09-20 20:35:44 +02:00
|
|
|
# Created by: Radim Kolar
|
Add zgv 5.8,
zgv is an svgalib-based viewer which views GIF, JPEG, PNG,
PBM/PGM/PPM, TIFF, BMP, TGA, PCX, mrf, XBM, and XPM files, with
a full-screen file selector front-end. It can be used as a
simple command, with zgv filename(s), which bypasses the
front-end. For more on how zgv works and how to use it, do
`info zgv' or `man zgv' once it's installed.
PR: ports/65577
Submitted by: Radim Kolar
2004-04-15 16:11:16 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= zgv
|
2005-05-04 14:49:45 +02:00
|
|
|
PORTVERSION= 5.9
|
2014-12-25 21:54:41 +01:00
|
|
|
PORTREVISION= 7
|
Add zgv 5.8,
zgv is an svgalib-based viewer which views GIF, JPEG, PNG,
PBM/PGM/PPM, TIFF, BMP, TGA, PCX, mrf, XBM, and XPM files, with
a full-screen file selector front-end. It can be used as a
simple command, with zgv filename(s), which bypasses the
front-end. For more on how zgv works and how to use it, do
`info zgv' or `man zgv' once it's installed.
PR: ports/65577
Submitted by: Radim Kolar
2004-04-15 16:11:16 +02:00
|
|
|
CATEGORIES= graphics
|
2013-12-20 12:56:54 +01:00
|
|
|
MASTER_SITES= SUNSITE/apps/graphics/viewers/svga
|
Add zgv 5.8,
zgv is an svgalib-based viewer which views GIF, JPEG, PNG,
PBM/PGM/PPM, TIFF, BMP, TGA, PCX, mrf, XBM, and XPM files, with
a full-screen file selector front-end. It can be used as a
simple command, with zgv filename(s), which bypasses the
front-end. For more on how zgv works and how to use it, do
`info zgv' or `man zgv' once it's installed.
PR: ports/65577
Submitted by: Radim Kolar
2004-04-15 16:11:16 +02:00
|
|
|
|
2004-10-12 15:23:48 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
Add zgv 5.8,
zgv is an svgalib-based viewer which views GIF, JPEG, PNG,
PBM/PGM/PPM, TIFF, BMP, TGA, PCX, mrf, XBM, and XPM files, with
a full-screen file selector front-end. It can be used as a
simple command, with zgv filename(s), which bypasses the
front-end. For more on how zgv works and how to use it, do
`info zgv' or `man zgv' once it's installed.
PR: ports/65577
Submitted by: Radim Kolar
2004-04-15 16:11:16 +02:00
|
|
|
COMMENT= Graphics viewer for SVGAlib
|
|
|
|
|
2013-12-20 12:56:54 +01:00
|
|
|
LICENSE= GPLv2 # (or later)
|
Add zgv 5.8,
zgv is an svgalib-based viewer which views GIF, JPEG, PNG,
PBM/PGM/PPM, TIFF, BMP, TGA, PCX, mrf, XBM, and XPM files, with
a full-screen file selector front-end. It can be used as a
simple command, with zgv filename(s), which bypasses the
front-end. For more on how zgv works and how to use it, do
`info zgv' or `man zgv' once it's installed.
PR: ports/65577
Submitted by: Radim Kolar
2004-04-15 16:11:16 +02:00
|
|
|
|
2013-12-20 12:56:54 +01:00
|
|
|
LIB_DEPENDS= libjpeg.so:${PORTSDIR}/graphics/jpeg \
|
2014-12-25 20:04:25 +01:00
|
|
|
libpng.so:${PORTSDIR}/graphics/png \
|
2013-12-20 12:56:54 +01:00
|
|
|
libtiff.so:${PORTSDIR}/graphics/tiff
|
|
|
|
|
2014-07-16 01:30:05 +02:00
|
|
|
OPTIONS_DEFINE= SDL DOCS
|
2013-12-20 12:56:54 +01:00
|
|
|
|
2014-06-26 09:32:36 +02:00
|
|
|
USES= gmake makeinfo
|
2004-05-09 18:35:36 +02:00
|
|
|
ALL_TARGET= zgv info
|
Add zgv 5.8,
zgv is an svgalib-based viewer which views GIF, JPEG, PNG,
PBM/PGM/PPM, TIFF, BMP, TGA, PCX, mrf, XBM, and XPM files, with
a full-screen file selector front-end. It can be used as a
simple command, with zgv filename(s), which bypasses the
front-end. For more on how zgv works and how to use it, do
`info zgv' or `man zgv' once it's installed.
PR: ports/65577
Submitted by: Radim Kolar
2004-04-15 16:11:16 +02:00
|
|
|
|
2013-12-20 12:56:54 +01:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MSDL}
|
|
|
|
USE_SDL= sdl
|
|
|
|
MAKE_ENV+= BACKEND=SDL
|
|
|
|
CPPFLAGS+= $$(${SDL_CONFIG} --cflags)
|
|
|
|
LDFLAGS+= $$(${SDL_CONFIG} --libs)
|
|
|
|
.else
|
|
|
|
LIB_DEPENDS+= libvga.so:${PORTSDIR}/graphics/svgalib
|
|
|
|
MAKE_ENV+= BACKEND=SVGALIB
|
|
|
|
ONLY_FOR_ARGS= i386 amd64
|
Add zgv 5.8,
zgv is an svgalib-based viewer which views GIF, JPEG, PNG,
PBM/PGM/PPM, TIFF, BMP, TGA, PCX, mrf, XBM, and XPM files, with
a full-screen file selector front-end. It can be used as a
simple command, with zgv filename(s), which bypasses the
front-end. For more on how zgv works and how to use it, do
`info zgv' or `man zgv' once it's installed.
PR: ports/65577
Submitted by: Radim Kolar
2004-04-15 16:11:16 +02:00
|
|
|
.endif
|
|
|
|
|
2013-12-20 12:56:54 +01:00
|
|
|
post-extract:
|
|
|
|
@${RM} ${WRKSRC}/doc/zgv
|
|
|
|
|
Add zgv 5.8,
zgv is an svgalib-based viewer which views GIF, JPEG, PNG,
PBM/PGM/PPM, TIFF, BMP, TGA, PCX, mrf, XBM, and XPM files, with
a full-screen file selector front-end. It can be used as a
simple command, with zgv filename(s), which bypasses the
front-end. For more on how zgv works and how to use it, do
`info zgv' or `man zgv' once it's installed.
PR: ports/65577
Submitted by: Radim Kolar
2004-04-15 16:11:16 +02:00
|
|
|
post-patch:
|
2013-12-20 12:56:54 +01:00
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's|^CC=|#CC=|g ; \
|
|
|
|
s|^CFLAGS=|#CFLAGS=|g ; \
|
|
|
|
s|^BACKEND=|#BACKEND=|g ; \
|
|
|
|
s|^PREFIX=|#PREFIX=|g ; \
|
|
|
|
s|/usr/X11R6|$${LOCALBASE}|g' ${WRKSRC}/config.mk
|
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's|-I/usr/local/include|$${CPPFLAGS}|g ; \
|
|
|
|
s|-L/usr/local/lib|$${LDFLAGS}|g ; \
|
|
|
|
s|=-lSDL|=|g' ${WRKSRC}/src/Makefile
|
|
|
|
@${GREP} -lR "SDL/SDL" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
|
|
|
|
's|SDL/SDL|SDL|g'
|
Add zgv 5.8,
zgv is an svgalib-based viewer which views GIF, JPEG, PNG,
PBM/PGM/PPM, TIFF, BMP, TGA, PCX, mrf, XBM, and XPM files, with
a full-screen file selector front-end. It can be used as a
simple command, with zgv filename(s), which bypasses the
front-end. For more on how zgv works and how to use it, do
`info zgv' or `man zgv' once it's installed.
PR: ports/65577
Submitted by: Radim Kolar
2004-04-15 16:11:16 +02:00
|
|
|
|
|
|
|
do-install:
|
2013-12-20 12:56:54 +01:00
|
|
|
(cd ${WRKSRC}/src && ${INSTALL_PROGRAM} zgv \
|
|
|
|
${STAGEDIR}${PREFIX}/bin/zgv)
|
|
|
|
(cd ${WRKSRC}/doc && ${INSTALL_MAN} zgv.1 \
|
|
|
|
${STAGEDIR}${MANPREFIX}/man/man1/zgv.1)
|
|
|
|
(cd ${WRKSRC}/doc && ${INSTALL_DATA} sample.zgvrc \
|
|
|
|
${STAGEDIR}${PREFIX}/etc/zgvrc.sample)
|
|
|
|
(cd ${WRKSRC}/doc && ${INSTALL_DATA} zgv \
|
|
|
|
${STAGEDIR}${PREFIX}/${INFO_PATH}/zgvrc.info)
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
.for i in NEWS README SECURITY TODO INSTALL
|
|
|
|
(cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${STAGEDIR}${DOCSDIR})
|
Add zgv 5.8,
zgv is an svgalib-based viewer which views GIF, JPEG, PNG,
PBM/PGM/PPM, TIFF, BMP, TGA, PCX, mrf, XBM, and XPM files, with
a full-screen file selector front-end. It can be used as a
simple command, with zgv filename(s), which bypasses the
front-end. For more on how zgv works and how to use it, do
`info zgv' or `man zgv' once it's installed.
PR: ports/65577
Submitted by: Radim Kolar
2004-04-15 16:11:16 +02:00
|
|
|
.endfor
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|