ok sthen@ xli is an image display program for X. It is a fork of xloadimage. A variety of options are available to modify images prior to viewing. These options include clipping, dithering, depth reduction, zoom (either X or Y axis independently or both at once), brightening or darkening, input gamma correction, and image merging. When applicable, these options are done automatically (eg. a color image to be displayed on a monochrome screen will be dithered automatically). A utility (xlito) is provided that allows these viewing options to be appended to the image files. xli can also be used to set the X background image if called as xsetbg.
40 lines
1.1 KiB
Makefile
40 lines
1.1 KiB
Makefile
# $OpenBSD: Makefile,v 1.1.1.1 2017/06/19 17:14:19 bcallah Exp $
|
|
|
|
COMMENT = very lightweight image viewer for X11
|
|
DISTNAME = xli-1.17.0
|
|
EXTRACT_SUFX = .tar.bz2
|
|
CATEGORIES = x11 graphics
|
|
|
|
HOMEPAGE = http://www.boomerangsworld.de/cms/worker/download/other.html
|
|
MAINTAINER = Brian Callahan <bcallah@openbsd.org>
|
|
|
|
# MIT
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
WANTLIB += X11 Xext c jpeg m png
|
|
|
|
MASTER_SITES = http://www.boomerangsworld.de/cms/worker/downloads/
|
|
|
|
LIB_DEPENDS = graphics/jpeg \
|
|
graphics/png
|
|
|
|
MAKE_FILE = Makefile.std
|
|
MAKE_FLAGS = CFLAGS="${CFLAGS} -I${LOCALBASE}/include -I${X11BASE}/include -DHAVE_GUNZIP" \
|
|
LIBS="-L${LOCALBASE}/lib -L${X11BASE}/lib -lX11 -lXext -ljpeg -lm -lpng"
|
|
|
|
NO_TEST = Yes
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/xli ${PREFIX}/bin
|
|
@cd ${PREFIX}/bin && \
|
|
ln -sf xli xsetbg && \
|
|
ln -sf xli xview
|
|
${INSTALL_PROGRAM} ${WRKSRC}/xlito ${PREFIX}/bin
|
|
${INSTALL_MAN} ${WRKSRC}/xli.man ${PREFIX}/man/man1/xli.1
|
|
@cd ${PREFIX}/man/man1 && \
|
|
ln -sf xli.1 xsetbg.1 && \
|
|
ln -sf xli.1 xview.1
|
|
${INSTALL_MAN} ${WRKSRC}/xlito.man ${PREFIX}/man/man1/xlito.1
|
|
|
|
.include <bsd.port.mk>
|