2013-06-17 17:24:17 +02:00
|
|
|
# Created by: Martin Tournoij <carpetsmoker@xs4all.nl>
|
qiv (graphics/qiv) is a great image viewer, but it does not use gtk2
but imlib for image handling. This is bad, because many distributions
(well, at least gentoo) do not offer this library anymore as it's
quite old and not maintained anymore.
When the first release of pqiv was written, I used python, hence the
name. I expected somebody else to write a c-rewrite of qiv, so I
didn't really care about that. About one month later nothing had
happened yet, so I did this on my own. Starting from 0.4 pqiv means
"pretty quick image viewer", written in pure C, using gtk+-2.0.
Features include:
* Fullscreen
* Slideshow
* Rotate / Flip
* (Automatic/manual) Zoom
* Move by drag & drop in fullscreen
* Keep preferences in a configuration file
* Rather small executable (~36k), low ram consumtion, quick
* Execute predefined commands, pipe images through them or display their output
* Real transparency
* Fade between images
WWW: http://www.pberndt.com/Programme/Linux/pqiv/index.html
PR: ports/122191
Submitted by: Martin Tournoij <carpetsmoker@xs4all.nl>
2008-04-04 17:01:24 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= pqiv
|
2012-06-05 22:57:13 +02:00
|
|
|
PORTVERSION= 0.12
|
2013-06-17 17:24:17 +02:00
|
|
|
PORTREVISION= 1
|
qiv (graphics/qiv) is a great image viewer, but it does not use gtk2
but imlib for image handling. This is bad, because many distributions
(well, at least gentoo) do not offer this library anymore as it's
quite old and not maintained anymore.
When the first release of pqiv was written, I used python, hence the
name. I expected somebody else to write a c-rewrite of qiv, so I
didn't really care about that. About one month later nothing had
happened yet, so I did this on my own. Starting from 0.4 pqiv means
"pretty quick image viewer", written in pure C, using gtk+-2.0.
Features include:
* Fullscreen
* Slideshow
* Rotate / Flip
* (Automatic/manual) Zoom
* Move by drag & drop in fullscreen
* Keep preferences in a configuration file
* Rather small executable (~36k), low ram consumtion, quick
* Execute predefined commands, pipe images through them or display their output
* Real transparency
* Fade between images
WWW: http://www.pberndt.com/Programme/Linux/pqiv/index.html
PR: ports/122191
Submitted by: Martin Tournoij <carpetsmoker@xs4all.nl>
2008-04-04 17:01:24 +02:00
|
|
|
CATEGORIES= graphics
|
2013-06-17 17:24:17 +02:00
|
|
|
MASTER_SITES= GHC
|
qiv (graphics/qiv) is a great image viewer, but it does not use gtk2
but imlib for image handling. This is bad, because many distributions
(well, at least gentoo) do not offer this library anymore as it's
quite old and not maintained anymore.
When the first release of pqiv was written, I used python, hence the
name. I expected somebody else to write a c-rewrite of qiv, so I
didn't really care about that. About one month later nothing had
happened yet, so I did this on my own. Starting from 0.4 pqiv means
"pretty quick image viewer", written in pure C, using gtk+-2.0.
Features include:
* Fullscreen
* Slideshow
* Rotate / Flip
* (Automatic/manual) Zoom
* Move by drag & drop in fullscreen
* Keep preferences in a configuration file
* Rather small executable (~36k), low ram consumtion, quick
* Execute predefined commands, pipe images through them or display their output
* Real transparency
* Fade between images
WWW: http://www.pberndt.com/Programme/Linux/pqiv/index.html
PR: ports/122191
Submitted by: Martin Tournoij <carpetsmoker@xs4all.nl>
2008-04-04 17:01:24 +02:00
|
|
|
EXTRACT_SUFX= .tbz
|
|
|
|
|
2009-08-02 04:51:50 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
qiv (graphics/qiv) is a great image viewer, but it does not use gtk2
but imlib for image handling. This is bad, because many distributions
(well, at least gentoo) do not offer this library anymore as it's
quite old and not maintained anymore.
When the first release of pqiv was written, I used python, hence the
name. I expected somebody else to write a c-rewrite of qiv, so I
didn't really care about that. About one month later nothing had
happened yet, so I did this on my own. Starting from 0.4 pqiv means
"pretty quick image viewer", written in pure C, using gtk+-2.0.
Features include:
* Fullscreen
* Slideshow
* Rotate / Flip
* (Automatic/manual) Zoom
* Move by drag & drop in fullscreen
* Keep preferences in a configuration file
* Rather small executable (~36k), low ram consumtion, quick
* Execute predefined commands, pipe images through them or display their output
* Real transparency
* Fade between images
WWW: http://www.pberndt.com/Programme/Linux/pqiv/index.html
PR: ports/122191
Submitted by: Martin Tournoij <carpetsmoker@xs4all.nl>
2008-04-04 17:01:24 +02:00
|
|
|
COMMENT= Pretty Quick Image Viewer
|
|
|
|
|
2011-08-10 18:24:49 +02:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2012-06-05 22:57:13 +02:00
|
|
|
OPTIONS_DEFINE= SORTING COMPOSITE FADING COMMANDS CONFIG ANIMATIONS DOCS
|
|
|
|
OPTIONS_DEFAULT=SORTING COMPOSITE FADING COMMANDS CONFIG ANIMATIONS
|
|
|
|
SORTING_DESC= Enable sorting of loaded files
|
|
|
|
COMPOSITE_DESC= Enable support for transparent windows
|
|
|
|
FADING_DESC= Enable support for fading images
|
|
|
|
COMMANDS_DESC= Enable support for external command execution
|
|
|
|
CONFIG_DESC= Enable support for a configuration file
|
|
|
|
ANIMATIONS_DESC=Enable support for animations
|
qiv (graphics/qiv) is a great image viewer, but it does not use gtk2
but imlib for image handling. This is bad, because many distributions
(well, at least gentoo) do not offer this library anymore as it's
quite old and not maintained anymore.
When the first release of pqiv was written, I used python, hence the
name. I expected somebody else to write a c-rewrite of qiv, so I
didn't really care about that. About one month later nothing had
happened yet, so I did this on my own. Starting from 0.4 pqiv means
"pretty quick image viewer", written in pure C, using gtk+-2.0.
Features include:
* Fullscreen
* Slideshow
* Rotate / Flip
* (Automatic/manual) Zoom
* Move by drag & drop in fullscreen
* Keep preferences in a configuration file
* Rather small executable (~36k), low ram consumtion, quick
* Execute predefined commands, pipe images through them or display their output
* Real transparency
* Fade between images
WWW: http://www.pberndt.com/Programme/Linux/pqiv/index.html
PR: ports/122191
Submitted by: Martin Tournoij <carpetsmoker@xs4all.nl>
2008-04-04 17:01:24 +02:00
|
|
|
|
2013-06-17 17:24:17 +02:00
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= phillipberndt
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}
|
|
|
|
|
2009-09-16 16:27:10 +02:00
|
|
|
USE_BZIP2= yes
|
|
|
|
USE_GNOME= gtk20
|
2012-07-05 19:26:10 +02:00
|
|
|
USE_CSTD= gnu89
|
2009-09-16 16:27:10 +02:00
|
|
|
CFLAGS+= -DNO_INOTIFY -DBINARY_NAME=\"${PORTNAME}\"
|
|
|
|
|
|
|
|
MAN1= pqiv.1
|
2012-06-05 22:57:13 +02:00
|
|
|
PORTDOCS= README.markdown
|
2009-09-16 16:27:10 +02:00
|
|
|
PLIST_FILES= bin/pqiv
|
|
|
|
|
2012-06-05 22:57:13 +02:00
|
|
|
CPPFLAGS+= $$(${pkgconfig_DETECT} --cflags gtk+-2.0 gthread-2.0)
|
|
|
|
LDFLAGS+= $$(${pkgconfig_DETECT} --libs gtk+-2.0 gthread-2.0)
|
2011-08-10 18:24:49 +02:00
|
|
|
|
2012-06-05 22:57:13 +02:00
|
|
|
.include <bsd.port.options.mk>
|
qiv (graphics/qiv) is a great image viewer, but it does not use gtk2
but imlib for image handling. This is bad, because many distributions
(well, at least gentoo) do not offer this library anymore as it's
quite old and not maintained anymore.
When the first release of pqiv was written, I used python, hence the
name. I expected somebody else to write a c-rewrite of qiv, so I
didn't really care about that. About one month later nothing had
happened yet, so I did this on my own. Starting from 0.4 pqiv means
"pretty quick image viewer", written in pure C, using gtk+-2.0.
Features include:
* Fullscreen
* Slideshow
* Rotate / Flip
* (Automatic/manual) Zoom
* Move by drag & drop in fullscreen
* Keep preferences in a configuration file
* Rather small executable (~36k), low ram consumtion, quick
* Execute predefined commands, pipe images through them or display their output
* Real transparency
* Fade between images
WWW: http://www.pberndt.com/Programme/Linux/pqiv/index.html
PR: ports/122191
Submitted by: Martin Tournoij <carpetsmoker@xs4all.nl>
2008-04-04 17:01:24 +02:00
|
|
|
|
2012-06-05 22:57:13 +02:00
|
|
|
.if empty(PORT_OPTIONS:MSORTING)
|
qiv (graphics/qiv) is a great image viewer, but it does not use gtk2
but imlib for image handling. This is bad, because many distributions
(well, at least gentoo) do not offer this library anymore as it's
quite old and not maintained anymore.
When the first release of pqiv was written, I used python, hence the
name. I expected somebody else to write a c-rewrite of qiv, so I
didn't really care about that. About one month later nothing had
happened yet, so I did this on my own. Starting from 0.4 pqiv means
"pretty quick image viewer", written in pure C, using gtk+-2.0.
Features include:
* Fullscreen
* Slideshow
* Rotate / Flip
* (Automatic/manual) Zoom
* Move by drag & drop in fullscreen
* Keep preferences in a configuration file
* Rather small executable (~36k), low ram consumtion, quick
* Execute predefined commands, pipe images through them or display their output
* Real transparency
* Fade between images
WWW: http://www.pberndt.com/Programme/Linux/pqiv/index.html
PR: ports/122191
Submitted by: Martin Tournoij <carpetsmoker@xs4all.nl>
2008-04-04 17:01:24 +02:00
|
|
|
CFLAGS+= -DNO_SORTING
|
|
|
|
SORTFILE= # Empty
|
|
|
|
.else
|
2009-09-16 16:27:10 +02:00
|
|
|
SORTFILE= lib/strnatcmp.c
|
qiv (graphics/qiv) is a great image viewer, but it does not use gtk2
but imlib for image handling. This is bad, because many distributions
(well, at least gentoo) do not offer this library anymore as it's
quite old and not maintained anymore.
When the first release of pqiv was written, I used python, hence the
name. I expected somebody else to write a c-rewrite of qiv, so I
didn't really care about that. About one month later nothing had
happened yet, so I did this on my own. Starting from 0.4 pqiv means
"pretty quick image viewer", written in pure C, using gtk+-2.0.
Features include:
* Fullscreen
* Slideshow
* Rotate / Flip
* (Automatic/manual) Zoom
* Move by drag & drop in fullscreen
* Keep preferences in a configuration file
* Rather small executable (~36k), low ram consumtion, quick
* Execute predefined commands, pipe images through them or display their output
* Real transparency
* Fade between images
WWW: http://www.pberndt.com/Programme/Linux/pqiv/index.html
PR: ports/122191
Submitted by: Martin Tournoij <carpetsmoker@xs4all.nl>
2008-04-04 17:01:24 +02:00
|
|
|
.endif
|
2012-06-05 22:57:13 +02:00
|
|
|
.if empty(PORT_OPTIONS:MCOMPOSITE)
|
qiv (graphics/qiv) is a great image viewer, but it does not use gtk2
but imlib for image handling. This is bad, because many distributions
(well, at least gentoo) do not offer this library anymore as it's
quite old and not maintained anymore.
When the first release of pqiv was written, I used python, hence the
name. I expected somebody else to write a c-rewrite of qiv, so I
didn't really care about that. About one month later nothing had
happened yet, so I did this on my own. Starting from 0.4 pqiv means
"pretty quick image viewer", written in pure C, using gtk+-2.0.
Features include:
* Fullscreen
* Slideshow
* Rotate / Flip
* (Automatic/manual) Zoom
* Move by drag & drop in fullscreen
* Keep preferences in a configuration file
* Rather small executable (~36k), low ram consumtion, quick
* Execute predefined commands, pipe images through them or display their output
* Real transparency
* Fade between images
WWW: http://www.pberndt.com/Programme/Linux/pqiv/index.html
PR: ports/122191
Submitted by: Martin Tournoij <carpetsmoker@xs4all.nl>
2008-04-04 17:01:24 +02:00
|
|
|
CFLAGS+= -DNO_COMPOSITING
|
|
|
|
.endif
|
2012-06-05 22:57:13 +02:00
|
|
|
.if empty(PORT_OPTIONS:MFADING)
|
qiv (graphics/qiv) is a great image viewer, but it does not use gtk2
but imlib for image handling. This is bad, because many distributions
(well, at least gentoo) do not offer this library anymore as it's
quite old and not maintained anymore.
When the first release of pqiv was written, I used python, hence the
name. I expected somebody else to write a c-rewrite of qiv, so I
didn't really care about that. About one month later nothing had
happened yet, so I did this on my own. Starting from 0.4 pqiv means
"pretty quick image viewer", written in pure C, using gtk+-2.0.
Features include:
* Fullscreen
* Slideshow
* Rotate / Flip
* (Automatic/manual) Zoom
* Move by drag & drop in fullscreen
* Keep preferences in a configuration file
* Rather small executable (~36k), low ram consumtion, quick
* Execute predefined commands, pipe images through them or display their output
* Real transparency
* Fade between images
WWW: http://www.pberndt.com/Programme/Linux/pqiv/index.html
PR: ports/122191
Submitted by: Martin Tournoij <carpetsmoker@xs4all.nl>
2008-04-04 17:01:24 +02:00
|
|
|
CFLAGS+= -DNO_FADING
|
|
|
|
.endif
|
2012-06-05 22:57:13 +02:00
|
|
|
.if empty(PORT_OPTIONS:MCOMMANDS)
|
qiv (graphics/qiv) is a great image viewer, but it does not use gtk2
but imlib for image handling. This is bad, because many distributions
(well, at least gentoo) do not offer this library anymore as it's
quite old and not maintained anymore.
When the first release of pqiv was written, I used python, hence the
name. I expected somebody else to write a c-rewrite of qiv, so I
didn't really care about that. About one month later nothing had
happened yet, so I did this on my own. Starting from 0.4 pqiv means
"pretty quick image viewer", written in pure C, using gtk+-2.0.
Features include:
* Fullscreen
* Slideshow
* Rotate / Flip
* (Automatic/manual) Zoom
* Move by drag & drop in fullscreen
* Keep preferences in a configuration file
* Rather small executable (~36k), low ram consumtion, quick
* Execute predefined commands, pipe images through them or display their output
* Real transparency
* Fade between images
WWW: http://www.pberndt.com/Programme/Linux/pqiv/index.html
PR: ports/122191
Submitted by: Martin Tournoij <carpetsmoker@xs4all.nl>
2008-04-04 17:01:24 +02:00
|
|
|
CFLAGS+= -DNO_COMMANDS
|
|
|
|
.endif
|
2012-06-05 22:57:13 +02:00
|
|
|
.if empty(PORT_OPTIONS:MCONFIG)
|
qiv (graphics/qiv) is a great image viewer, but it does not use gtk2
but imlib for image handling. This is bad, because many distributions
(well, at least gentoo) do not offer this library anymore as it's
quite old and not maintained anymore.
When the first release of pqiv was written, I used python, hence the
name. I expected somebody else to write a c-rewrite of qiv, so I
didn't really care about that. About one month later nothing had
happened yet, so I did this on my own. Starting from 0.4 pqiv means
"pretty quick image viewer", written in pure C, using gtk+-2.0.
Features include:
* Fullscreen
* Slideshow
* Rotate / Flip
* (Automatic/manual) Zoom
* Move by drag & drop in fullscreen
* Keep preferences in a configuration file
* Rather small executable (~36k), low ram consumtion, quick
* Execute predefined commands, pipe images through them or display their output
* Real transparency
* Fade between images
WWW: http://www.pberndt.com/Programme/Linux/pqiv/index.html
PR: ports/122191
Submitted by: Martin Tournoij <carpetsmoker@xs4all.nl>
2008-04-04 17:01:24 +02:00
|
|
|
CFLAGS+= -DNO_CONFIG_FILE
|
|
|
|
.endif
|
2012-06-05 22:57:13 +02:00
|
|
|
.if empty(PORT_OPTIONS:MANIMATIONS)
|
2011-08-10 18:24:49 +02:00
|
|
|
CFLAGS+= -DNO_ANIMATIONS
|
|
|
|
.endif
|
qiv (graphics/qiv) is a great image viewer, but it does not use gtk2
but imlib for image handling. This is bad, because many distributions
(well, at least gentoo) do not offer this library anymore as it's
quite old and not maintained anymore.
When the first release of pqiv was written, I used python, hence the
name. I expected somebody else to write a c-rewrite of qiv, so I
didn't really care about that. About one month later nothing had
happened yet, so I did this on my own. Starting from 0.4 pqiv means
"pretty quick image viewer", written in pure C, using gtk+-2.0.
Features include:
* Fullscreen
* Slideshow
* Rotate / Flip
* (Automatic/manual) Zoom
* Move by drag & drop in fullscreen
* Keep preferences in a configuration file
* Rather small executable (~36k), low ram consumtion, quick
* Execute predefined commands, pipe images through them or display their output
* Real transparency
* Fade between images
WWW: http://www.pberndt.com/Programme/Linux/pqiv/index.html
PR: ports/122191
Submitted by: Martin Tournoij <carpetsmoker@xs4all.nl>
2008-04-04 17:01:24 +02:00
|
|
|
|
2009-09-16 16:27:10 +02:00
|
|
|
post-patch:
|
2011-08-10 18:24:49 +02:00
|
|
|
@(cd ${PATCH_WRKSRC} && ${SED} 's|$$PACKAGE_VERSION|${PORTVERSION}| ; \
|
|
|
|
s|$$BINARY_NAME|${PORTNAME}|' < pqiv.1.template > pqiv.1)
|
2009-09-16 16:27:10 +02:00
|
|
|
|
qiv (graphics/qiv) is a great image viewer, but it does not use gtk2
but imlib for image handling. This is bad, because many distributions
(well, at least gentoo) do not offer this library anymore as it's
quite old and not maintained anymore.
When the first release of pqiv was written, I used python, hence the
name. I expected somebody else to write a c-rewrite of qiv, so I
didn't really care about that. About one month later nothing had
happened yet, so I did this on my own. Starting from 0.4 pqiv means
"pretty quick image viewer", written in pure C, using gtk+-2.0.
Features include:
* Fullscreen
* Slideshow
* Rotate / Flip
* (Automatic/manual) Zoom
* Move by drag & drop in fullscreen
* Keep preferences in a configuration file
* Rather small executable (~36k), low ram consumtion, quick
* Execute predefined commands, pipe images through them or display their output
* Real transparency
* Fade between images
WWW: http://www.pberndt.com/Programme/Linux/pqiv/index.html
PR: ports/122191
Submitted by: Martin Tournoij <carpetsmoker@xs4all.nl>
2008-04-04 17:01:24 +02:00
|
|
|
do-build:
|
2011-08-10 18:24:49 +02:00
|
|
|
(cd ${BUILD_WRKSRC} && ${CC} ${CPPFLAGS} ${CFLAGS} ${SORTFILE} pqiv.c \
|
|
|
|
-o pqiv ${LDFLAGS})
|
qiv (graphics/qiv) is a great image viewer, but it does not use gtk2
but imlib for image handling. This is bad, because many distributions
(well, at least gentoo) do not offer this library anymore as it's
quite old and not maintained anymore.
When the first release of pqiv was written, I used python, hence the
name. I expected somebody else to write a c-rewrite of qiv, so I
didn't really care about that. About one month later nothing had
happened yet, so I did this on my own. Starting from 0.4 pqiv means
"pretty quick image viewer", written in pure C, using gtk+-2.0.
Features include:
* Fullscreen
* Slideshow
* Rotate / Flip
* (Automatic/manual) Zoom
* Move by drag & drop in fullscreen
* Keep preferences in a configuration file
* Rather small executable (~36k), low ram consumtion, quick
* Execute predefined commands, pipe images through them or display their output
* Real transparency
* Fade between images
WWW: http://www.pberndt.com/Programme/Linux/pqiv/index.html
PR: ports/122191
Submitted by: Martin Tournoij <carpetsmoker@xs4all.nl>
2008-04-04 17:01:24 +02:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/pqiv ${PREFIX}/bin
|
2009-09-16 16:27:10 +02:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/pqiv.1 ${MAN1PREFIX}/man/man1
|
2012-06-05 22:57:13 +02:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2009-09-16 16:27:10 +02:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
2012-06-05 22:57:13 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/README.markdown ${DOCSDIR}
|
qiv (graphics/qiv) is a great image viewer, but it does not use gtk2
but imlib for image handling. This is bad, because many distributions
(well, at least gentoo) do not offer this library anymore as it's
quite old and not maintained anymore.
When the first release of pqiv was written, I used python, hence the
name. I expected somebody else to write a c-rewrite of qiv, so I
didn't really care about that. About one month later nothing had
happened yet, so I did this on my own. Starting from 0.4 pqiv means
"pretty quick image viewer", written in pure C, using gtk+-2.0.
Features include:
* Fullscreen
* Slideshow
* Rotate / Flip
* (Automatic/manual) Zoom
* Move by drag & drop in fullscreen
* Keep preferences in a configuration file
* Rather small executable (~36k), low ram consumtion, quick
* Execute predefined commands, pipe images through them or display their output
* Real transparency
* Fade between images
WWW: http://www.pberndt.com/Programme/Linux/pqiv/index.html
PR: ports/122191
Submitted by: Martin Tournoij <carpetsmoker@xs4all.nl>
2008-04-04 17:01:24 +02:00
|
|
|
.endif
|
|
|
|
|
2012-06-05 22:57:13 +02:00
|
|
|
.include <bsd.port.mk>
|