mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
- Support staging
- Use proper INSTALL_* macros instead of CP - Respect CC and therefore fix build with clang - Respect CFLAGS
This commit is contained in:
parent
ad2f70940d
commit
ffa656226c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=351052
@ -11,24 +11,19 @@ DISTNAME= ${PORTNAME}_${PORTVERSION}
|
||||
MAINTAINER= raffaele.delorenzo@libero.it
|
||||
COMMENT= SOCKS Client v4/v5 RFC Compliant with many features
|
||||
|
||||
PLIST_FILES= etc/csocks.conf.sample lib/libcsocks.so lib/libcsocks.so.1 bin/csocks
|
||||
PLIST_FILES= etc/csocks.conf.sample lib/libcsocks.so lib/libcsocks.so.1 \
|
||||
bin/csocks man/man1/csocks.1.gz man/man5/csocks.conf.5.gz
|
||||
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
WRKSRC= ${WRKDIR}/src
|
||||
USE_LDCONFIG= yes
|
||||
MAN1= csocks.1
|
||||
MAN5= csocks.conf.5
|
||||
MANCOMPRESSED= yes
|
||||
|
||||
NO_STAGE= yes
|
||||
post-patch:
|
||||
${REINPLACE_CMD} "s#/usr/local#${PREFIX}#" ${WRKDIR}/src/Makefile
|
||||
|
||||
do-install:
|
||||
${CP} -p ${WRKDIR}/src/libcsocks.so.1 ${PREFIX}/lib/
|
||||
${LN} -fs ${PREFIX}/lib/libcsocks.so.1 ${PREFIX}/lib/libcsocks.so
|
||||
${CP} -p ${WRKDIR}/freebsd/csocks ${PREFIX}/bin
|
||||
${CP} -p ${WRKDIR}/csocks.conf ${PREFIX}/etc/csocks.conf.sample
|
||||
${CP} -p ${WRKDIR}/man/csocks.1.gz ${MANPREFIX}/man/man1
|
||||
${CP} -p ${WRKDIR}/man/csocks.conf.5.gz ${MANPREFIX}/man/man5
|
||||
${INSTALL_SCRIPT} ${WRKDIR}/freebsd/csocks ${STAGEDIR}${PREFIX}/bin
|
||||
${INSTALL_LIB} ${WRKDIR}/src/libcsocks.so.1 ${STAGEDIR}${PREFIX}/lib
|
||||
${LN} -s libcsocks.so.1 ${STAGEDIR}${PREFIX}/lib/libcsocks.so
|
||||
${INSTALL_DATA} ${WRKDIR}/csocks.conf ${STAGEDIR}${PREFIX}/etc/csocks.conf.sample
|
||||
${INSTALL_MAN} ${WRKDIR}/man/csocks.1.gz ${STAGEDIR}${MANPREFIX}/man/man1
|
||||
${INSTALL_MAN} ${WRKDIR}/man/csocks.conf.5.gz ${STAGEDIR}${MANPREFIX}/man/man5
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
15
net/csocks/files/patch-Makefile
Normal file
15
net/csocks/files/patch-Makefile
Normal file
@ -0,0 +1,15 @@
|
||||
--- Makefile.orig 2014-04-11 23:48:26.646982600 +0200
|
||||
+++ Makefile 2014-04-11 23:49:46.629977600 +0200
|
||||
@@ -1,9 +1,9 @@
|
||||
# Compiler/Linker/dynamic linker
|
||||
-CC = gcc
|
||||
-LD = gcc
|
||||
+CC ?= gcc
|
||||
+LD = $(CC)
|
||||
|
||||
# flags to compile object files that can be used in a dynamic library
|
||||
-CFLAGS = -fPIC -Wall -g -c -O2 -fno-strict-aliasing -pipe -Wall -std=c99 -D'CSOCKS_CONF="/usr/local/etc/csocks.conf"'
|
||||
+CFLAGS += -fPIC -c -std=c99 -D'CSOCKS_CONF="$(PREFIX)/etc/csocks.conf"'
|
||||
# on some platforms, use '-fpic' instead.
|
||||
|
||||
# Flags to create a dynamic library.
|
Loading…
Reference in New Issue
Block a user