pkgsrc/net/qadsl/patches/patch-aa

36 lines
784 B
Text

$NetBSD: patch-aa,v 1.2 2004/01/27 13:45:36 grant Exp $
--- Makefile.orig 2001-10-20 23:45:47.000000000 +1000
+++ Makefile
@@ -2,22 +2,23 @@
PROG=qadsl
CONF=qadsl.conf
-MACRO=__OpenBSD__
+#MACRO=__OpenBSD__
OBJS=main.o netfunc.o conf.o func.o
SRC=main.c netfunc.c conf.c func.c
-CPATH=/etc/
-INSTALL=/usr/local/sbin/
-MANPATH=/usr/local/man/man8/
+CPATH=${PKG_SYSCONFDIR}
+INSTALL=${PREFIX}/sbin
+MANPATH=${PREFIX}/man/man8
+CFLAGS+=-D__DEFAULT_CFG_PATH=\"${CPATH}/${CONF}\"
all:${PROG}
${PROG}:
- ${CC} -c ${SRC}
- ${CC} -o ${PROG} ${OBJS}
+ ${CC} ${CFLAGS} -c ${SRC}
+ ${CC} -o ${PROG} ${OBJS} ${LIBS}
bsd:
- ${CC} -D${MACRO} -c ${SRC}
- ${CC} -o ${PROG} ${OBJS}
+ ${CC} ${CFLAGS} -c ${SRC}
+ ${CC} -o ${PROG} ${OBJS} ${LIBS}
clean:
rm -fr ${PROG} ${OBJS}