Import pho-0.9.8.

pho (pronounced like the first syllable in "photo") is a lightweight
program for viewing large numbers of images quickly, rotating or
deleting some, and making notes about what to do with each image -- for
instance, for going through hundreds of images after uploading them from
a digital camera.

req. by and ok miod@
This commit is contained in:
ajacoutot 2013-12-20 19:36:52 +00:00
parent 61e02762dc
commit 22cf1660b8
6 changed files with 76 additions and 0 deletions

31
graphics/pho/Makefile Normal file
View File

@ -0,0 +1,31 @@
# $OpenBSD: Makefile,v 1.1.1.1 2013/12/20 19:36:52 ajacoutot Exp $
COMMENT= lightweight image viewer
DISTNAME= pho-0.9.8
WRKDIST= ${WRKDIR}/pho
CATEGORIES= graphics x11
HOMEPAGE= http://www.shallowsky.com/software/pho/
# GPLv2
PERMIT_PACKAGE_CDROM= Yes
WANTLIB += X11 Xcomposite Xcursor Xdamage Xext Xfixes Xi Xinerama
WANTLIB += Xrandr Xrender atk-1.0 c cairo fontconfig freetype
WANTLIB += gdk-x11-2.0 gdk_pixbuf-2.0 gio-2.0 glib-2.0 gobject-2.0
WANTLIB += gtk-x11-2.0 m pango-1.0 pangocairo-1.0 pangoft2-1.0
WANTLIB += pthread z
MASTER_SITES= http://www.shallowsky.com/software/pho/
MODULES= devel/gettext
LIB_DEPENDS= x11/gtk+2
USE_GMAKE= Yes
NO_TEST= Yes
ALL_TARGET= pho
.include <bsd.port.mk>

2
graphics/pho/distinfo Normal file
View File

@ -0,0 +1,2 @@
SHA256 (pho-0.9.8.tar.gz) = M9nOgi5M8AnY/T0PFUWWB3mrCZyt2Ki1ysMLKfNp4Y4=
SIZE (pho-0.9.8.tar.gz) = 129487

View File

@ -0,0 +1,23 @@
$OpenBSD: patch-Makefile,v 1.1.1.1 2013/12/20 19:36:52 ajacoutot Exp $
--- Makefile.orig Tue Sep 4 18:53:38 2012
+++ Makefile Fri Dec 20 16:54:36 2013
@@ -4,7 +4,7 @@ VERSION = 0.9.8
# Locate the gtk/gdk libraries (thanks to nev for this!)
GTKFLAGS := $(shell pkg-config --cflags gtk+-2.0 gdk-2.0 2> /dev/null)
-CFLAGS += -g -Wall -pedantic -DVERSION='"$(VERSION)"' $(GTKFLAGS)
+CFLAGS += -Wall -pedantic -DVERSION='"$(VERSION)"' $(GTKFLAGS)
XLIBS := $(shell pkg-config --libs gtk+-2.0 > /dev/null)
GLIBS := $(shell pkg-config --libs gtk+-2.0 gdk-2.0)
@@ -57,8 +57,8 @@ deb: pho
dpkg-buildpackage -rfakeroot
install: pho
- $(INSTALL) pho $(INSTALLPREFIX)/bin/pho
- $(INSTALL) pho.1 $(INSTALLPREFIX)/man/man1/pho.1
+ $(BSD_INSTALL_PROGRAM) pho $(INSTALLPREFIX)/bin/pho
+ $(BSD_INSTALL_MAN) pho.1 $(INSTALLPREFIX)/man/man1/pho.1
clean:
rm -f *.[oas] *.ld core* pho xpho pho-*.tar.gz *.rpm

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-exif_Makefile,v 1.1.1.1 2013/12/20 19:36:52 ajacoutot Exp $
--- exif/Makefile.orig Fri Dec 20 16:54:45 2013
+++ exif/Makefile Fri Dec 20 16:55:03 2013
@@ -2,7 +2,7 @@
EXIFLIB = libphoexif.a
-CFLAGS += -Wall -g -O2 -I../include
+CFLAGS += -Wall -I../include
SRCS = jhead.c jpgfile.c exif.c phoexif.c

5
graphics/pho/pkg/DESCR Normal file
View File

@ -0,0 +1,5 @@
pho (pronounced like the first syllable in "photo") is a lightweight
program for viewing large numbers of images quickly, rotating or
deleting some, and making notes about what to do with each image -- for
instance, for going through hundreds of images after uploading them from
a digital camera.

3
graphics/pho/pkg/PLIST Normal file
View File

@ -0,0 +1,3 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2013/12/20 19:36:52 ajacoutot Exp $
@bin bin/pho
@man man/man1/pho.1