mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 01:26:39 -04:00
editors/heme: convert MAKE_ARGS to patch file (for manpages)
Now that default manpage installation prefix had been changed, patching the Makefile statically would be more readable than combination of MAKE_ARGS + REINPLACE_CMD. While here, do not unconditionally try to strip the binary (respect WITH_DEBUG).
This commit is contained in:
parent
fd0b2d9567
commit
b0da15216e
2 changed files with 27 additions and 4 deletions
|
@ -11,11 +11,8 @@ LICENSE= GPLv2
|
||||||
|
|
||||||
USES= ncurses
|
USES= ncurses
|
||||||
ALL_TARGET= ${PORTNAME}
|
ALL_TARGET= ${PORTNAME}
|
||||||
MAKE_ARGS= CFLAGS="${CFLAGS} -Wall -DHAVE_MMAP" \
|
|
||||||
LDFLAGS="${LDFLAGS} -lncurses" \
|
|
||||||
INSTALL_PREFIX="${STAGEDIR}${PREFIX}"
|
|
||||||
|
|
||||||
PLIST_FILES= bin/${PORTNAME} man/man1/${PORTNAME}.1.gz
|
PLIST_FILES= bin/${PORTNAME} share/man/man1/${PORTNAME}.1.gz
|
||||||
PORTDOCS= README
|
PORTDOCS= README
|
||||||
|
|
||||||
OPTIONS_DEFINE= DOCS
|
OPTIONS_DEFINE= DOCS
|
||||||
|
|
26
editors/heme/files/patch-Makefile
Normal file
26
editors/heme/files/patch-Makefile
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
--- Makefile.orig 2006-11-22 22:24:17 UTC
|
||||||
|
+++ Makefile
|
||||||
|
@@ -1,18 +1,18 @@
|
||||||
|
INSTALL_PREFIX = /usr/local
|
||||||
|
-CFLAGS = -Wall -DHAVE_MMAP # remove -DHAVE_MMAP if you don't have mmap
|
||||||
|
-LDFLAGS = -lcurses
|
||||||
|
+CFLAGS += -Wall -DHAVE_MMAP
|
||||||
|
+LDFLAGS += -lcurses
|
||||||
|
OBJECTS = heme.o xmalloc.o error.o pconfig.o pgetopt.o
|
||||||
|
TARGET = heme
|
||||||
|
|
||||||
|
$(TARGET): $(OBJECTS)
|
||||||
|
- $(CC) $(OBJECTS) -o $(TARGET) $(LDFLAGS)
|
||||||
|
+ $(CC) $(CFLAGS) $(OBJECTS) -o $(TARGET) $(LDFLAGS)
|
||||||
|
|
||||||
|
.c.o:
|
||||||
|
$(CC) $(CFLAGS) -c $< -o $@
|
||||||
|
|
||||||
|
install: $(TARGET)
|
||||||
|
- install -s -m 0755 $(TARGET) $(INSTALL_PREFIX)/bin
|
||||||
|
- install -m 0644 heme.1 $(INSTALL_PREFIX)/man/man1
|
||||||
|
+ $(BSD_INSTALL_PROGRAM) $(TARGET) $(DESTDIR)$(PREFIX)/bin
|
||||||
|
+ $(BSD_INSTALL_DATA) heme.1 $(DESTDIR)$(PREFIX)/share/man/man1
|
||||||
|
|
||||||
|
uninstall:
|
||||||
|
rm -f $(INSTALL_PREFIX)/bin/$(TARGET)
|
Loading…
Add table
Reference in a new issue