summaryrefslogtreecommitdiff
path: root/graphics/pornview
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/pornview')
-rw-r--r--graphics/pornview/Makefile31
-rw-r--r--graphics/pornview/options.mk15
2 files changed, 38 insertions, 8 deletions
diff --git a/graphics/pornview/Makefile b/graphics/pornview/Makefile
index 8337d6393ff..bf209470542 100644
--- a/graphics/pornview/Makefile
+++ b/graphics/pornview/Makefile
@@ -1,12 +1,31 @@
-# $NetBSD: Makefile,v 1.1.1.1 2006/02/11 13:06:43 rillig Exp $
+# $NetBSD: Makefile,v 1.2 2006/02/13 15:23:03 rillig Exp $
#
-.include "Makefile.common"
+PKGNAME= pornview-0.2.0pre1
+DISTNAME= pornview_0.2pre1.orig
+PKGREVISION= 1
+CATEGORIES= graphics
+MASTER_SITES= ${MASTER_SITE_DEBIAN:=pool/main/p/pornview/}
-COMMENT+= (GTK+ 1.0 interface)
+MAINTAINER= dhowland@users.sourceforge.net
+HOMEPAGE= http://pornview.sourceforge.net/
+COMMENT= GTK+ image viewer
-CONFLICTS= pornview-gtk2-[0-9]*
+WRKSRC= ${WRKDIR}/pornview-0.2.0pre1
-.include "../../graphics/gdk-pixbuf/buildlink3.mk"
-.include "../../x11/gtk/buildlink3.mk"
+BUILD_USES_MSGFMT= yes
+
+GNU_CONFIGURE= yes
+USE_DIRS+= gnome2-1.5
+USE_LIBTOOL= yes
+USE_PKGLOCALEDIR= yes
+
+USE_TOOLS+= perl:run
+REPLACE_PERL+= src/scripts/helloworld
+
+.include "options.mk"
+
+.include "../../graphics/jpeg/buildlink3.mk"
+.include "../../graphics/png/buildlink3.mk"
+.include "../../textproc/intltool/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/graphics/pornview/options.mk b/graphics/pornview/options.mk
index edc373ffade..513768f1caf 100644
--- a/graphics/pornview/options.mk
+++ b/graphics/pornview/options.mk
@@ -1,7 +1,7 @@
-# $NetBSD: options.mk,v 1.1.1.1 2006/02/11 13:06:43 rillig Exp $
+# $NetBSD: options.mk,v 1.2 2006/02/13 15:23:03 rillig Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.pornview
-PKG_SUPPORTED_OPTIONS= exif
+PKG_SUPPORTED_OPTIONS= exif gtk1
PKG_OPTIONS_OPTIONAL_GROUPS= movie
PKG_OPTIONS_GROUP.movie= mplayer xine
PKG_SUGGESTED_OPTIONS= exif
@@ -14,6 +14,17 @@ CONFIGURE_ARGS+= --enable-exif
CONFIGURE_ARGS+= --disable-exif
.endif
+.if !empty(PKG_OPTIONS:Mgtk1)
+CONFIGURE_ARGS+= --without-gtk2
+. include "../../graphics/gdk-pixbuf/buildlink3.mk"
+. include "../../x11/gtk/buildlink3.mk"
+.else
+CONFIURE_ARGS+= --with-gtk2
+USE_TOOLS+= pkg-config
+. include "../../devel/glib2/buildlink3.mk"
+. include "../../x11/gtk2/buildlink3.mk"
+.endif
+
.if !empty(PKG_OPTIONS:Mmplayer)
DEPENDS+= mplayer>=1.0rc3:../../multimedia/mplayer
CONFIGURE_ARGS+= --enable-mplayer