Index: head/deskutils/Makefile =================================================================== --- head/deskutils/Makefile (revision 517352) +++ head/deskutils/Makefile (revision 517353) @@ -1,284 +1,285 @@ # $FreeBSD$ # COMMENT = Things that used to be on the desktop before computers were invented SUBDIR += affiche SUBDIR += akonadi-calendar-tools SUBDIR += akonadi-import-wizard SUBDIR += akonadiconsole SUBDIR += akregator SUBDIR += alarm-clock-applet SUBDIR += anamnesis SUBDIR += anydesk SUBDIR += appwrapper SUBDIR += aspostit SUBDIR += autocutsel SUBDIR += baobab SUBDIR += basket SUBDIR += belcard SUBDIR += bigyear SUBDIR += bijiben SUBDIR += bitcollider SUBDIR += cairo-dock SUBDIR += cairo-dock-plugins SUBDIR += caja-extensions SUBDIR += cal SUBDIR += calcurse SUBDIR += calibre SUBDIR += cartotheque SUBDIR += cfiles SUBDIR += charmtimetracker SUBDIR += chart SUBDIR += cherrytree SUBDIR += clipit SUBDIR += conduit SUBDIR += conkyemail SUBDIR += conkyforecast SUBDIR += copyq SUBDIR += countdown SUBDIR += cycle SUBDIR += dailystrips SUBDIR += deforaos-todo SUBDIR += devd-notifier SUBDIR += dfshow SUBDIR += docear SUBDIR += dosage SUBDIR += easystroke SUBDIR += egroupware SUBDIR += everygui SUBDIR += fasd SUBDIR += fbreader SUBDIR += fet SUBDIR += fff SUBDIR += flameshot SUBDIR += foliate SUBDIR += freemind SUBDIR += freeplane SUBDIR += ganttproject SUBDIR += ganyremote SUBDIR += gbirthday SUBDIR += gcal SUBDIR += gcalcli SUBDIR += genius SUBDIR += glabels SUBDIR += gnome-calendar SUBDIR += gnome-characters SUBDIR += gnome-clocks SUBDIR += gnome-contacts SUBDIR += gnome-dictionary SUBDIR += gnome-documents SUBDIR += gnome-font-viewer SUBDIR += gnome-initial-setup SUBDIR += gnome-maps SUBDIR += gnome-photos SUBDIR += gnome-screenshot SUBDIR += gnome-search-tool SUBDIR += gnome-shell-extension-audio-output-switcher SUBDIR += gnome-shell-extension-coverflow SUBDIR += gnome-shell-extension-dashtodock SUBDIR += gnome-shell-extension-filesmenu SUBDIR += gnome-shell-extension-hidetopbar SUBDIR += gnome-shell-extension-lockkeys SUBDIR += gnome-shell-extension-mediaplayer SUBDIR += gnome-shell-extension-openweather SUBDIR += gnome-shell-extension-panel-osd SUBDIR += gnome-shell-extension-recent-items SUBDIR += gnome-shell-extension-trash SUBDIR += gnome-shell-extension-weather SUBDIR += gnome-shell-extension-windowoverlay-icons SUBDIR += gnome-shell-extra-extensions SUBDIR += gnome-sound-recorder SUBDIR += gnome-system-log SUBDIR += gnome-todo SUBDIR += gnome-tweaks SUBDIR += gnome-utils SUBDIR += gnome-weather SUBDIR += gnote SUBDIR += gnustep-wrapper SUBDIR += go-for-it SUBDIR += goesimage SUBDIR += gourmet SUBDIR += gpicker SUBDIR += grantlee-editor SUBDIR += grantleetheme SUBDIR += griffith SUBDIR += growl-for-linux SUBDIR += gsimplecal SUBDIR += gtg SUBDIR += gtimer SUBDIR += gucharmap SUBDIR += gworkspace SUBDIR += gworkspace-gwmetadata SUBDIR += gxmessage SUBDIR += gxneur SUBDIR += hebcal SUBDIR += helpviewer SUBDIR += horde-groupware SUBDIR += horde-kronolith SUBDIR += horde-mnemo SUBDIR += horde-nag SUBDIR += hot-babe SUBDIR += howm SUBDIR += ical SUBDIR += jjclient SUBDIR += jlj SUBDIR += kaddressbook SUBDIR += kalarm SUBDIR += kcharselect SUBDIR += kchmviewer SUBDIR += kdeconnect-kde SUBDIR += kdepim SUBDIR += kdepim-addons SUBDIR += kdepim-apps-libs SUBDIR += kdepim-runtime SUBDIR += keditbookmarks SUBDIR += kfind SUBDIR += kmail SUBDIR += kmail-account-wizard SUBDIR += knotes SUBDIR += kontact SUBDIR += korganizer SUBDIR += kruler SUBDIR += latte-dock SUBDIR += libkdepim SUBDIR += libopensync-plugin-vformat-devel SUBDIR += ljcharm SUBDIR += ljclive SUBDIR += logjam SUBDIR += lookbook SUBDIR += lumina-archiver SUBDIR += lumina-calculator SUBDIR += lumina-fileinfo SUBDIR += lumina-fm SUBDIR += lumina-mediaplayer SUBDIR += lumina-pdf SUBDIR += lumina-photo SUBDIR += lumina-screenshot SUBDIR += lumina-textedit SUBDIR += lxqt-notificationd SUBDIR += mat SUBDIR += mate-notification-daemon SUBDIR += mate-utils SUBDIR += mbox-importer SUBDIR += mencal SUBDIR += menumaker SUBDIR += meteo SUBDIR += moregroupware SUBDIR += mozo SUBDIR += myitcrm SUBDIR += nautilus-actions SUBDIR += nautilus-sendto SUBDIR += nemo-extensions SUBDIR += nextcloudclient SUBDIR += note SUBDIR += noti SUBDIR += notification-daemon SUBDIR += notify-osd SUBDIR += orage SUBDIR += osmo SUBDIR += osynctool SUBDIR += owncloudclient SUBDIR += p5-Data-ICal SUBDIR += p5-Data-ICal-DateTime SUBDIR += p5-Goo SUBDIR += pal SUBDIR += parcellite SUBDIR += pet SUBDIR += phpicalendar SUBDIR += pim-data-exporter SUBDIR += pim-sieve-editor SUBDIR += pinot SUBDIR += plan SUBDIR += plans SUBDIR += plasma5-milou SUBDIR += plasma5-sddm-kcm SUBDIR += plopfolio SUBDIR += preferences SUBDIR += projectlibre SUBDIR += puush SUBDIR += py-autokey SUBDIR += py-bugwarrior SUBDIR += py-khal SUBDIR += py-khard SUBDIR += py-paperless SUBDIR += py-py3status SUBDIR += py-pystash SUBDIR += py-send2trash SUBDIR += py-taskw SUBDIR += py-todoman SUBDIR += py-vdirsyncer SUBDIR += py-vobject SUBDIR += pybookreader SUBDIR += pypanel SUBDIR += qlipper SUBDIR += qownnotes SUBDIR += recoll SUBDIR += remind SUBDIR += rolo SUBDIR += rox-memo SUBDIR += rubrica SUBDIR += rubygem-shellplay SUBDIR += rubygem-taskjuggler SUBDIR += semantik SUBDIR += showdown SUBDIR += shutter SUBDIR += simpleagenda SUBDIR += sliderule SUBDIR += spice-gtk SUBDIR += sugarcrm SUBDIR += synapse SUBDIR += syncthing-gtk SUBDIR += syncthingtray SUBDIR += sysctlview SUBDIR += systempreferences SUBDIR += taskcoach SUBDIR += taskd SUBDIR += tasksh SUBDIR += taskwarrior SUBDIR += teapot SUBDIR += tel + SUBDIR += terminal-image-viewer SUBDIR += thinkingrock SUBDIR += timewarrior SUBDIR += tine20 SUBDIR += tnote SUBDIR += todo SUBDIR += tomboy SUBDIR += tomboy-plugin-latex SUBDIR += tomboy-plugin-reminder SUBDIR += tomboy-plugin-todo SUBDIR += toolboxkit SUBDIR += tpb SUBDIR += treeline SUBDIR += treesheets SUBDIR += virt-manager SUBDIR += vit SUBDIR += vnc2flv SUBDIR += wammu SUBDIR += when SUBDIR += wmpinboard SUBDIR += wyrd SUBDIR += x026 SUBDIR += xcalendar SUBDIR += xchm SUBDIR += xfce4-generic-slider SUBDIR += xfce4-notes-plugin SUBDIR += xfce4-notifyd SUBDIR += xfce4-tumbler SUBDIR += xfce4-volumed SUBDIR += xfce4-volumed-pulse SUBDIR += xfce4-xkb-plugin SUBDIR += xmdiary SUBDIR += xneur SUBDIR += xpad SUBDIR += xpad3 SUBDIR += xpostit SUBDIR += xpostitPlus SUBDIR += xrolo SUBDIR += xwrits SUBDIR += zanshin SUBDIR += zim SUBDIR += znotes SUBDIR += zorro .include Index: head/deskutils/terminal-image-viewer/Makefile =================================================================== --- head/deskutils/terminal-image-viewer/Makefile (nonexistent) +++ head/deskutils/terminal-image-viewer/Makefile (revision 517353) @@ -0,0 +1,29 @@ +# $FreeBSD$ + +PORTNAME= terminal-image-viewer +DISTVERSIONPREFIX= v +DISTVERSION= 1.0.0-50 +DISTVERSIONSUFFIX= -g134ca73 +CATEGORIES= deskutils + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Display images in terminals using RGB ANSI codes & unicode characters + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/../../../LICENSE + +USES= compiler:c++17-lang gmake +USE_GITHUB= yes +GH_ACCOUNT= stefanhaustein +GH_PROJECT= TerminalImageViewer + +MAKE_ARGS= INSTALL_PROGRAM="${INSTALL_PROGRAM}" +WRKSRC_SUBDIR= src/main/cpp + +PLIST_FILES= bin/tiv + +.if exists(/usr/include/c++/v1) && !exists(/usr/include/c++/v1/filesystem) +BROKEN= STL feature 'filesystem' isn't available # ' +.endif + +.include Property changes on: head/deskutils/terminal-image-viewer/Makefile ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/deskutils/terminal-image-viewer/distinfo =================================================================== --- head/deskutils/terminal-image-viewer/distinfo (nonexistent) +++ head/deskutils/terminal-image-viewer/distinfo (revision 517353) @@ -0,0 +1,3 @@ +TIMESTAMP = 1573593050 +SHA256 (stefanhaustein-TerminalImageViewer-v1.0.0-50-g134ca73_GH0.tar.gz) = 9786da18752f373910a40be9c6d520698128c74fd2708e168567f4eaa4d058c5 +SIZE (stefanhaustein-TerminalImageViewer-v1.0.0-50-g134ca73_GH0.tar.gz) = 460148 Property changes on: head/deskutils/terminal-image-viewer/distinfo ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/deskutils/terminal-image-viewer/files/patch-Makefile =================================================================== --- head/deskutils/terminal-image-viewer/files/patch-Makefile (nonexistent) +++ head/deskutils/terminal-image-viewer/files/patch-Makefile (revision 517353) @@ -0,0 +1,20 @@ +--- Makefile.orig 2019-10-21 19:12:09 UTC ++++ Makefile +@@ -5,7 +5,7 @@ OBJECTS = tiv.o + CXX ?= g++ + CXXFLAGS ?= -O2 -fpermissive + INSTALL ?= install +-INSTALL_PROGRAM ?= $(INSTALL) -D ++INSTALL_PROGRAM ?= $(INSTALL) + + # https://www.gnu.org/prep/standards/html_node/Directory-Variables.html#Directory-Variables + prefix ?= /usr/local +@@ -14,7 +14,7 @@ bindir ?= $(exec_prefix)/bin + + override CXXFLAGS += -std=c++17 -Wall -fexceptions + override LDFLAGS += -pthread +-override LDLIBS += -lstdc++fs ++#override LDLIBS += -lstdc++fs + + all: $(PROGNAME) + Property changes on: head/deskutils/terminal-image-viewer/files/patch-Makefile ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/deskutils/terminal-image-viewer/pkg-descr =================================================================== --- head/deskutils/terminal-image-viewer/pkg-descr (nonexistent) +++ head/deskutils/terminal-image-viewer/pkg-descr (revision 517353) @@ -0,0 +1,17 @@ +Small C++ program to display images in a (modern) terminal using RGB ANSI codes +and unicode block graphic characters. + +There are various similar tools (such as timg) using the unicode half block +character to display two 24bit pixels per character cell. This program enhances +the resolution by mapping 4x8 pixel cells to different unicode characters, +using the following algorithm: + +For each 4x8 pixel cell of the (potentially downscaled) image: +* Find the color channel (R, G or B) that has the biggest range of values for + the current cell. +* Split this range in the middle and create a corresponding bitmap for the cell. +* Compare the bitmap to the assumed bitmaps for various unicode block graphics + characters. +* Re-calculate the foreground and background colors for the chosen character. + +WWW: https://github.com/stefanhaustein/TerminalImageViewer Property changes on: head/deskutils/terminal-image-viewer/pkg-descr ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property