mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 01:26:39 -04:00
x11/tabbed: Update to 0.8
New binary and manpage: xembed. Switch to DISTVERSION. Use localbase:ldflags, doesn't need patching config.mk. Add libfontconfig dependency. Add xft and xorgproto to USES_XORG. Add LICENSE_FILE. PR: 282583 Approved by: maintainer timeout (2+ weeks)
This commit is contained in:
parent
a9f6c0a727
commit
eb1d23fff0
4 changed files with 28 additions and 30 deletions
|
@ -1,6 +1,5 @@
|
|||
PORTNAME= tabbed
|
||||
PORTVERSION= 0.6
|
||||
PORTREVISION= 1
|
||||
DISTVERSION= 0.8
|
||||
CATEGORIES= x11
|
||||
MASTER_SITES= http://dl.suckless.org/tools/
|
||||
|
||||
|
@ -9,16 +8,21 @@ COMMENT= Tabbed frontend to Xembed-aware applications
|
|||
WWW= https://tools.suckless.org/tabbed
|
||||
|
||||
LICENSE= MIT
|
||||
LICENSE_FILE= ${WRKSRC}/LICENSE
|
||||
|
||||
USES= xorg
|
||||
USE_XORG= x11
|
||||
LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig
|
||||
|
||||
OPTIONS_DEFINE= DOCS
|
||||
USES= localbase:ldflags pkgconfig xorg
|
||||
USE_XORG= x11 xft xorgproto
|
||||
MAKE_ARGS= PREFIX="${PREFIX}" CC="${CC}"
|
||||
|
||||
PLIST_FILES= bin/tabbed \
|
||||
share/man/man1/tabbed.1.gz
|
||||
PORTDOCS= LICENSE README
|
||||
MAKE_ARGS= PREFIX="${PREFIX}" CC="${CC}"
|
||||
bin/xembed \
|
||||
share/man/man1/tabbed.1.gz \
|
||||
share/man/man1/xembed.1.gz
|
||||
PORTDOCS= README
|
||||
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
pre-everything::
|
||||
@${ECHO_MSG} "You can build tabbed with your own config.h using the TABBED_CONF knob:"
|
||||
|
@ -31,7 +35,6 @@ post-extract:
|
|||
.endif
|
||||
|
||||
post-install:
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
|
||||
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/*
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
SHA256 (tabbed-0.6.tar.gz) = 7651ea3acbec5d6a25469e8665da7fc70aba2b4fa61a2a6a5449eafdfd641c42
|
||||
SIZE (tabbed-0.6.tar.gz) = 12926
|
||||
TIMESTAMP = 1730835184
|
||||
SHA256 (tabbed-0.8.tar.gz) = 95bdffccb071083068d2b555c2524e9c7c57c9b64494d46c697e678d49a0a3d7
|
||||
SIZE (tabbed-0.8.tar.gz) = 13970
|
||||
|
|
12
x11/tabbed/files/patch-Makefile
Normal file
12
x11/tabbed/files/patch-Makefile
Normal file
|
@ -0,0 +1,12 @@
|
|||
--- Makefile.orig 2024-11-06 06:26:09 UTC
|
||||
+++ Makefile
|
||||
@@ -9,7 +9,8 @@ DOCPREFIX = ${PREFIX}/share/doc/${NAME}
|
||||
DOCPREFIX = ${PREFIX}/share/doc/${NAME}
|
||||
|
||||
# use system flags.
|
||||
-TABBED_CFLAGS = -I/usr/X11R6/include -I/usr/include/freetype2 ${CFLAGS}
|
||||
+FREETYPE_CFLAGS!=pkg-config --cflags freetype2
|
||||
+TABBED_CFLAGS = -I/usr/X11R6/include ${FREETYPE_CFLAGS} ${CFLAGS}
|
||||
TABBED_LDFLAGS = -L/usr/X11R6/lib -lX11 -lfontconfig -lXft ${LDFLAGS}
|
||||
TABBED_CPPFLAGS = -DVERSION=\"${VERSION}\" -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=700L
|
||||
|
|
@ -1,18 +0,0 @@
|
|||
--- config.mk.orig 2014-01-21 18:22:03 UTC
|
||||
+++ config.mk
|
||||
@@ -8,12 +8,12 @@ MANPREFIX = ${PREFIX}/share/man
|
||||
MANPREFIX = ${PREFIX}/share/man
|
||||
|
||||
# includes and libs
|
||||
-INCS = -I. -I/usr/include
|
||||
-LIBS = -L/usr/lib -lc -lX11
|
||||
+INCS = -I. -I${LOCALBASE}/include
|
||||
+LIBS = -L${LOCALBASE}/lib -lX11
|
||||
|
||||
# flags
|
||||
CPPFLAGS = -DVERSION=\"${VERSION}\" -D_BSD_SOURCE
|
||||
-CFLAGS = -std=c99 -pedantic -Wall -O0 ${INCS} ${CPPFLAGS}
|
||||
+CFLAGS += -Wall ${INCS} ${CPPFLAGS}
|
||||
LDFLAGS = -s ${LIBS}
|
||||
|
||||
# Solaris
|
Loading…
Add table
Reference in a new issue