Skip to content

Commit

Permalink
x11/tabbed: reduce patching
Browse files Browse the repository at this point in the history
Repect PREFIX and CC by using MAKE_ARGS instead of patching
While here move manpages to share/man
  • Loading branch information
bapt committed Jan 11, 2024
1 parent eabba65 commit 16cdb8a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 14 deletions.
4 changes: 3 additions & 1 deletion x11/tabbed/Makefile
@@ -1,5 +1,6 @@
PORTNAME= tabbed
PORTVERSION= 0.6
PORTREVISION= 1
CATEGORIES= x11
MASTER_SITES= http://dl.suckless.org/tools/

Expand All @@ -15,8 +16,9 @@ USE_XORG= x11
OPTIONS_DEFINE= DOCS

PLIST_FILES= bin/tabbed \
man/man1/tabbed.1.gz
share/man/man1/tabbed.1.gz
PORTDOCS= LICENSE README
MAKE_ARGS= PREFIX="${PREFIX}" CC="${CC}"

pre-everything::
@${ECHO_MSG} "You can build tabbed with your own config.h using the TABBED_CONF knob:"
Expand Down
15 changes: 2 additions & 13 deletions x11/tabbed/files/patch-config.mk
@@ -1,11 +1,7 @@
--- config.mk.orig 2014-01-21 18:22:03 UTC
+++ config.mk
@@ -5,15 +5,15 @@ VERSION = 0.6

# paths
PREFIX = /usr/local
-MANPREFIX = ${PREFIX}/share/man
+MANPREFIX = ${PREFIX}/man
@@ -8,12 +8,12 @@ MANPREFIX = ${PREFIX}/share/man
MANPREFIX = ${PREFIX}/share/man

# includes and libs
-INCS = -I. -I/usr/include
Expand All @@ -20,10 +16,3 @@
LDFLAGS = -s ${LIBS}

# Solaris
@@ -21,5 +21,5 @@ LDFLAGS = -s ${LIBS}
#LDFLAGS = ${LIBS}

# compiler and linker
-CC = cc
+CC?= cc

0 comments on commit 16cdb8a

Please sign in to comment.