pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/graphics/ximaging graphics/ximaging: import package fr...
details: https://anonhg.NetBSD.org/pkgsrc/rev/4fbe19a84270
branches: trunk
changeset: 389587:4fbe19a84270
user: vins <vins%pkgsrc.org@localhost>
date: Tue Dec 06 13:04:59 2022 +0000
description:
graphics/ximaging: import package from wip.
+Ximaging is a lightweight, multithreaded, open source image viewer for
+FreeBSD, Linux and other Unix like platforms running X11.
diffstat:
graphics/ximaging/DESCR | 11 +++++
graphics/ximaging/Makefile | 44 ++++++++++++++++++++
graphics/ximaging/PLIST | 4 +
graphics/ximaging/distinfo | 7 +++
graphics/ximaging/patches/patch-mf_Makefile.Linux | 37 ++++++++++++++++
graphics/ximaging/patches/patch-mf_Makefile.Tribblix | 22 ++++++++++
6 files changed, 125 insertions(+), 0 deletions(-)
diffs (149 lines):
diff -r 078f0ea4ca5c -r 4fbe19a84270 graphics/ximaging/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/ximaging/DESCR Tue Dec 06 13:04:59 2022 +0000
@@ -0,0 +1,11 @@
+XImaging is a lightweight, multithreaded, open source image viewer for
+FreeBSD, Linux and other Unix like platforms running X11. The
+application can be run in viewer or browser mode. The viewer displays
+full size images and provides zooming, panning, rotation and other
+useful functions. The browser searches a directory for known image file
+types and displays them as thumbnails. Additionally both modes provide
+basic file management routines. A custom tool may be specified for
+opening selected files in another application for editing.
+
+It is written in C, and uses the Motif widget toolkit. The source code
+may be modified and distributed under the terms of the X/MIT license.
diff -r 078f0ea4ca5c -r 4fbe19a84270 graphics/ximaging/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/ximaging/Makefile Tue Dec 06 13:04:59 2022 +0000
@@ -0,0 +1,44 @@
+# $NetBSD: Makefile,v 1.1 2022/12/06 13:04:59 vins Exp $
+
+DISTNAME= ximaging-src-1.6
+PKGNAME= ${DISTNAME:S,-src,,}
+CATEGORIES= graphics
+MASTER_SITES= https://fastestcode.org/dl/
+EXTRACT_SUFX= .tar.xz
+
+MAINTAINER= vins%retrobsd.ddns.net@localhost
+HOMEPAGE= https://fastestcode.org/emwm.html
+COMMENT= Image browser and viewer for Unix - X/Motif
+LICENSE= mit
+
+MAKE_FLAGS+= CC?=${CC:Q}
+MAKE_FLAGS+= CFLAGS=${CFLAGS:Q}
+MAKE_FLAGS+= CFLAGS+="-fopenmp -DENABLE_OMP"
+MAKE_FLAGS+= LDFLAGS=${LDFLAGS:Q}
+MAKE_FLAGS+= LDFLAGS+="-fopenmp -pthread"
+MAKE_FLAGS+= PNG_LIBS=-lpng16
+MAKE_FLAGS+= PREFIX=${PREFIX}
+MAKE_FLAGS+= MANDIR=${PREFIX}/${PKGMANDIR}
+MAKE_FLAGS+= APPLRESDIR=${PREFIX}/lib/X11/app-defaults
+
+INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
+INSTALLATION_DIRS+= lib/X11/app-defaults
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/src/ximaging ${DESTDIR}${PREFIX}/bin/
+ ${INSTALL_MAN} ${WRKSRC}/src/ximaging.1 \
+ ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/
+
+post-install:
+ ${INSTALL_DATA} ${WRKSRC}/src/XImaging.ad \
+ ${DESTDIR}${PREFIX}/lib/X11/app-defaults/XImaging
+
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../mk/motif.buildlink3.mk"
+.include "../../mk/jpeg.buildlink3.mk"
+.include "../../graphics/png/buildlink3.mk"
+.include "../../graphics/tiff/buildlink3.mk"
+.include "../../x11/libXt/buildlink3.mk"
+.include "../../x11/libXinerama/buildlink3.mk"
+.include "../../x11/libX11/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 078f0ea4ca5c -r 4fbe19a84270 graphics/ximaging/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/ximaging/PLIST Tue Dec 06 13:04:59 2022 +0000
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1 2022/12/06 13:04:59 vins Exp $
+bin/ximaging
+lib/X11/app-defaults/XImaging
+man/man1/ximaging.1
diff -r 078f0ea4ca5c -r 4fbe19a84270 graphics/ximaging/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/ximaging/distinfo Tue Dec 06 13:04:59 2022 +0000
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2022/12/06 13:04:59 vins Exp $
+
+BLAKE2s (ximaging-src-1.6.tar.xz) = 8733d6719dc05ccacf28b84da77e2fdf17a539a7d1f3b917a35dd22ccffa923c
+SHA512 (ximaging-src-1.6.tar.xz) = a9625bc5262641ec38e5d0248154caf78c724e6050820af1efa2cade15fea871e852338dcf0274d8407200ced74dd9800599773e932724c87ca2f06e78c03277
+Size (ximaging-src-1.6.tar.xz) = 99064 bytes
+SHA1 (patch-mf_Makefile.Linux) = 0b7fcd2f55f111258f099f5667611d2253e51169
+SHA1 (patch-mf_Makefile.Tribblix) = 23abe40fea1f0131bd972d40c36d41047ad02398
diff -r 078f0ea4ca5c -r 4fbe19a84270 graphics/ximaging/patches/patch-mf_Makefile.Linux
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/ximaging/patches/patch-mf_Makefile.Linux Tue Dec 06 13:04:59 2022 +0000
@@ -0,0 +1,37 @@
+$NetBSD: patch-mf_Makefile.Linux,v 1.1 2022/12/06 13:04:59 vins Exp $
+
+Portability fixes for bmake.
+
+--- mf/Makefile.Linux.orig 2022-07-31 15:43:05.000000000 +0000
++++ mf/Makefile.Linux
+@@ -15,24 +15,22 @@ CFLAGS = -O2 -Wall $(INCDIRS)
+ LDFLAGS = -pthread
+
+ # OpenMP loop optimizations
+-ifdef ENABLE_OMP
++.ifdef ENABLE_OMP
+ CFLAGS += -fopenmp -DENABLE_OMP
+ LDFLAGS += -fopenmp
+-endif
++.endif
+
+ # Common Desktop Environment support
+-ifdef ENABLE_CDE
++.ifdef ENABLE_CDE
+ CFLAGS += -DENABLE_CDE
+ IPC_OBJS = tooltalk.o
+ CDE_LIBS = -lDtHelp -lDtSvc -ltt
+ INCDIRS += -I/usr/dt/include
+ LIBDIRS += -L/usr/dt/lib
+-else
++.else
+ IPC_OBJS = xipc.o
+-endif
++.endif
+
+-include common.mf
++.include "common.mf"
+
+ install: common_install
+-
+--include .depend
diff -r 078f0ea4ca5c -r 4fbe19a84270 graphics/ximaging/patches/patch-mf_Makefile.Tribblix
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/ximaging/patches/patch-mf_Makefile.Tribblix Tue Dec 06 13:04:59 2022 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-mf_Makefile.Tribblix,v 1.1 2022/12/06 13:04:59 vins Exp $
+
+Portability fix for bmake.
+Do not assume Motif to be packaged without Xft.
+
+--- mf/Makefile.Tribblix.orig 2022-07-31 15:43:05.000000000 +0000
++++ mf/Makefile.Tribblix
+@@ -14,12 +14,6 @@ CFLAGS = -O2 -Wall $(INCDIRS)
+ LDFLAGS = -pthread
+ IPC_OBJS = xipc.o
+
+-include common.mf
++.include "common.mf"
+
+-install:
+- install -m 775 -f $(PREFIX)/bin ximaging
+- install -m 664 -f $(MANDIR)/man1 ximaging.1
+- # While Tribblix packages Motif with no Xft
+- sed '/renderTable/d' XImaging.ad > XImaging
+- install -m 664 -f $(APPLRESDIR) XImaging
+- rm XImaging
++install: common_install
Home |
Main Index |
Thread Index |
Old Index