opnsense-ports/irc/darkbot/files/patch-Makefile
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

42 lines
1.2 KiB
Text

--- Makefile.orig Tue Apr 1 00:14:41 2003
+++ Makefile Tue Apr 1 00:23:28 2003
@@ -11,9 +11,9 @@
# ..darkbot_debug.log, 'make debug2' #
# ------------------------------------------------ #
-CC = gcc
+CC ?= gcc
-CFLAGS = -DFORK -O3
+CFLAGS += -DFORK
DFLAGS = -dm -pg -g -DDEBUG
@@ -23,14 +23,15 @@
ALL_SRC = darkbot.c
-BASE_DIR = /usr/local/
+BASE_DIR = ${PREFIX}/
all: ; ${CC} ${CFLAGS} ${ALL_SRC} -o ${EXE_NAME};
chmod +x ./configure;
install: ; cp darkbot ${BASE_DIR}bin/;
- mkdir ${BASE_DIR}etc/darkbot/; mkdir ${BASE_DIR}etc/darkbot/logs/;
- mkdir ${BASE_DIR}etc/darkbot/dat/;
+ -mkdir ${BASE_DIR}etc/darkbot/;
+ -mkdir ${BASE_DIR}etc/darkbot/logs/;
+ -mkdir ${BASE_DIR}etc/darkbot/dat/;
cp dat/* ${BASE_DIR}etc/darkbot/dat/; chmod +x ./.runonce; ./.runonce;
cp configure config; chmod -x ./config;
cp ./config ${BASE_DIR}etc/darkbot/;
@@ -38,7 +39,7 @@
echo "cd /usr/local/etc/darkbot/;/bin/sh config" >> \
${BASE_DIR}etc/darkbot/configure;
chmod +x ${BASE_DIR}etc/darkbot/configure;
- cp ./darkbot.1.gz /usr/local/man/man1/;
+ cp ./darkbot.1.gz ${BASE_DIR}man/man1/;
debug: ; ${CC} ${DFLAGS} ${ALL_SRC} -o ${EXE_NAME}; cat .debug ; gdb ${EXE_NAME}