mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
- Fix build with -current's clang by fixing header typo
- Use OPTIONS helpers - Remove pre-install target that checked whether a file exists in ${STAGEDIR}${PREFIX} (it doesn't)
This commit is contained in:
parent
0714e89443
commit
dcbefbef1f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=364990
@ -24,37 +24,22 @@ MAKE_ENV+= BINDIR="${PREFIX}/bin" \
|
||||
CFLAGS+= -std=c99
|
||||
|
||||
OPTIONS_DEFINE= THREADS NLS OVERWRITE_BASE
|
||||
OVERWRITE_BASE_DESC= Replaces base GNU sort
|
||||
OVERWRITE_BASE_DESC= Replace base GNU sort
|
||||
OPTIONS_DEFAULT= THREADS NLS
|
||||
OPTIONS_SUB= yes
|
||||
|
||||
NLS_MAKE_ENV_OFF= WITHOUT_NLS=yes
|
||||
THREADS_MAKE_ENV= WITH_THREADS=yes
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${PORT_OPTIONS:MNLS}
|
||||
PLIST_SUB+= NLS=""
|
||||
.else
|
||||
MAKE_ENV+= WITHOUT_NLS=yes
|
||||
PLIST_SUB+= NLS="@comment "
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MTHREADS}
|
||||
MAKE_ENV+= WITH_THREADS=yes
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MOVERWRITE_BASE}
|
||||
PREFIX= /usr
|
||||
PLIST_SUB+= OVERWRITE_BASE="" NO_OVERWRITE_BASE="@comment "
|
||||
.else
|
||||
PLIST_SUB+= OVERWRITE_BASE="@comment " NO_OVERWRITE_BASE=""
|
||||
.endif
|
||||
|
||||
.if defined(WITH_OVERWRITE_BASE) && exists(${STAGEDIR}${PREFIX}/bin/sort)
|
||||
pre-install:
|
||||
${INSTALL_PROGRAM} ${STAGEDIR}${PREFIX}/bin/sort ${STAGEDIR}${PREFIX}/bin/gnusort
|
||||
.endif
|
||||
|
||||
post-install:
|
||||
${LN} -s ${PREFIX}/bin/sort ${STAGEDIR}${PREFIX}/bin/bsdsort
|
||||
.if !defined(WITH_OVERWRITE_BASE)
|
||||
.if empty(OVERWRITE_BASE)
|
||||
${LN} -s /usr/bin/sort ${STAGEDIR}${PREFIX}/bin/gnusort
|
||||
.endif
|
||||
|
||||
|
11
textproc/bsdsort/files/patch-vsort.h
Normal file
11
textproc/bsdsort/files/patch-vsort.h
Normal file
@ -0,0 +1,11 @@
|
||||
--- vsort.h.orig 2014-08-15 12:06:55.000000000 -0400
|
||||
+++ vsort.h 2014-08-15 12:07:03.000000000 -0400
|
||||
@@ -28,7 +28,7 @@
|
||||
*/
|
||||
|
||||
#if !defined(__VSORT_H__)
|
||||
-#define _VSORT_H__
|
||||
+#define __VSORT_H__
|
||||
|
||||
#include "bwstring.h"
|
||||
|
Loading…
Reference in New Issue
Block a user