ports/sysutils/ucspi-proxy/files/patch-Makefile
Marcelo Araujo 22a66d40c5 - Update to 1.0.
- Reset maintainership to myself, previous maintainer is unresponsive.
2017-03-26 04:54:07 +00:00

33 lines
1.1 KiB
Text

--- Makefile.orig 2015-08-12 01:51:43 UTC
+++ Makefile
@@ -20,11 +20,12 @@ clean: TARGETS
clean-spac: clean AUTOFILES
rm -f `cat AUTOFILES`
-compile: conf-cc
- ( echo '#!/bin/sh'; \
+compile: conf-cc conf-bgincs
+ ( bgincs=`head -n 1 conf-bgincs`; \
+ echo '#!/bin/sh'; \
echo 'source=$$1; shift'; \
echo 'base=`echo "$$source" | sed -e s:\\\\.c$$::`'; \
- echo exec `head -n 1 conf-cc` -I. '-o $${base}.o -c $$source $${1+"$$@"}'; \
+ echo exec `head -n 1 conf-cc` -I. "-I'$${bgincs}'" "-I /usr/local/include/" '-o $${base}.o -c $$source $${1+"$$@"}'; \
) >compile
chmod 755 compile
@@ -42,10 +43,11 @@ install: INSTHIER conf-bin conf-man
libraries: ucspi-proxy.a
-load: conf-ld
- ( echo '#!/bin/sh';\
+load: conf-ld conf-bglibs
+ ( bglibs=`head -n 1 conf-bglibs`; \
+ echo '#!/bin/sh';\
echo 'main="$$1"; shift';\
- echo exec `head -n 1 conf-ld` -L. '-o "$$main" "$$main.o" $${1+"$$@"}'; \
+ echo exec `head -n 1 conf-ld` -L. "-L'$${bglibs}'" "-Wl,-R'$${bglibs}'" '-o "$$main" "$$main.o" $${1+"$$@"}'; \
) >load
chmod 755 load