From dcbefbef1f6715b47634253650ba0a786b06e87c Mon Sep 17 00:00:00 2001 From: Adam Weinberger Date: Fri, 15 Aug 2014 16:17:20 +0000 Subject: [PATCH] - 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) --- textproc/bsdsort/Makefile | 27 ++++++--------------------- textproc/bsdsort/files/patch-vsort.h | 11 +++++++++++ 2 files changed, 17 insertions(+), 21 deletions(-) create mode 100644 textproc/bsdsort/files/patch-vsort.h diff --git a/textproc/bsdsort/Makefile b/textproc/bsdsort/Makefile index 3ef720e11b23..9dfbe01564b7 100644 --- a/textproc/bsdsort/Makefile +++ b/textproc/bsdsort/Makefile @@ -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 -.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 diff --git a/textproc/bsdsort/files/patch-vsort.h b/textproc/bsdsort/files/patch-vsort.h new file mode 100644 index 000000000000..a966e5c111fe --- /dev/null +++ b/textproc/bsdsort/files/patch-vsort.h @@ -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" +