Skip to content

Commit

Permalink
x11/xvattr: resurrect port
Browse files Browse the repository at this point in the history
Find the distfile online and bring the port back from the attic.
Give it a good dusting off and set LICENSE.

xvattr lets you list the available attributes associated with the Xv
extension to X11. It also allows you to change the values of the
attributes. This can be used to change brightness and so on for programs
that use Xv overlays.

Requested by:	rsjw on libera.chat/#freebsd-ports
  • Loading branch information
clausecker committed Oct 11, 2023
1 parent e6fe46f commit d93c3b3
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 1 deletion.
1 change: 0 additions & 1 deletion MOVED
Expand Up @@ -4433,7 +4433,6 @@ x11/sisctrl||2020-05-05|Has expired: Broken for more than 6 months
x11/xaniroc||2020-05-05|Has expired: Broken for more than 6 months
x11/xmove||2020-05-05|Has expired: Broken for more than 6 months
x11/xnodecor||2020-05-05|Has expired: Broken for more than 6 months
x11/xvattr||2020-05-05|Has expired: Broken for more than 6 months
x11-clocks/tktz||2020-05-05|Has expired: Broken for more than 6 months
x11-clocks/xtimer||2020-05-05|Has expired: Broken for more than 6 months
x11-themes/gnome-icons-dropline-neu||2020-05-05|Has expired: Broken for more than 6 months
Expand Down
1 change: 1 addition & 0 deletions x11/Makefile
Expand Up @@ -614,6 +614,7 @@
SUBDIR += xvinfo
SUBDIR += xvkbd
SUBDIR += xvmcinfo
SUBDIR += xvattr
SUBDIR += xvt
SUBDIR += xwatchwin
SUBDIR += xwd
Expand Down
42 changes: 42 additions & 0 deletions x11/xvattr/Makefile
@@ -0,0 +1,42 @@
PORTNAME= xvattr
DISTVERSION= 1.3
PORTREVISION= 11
CATEGORIES= x11
MASTER_SITES= LOCAL/fuz
DISTNAME= xvattr_${DISTVERSION}.orig

MAINTAINER= fuz@FreeBSD.org
COMMENT= Getting and setting Xv attributes

LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING

LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \
libfreetype.so:print/freetype2 \
libharfbuzz.so:print/harfbuzz

USES= gnome pkgconfig xorg
USE_GNOME= cairo gdkpixbuf2 gtk20
USE_XORG= x11 xv

PLIST_FILES= bin/xvattr bin/gxvattr \
man/man1/${PORTNAME}.1.gz

CFLAGS+= -DVERSION=\"${PORTVERSION}\"
WRKSRC= ${WRKDIR}/xvattr-${DISTVERSION}

post-extract:
@${RM} ${WRKSRC}/getopt.h

do-build:
cd ${WRKSRC} && ${CC} ${CFLAGS} ${PORTNAME}.c -o ${PORTNAME} \
`pkg-config --cflags --libs xv x11`
cd ${WRKSRC} && ${CC} ${CFLAGS} g${PORTNAME}.c -o g${PORTNAME} \
`pkg-config --cflags --libs gtk+-2.0 xv x11`

do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/g${PORTNAME} ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${MANPREFIX}/man/man1

.include <bsd.port.mk>
3 changes: 3 additions & 0 deletions x11/xvattr/distinfo
@@ -0,0 +1,3 @@
TIMESTAMP = 1697004253
SHA256 (xvattr_1.3.orig.tar.gz) = 1cedc0b4795e6f4234b1d52172f74d7163ecb8142fbb35dc86c905df5478d8fa
SIZE (xvattr_1.3.orig.tar.gz) = 82263
4 changes: 4 additions & 0 deletions x11/xvattr/pkg-descr
@@ -0,0 +1,4 @@
xvattr lets you list the available attributes associated with the Xv
extension to X11. It also allows you to change the values of the
attributes. This can be used to change brightness and so on for programs
that use Xv overlays.

0 comments on commit d93c3b3

Please sign in to comment.