mirror of
https://git.freebsd.org/ports.git
synced 2025-06-13 00:30:33 -04:00
Convert to options helpers Install everything with BSD_INSTALL_* instead of cp to set correct permissions and strip binaries Pet portlint and stage-qa PR: 213490 [1] Submitted by: G. Paul Ziemba <p-fbsd-bugs@ziemba.us> [1]
45 lines
1.6 KiB
Text
45 lines
1.6 KiB
Text
--- vncstorepw/Makefile.orig 2010-04-22 03:22:40 UTC
|
|
+++ vncstorepw/Makefile
|
|
@@ -7,21 +7,18 @@ UNWRAP = unwrap.so
|
|
LIMACC = lim_accept.so
|
|
ULTDSM = ultravnc_dsm_helper
|
|
|
|
-# gcc must be used:
|
|
-CC = gcc
|
|
|
|
all: $(CMD) $(UNWRAP) $(LIMACC) $(ULTDSM)
|
|
|
|
$(CMD): vncauth.o vncstorepw.o d3des.o
|
|
PATH=$$PATH:$(EPATH) $(CC) -o $(CMD) vncstorepw.o vncauth.o d3des.o
|
|
- PATH=$$PATH:$(EPATH) strip $(CMD)
|
|
@ls -l $(CMD)
|
|
|
|
$(UNWRAP): unwrap.c
|
|
if [ `uname` = "Darwin" ]; then \
|
|
PATH=$$PATH:$(EPATH) $(CC) -o $(UNWRAP) -dynamiclib -fPIC unwrap.c; \
|
|
else \
|
|
- PATH=$$PATH:$(EPATH) $(CC) -o $(UNWRAP) -shared -fPIC unwrap.c; \
|
|
+ PATH=$$PATH:$(EPATH) $(CC) -o $(UNWRAP) -shared $(CFLAGS) -fPIC unwrap.c; \
|
|
fi
|
|
@ls -l $(UNWRAP)
|
|
|
|
@@ -29,7 +26,7 @@ $(LIMACC): lim_accept.c
|
|
if [ `uname` = "Darwin" ]; then \
|
|
PATH=$$PATH:$(EPATH) $(CC) -o $(LIMACC) -dynamiclib -fPIC -nostartfiles lim_accept.c; \
|
|
else \
|
|
- PATH=$$PATH:$(EPATH) $(CC) -o $(LIMACC) -shared -fPIC -nostartfiles lim_accept.c; \
|
|
+ PATH=$$PATH:$(EPATH) $(CC) -o $(LIMACC) -shared $(CFLAGS) -fPIC -nostartfiles lim_accept.c; \
|
|
fi
|
|
@ls -l $(LIMACC)
|
|
|
|
@@ -39,9 +36,8 @@ $(ULTDSM): ultravnc_dsm_helper.c
|
|
if [ `uname` = "SunOS" ]; then \
|
|
PATH=$$PATH:$(EPATH) $(CC) -o $(ULTDSM) $(CPP_SSL) ultravnc_dsm_helper.c $(LD_SSL) -lssl -lcrypto -lsocket -lnsl; \
|
|
else \
|
|
- PATH=$$PATH:$(EPATH) $(CC) -o $(ULTDSM) $(CPP_SSL) ultravnc_dsm_helper.c $(LD_SSL) -lssl -lcrypto; \
|
|
+ PATH=$$PATH:$(EPATH) $(CC) -o $(ULTDSM) $(CPP_SSL) ultravnc_dsm_helper.c $(CFLAGS) $(LDFLAGS) -lssl -lcrypto; \
|
|
fi
|
|
- PATH=$$PATH:$(EPATH) strip $(ULTDSM)
|
|
@ls -l $(ULTDSM)
|
|
|
|
test: $(CMD)
|