ports/filesystems/genromfs/files/patch-Makefile
Robert Clausecker 6e2da9672f filesystems: add new category for file systems and related utilities
The filesystems category houses file systems and file system utilities.
It is added mainly to turn the sysutils/fusefs-* pseudo-category into
a proper one, but is also useful for the sundry of other file systems
related ports found in the tree.

Ports that seem like they belong there are moved to the new category.
Two ports, sysutils/fusefs-funionfs and sysutils/fusefs-fusepak are
not moved as they currently don't fetch and don't have TIMESTAMP set
in their distinfo, but that is required to be able to push a rename
of the port by the pre-receive hook.

Approved by:	portmgr (rene)
Reviewed by:	mat
Pull Request:	https://github.com/freebsd/freebsd-ports/pull/302
PR:		281988
2024-11-06 16:17:35 +01:00

36 lines
853 B
Text

--- Makefile.orig 2009-02-15 10:48:15 UTC
+++ Makefile
@@ -5,7 +5,7 @@ all: genromfs
PACKAGE = genromfs
VERSION = 0.5.7
-CC = gcc
+CC = cc
CFLAGS = -O2 -Wall -DVERSION=\"$(VERSION)\"#-g#
LDFLAGS = -s#-g
@@ -17,9 +17,9 @@ FILES = COPYING NEWS ChangeLog Makefile \
checkdist \
.gitignore selftest
-prefix = /usr
-bindir = $(prefix)/bin
-mandir = $(prefix)/man
+PREFIX ?= /usr
+bindir = /bin
+mandir = /share/man
genromfs: genromfs.o
$(CC) $(LDFLAGS) genromfs.o -o genromfs
@@ -53,11 +53,6 @@ install-bin:
install -m 755 genromfs $(PREFIX)$(bindir)/
install-man:
- # genromfs 0.5 installed the man page in this file,
- # remove it before someone notices :)
- if [ -f $(PREFIX)$(bindir)/man8 ]; then \
- rm -f $(PREFIX)$(bindir)/man8; \
- fi
mkdir -p $(PREFIX)$(mandir)/man8
install -m 644 genromfs.8 $(PREFIX)$(mandir)/man8/