1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00
freebsd-ports/irc/slirc/files/patch-Makefile
Pawel Pekala 00f4313cae - Add staging support, allow it as normal user
- Remove leading article from COMMENT
- Convert to new LIB_DEPENDS format
- Remove Author line from pkg-descr
- Docdir safe, use DOCSDIR sub in pkg-plist
2014-05-08 17:42:31 +00:00

38 lines
1.4 KiB
Plaintext

--- Makefile.orig 1999-08-23 22:42:02.000000000 +0200
+++ Makefile 2014-05-08 18:53:51.000000000 +0200
@@ -1,10 +1,10 @@
#!/bin/make -f
-CC=gcc
-CFLAGS:=-Wall -Wmissing-declarations -Wstrict-prototypes -O2 -Iinclude
+CC?=cc
+CFLAGS+=-Wall -Wmissing-declarations -Wstrict-prototypes -I$(SLANG_INCDIR) $(KANJI)
SOFLAGS:=-shared -fPIC -Wl,-export-dynamic
LDFLAGS:=-s
-LIBS:=-ldl -lm -Llib -lslang
+LIBS:=-lm -ltermcap -L$(SLANG_LIBDIR) -lslang
pwd:=$(shell pwd)
@@ -41,13 +41,13 @@
ifeq ($(CFG_DIR),$(pwd))
@echo "Running from local dir, no global install"
else
- [ -d $(bin_dir) ] || mkdir -p $(bin_dir)
- [ -d $(lib_dir) ] || mkdir -p $(lib_dir)
- [ -d $(CFG_DIR) ] || mkdir -p $(CFG_DIR)
- [ -d $(script_dir) ] || mkdir -p $(script_dir)
- install -p -o root -g root -m755 slirc $(bin_dir)
- install -p -o root -g root -m755 $(MODULES) $(CFG_DIR)
- install -p -o root -g root -m644 scripts/*.sl $(script_dir)
+ [ -d $(DESTDIR)$(bin_dir) ] || mkdir -p $(DESTDIR)$(bin_dir)
+ [ -d $(DESTDIR)$(lib_dir) ] || mkdir -p $(DESTDIR)$(lib_dir)
+ [ -d $(DESTDIR)$(CFG_DIR) ] || mkdir -p $(DESTDIR)$(CFG_DIR)
+ [ -d $(DESTDIR)$(script_dir) ] || mkdir -p $(DESTDIR)$(script_dir)
+ $(BSD_INSTALL_PROGRAM) slirc $(DESTDIR)$(bin_dir)
+ $(BSD_INSTALL_LIB) $(MODULES) $(DESTDIR)$(CFG_DIR)
+ $(BSD_INSTALL_SCRIPT) scripts/*.sl $(DESTDIR)$(script_dir)
endif
slirc: slirc.o lru.o slload.o windoze.o