65893c67b5
Convert text files with DOS or Mac line breaks to Unix line breaks and vice versa. Features: * Automatically skips binary and non-regular files. * In-place, paired, or stdio mode conversion. * Keep original file dates option. * 7-bit and iso conversion modes like SunOS dos2unix. * Conversion of Windows UTF-16 files to Unix UTF-8. ok/reminder about /usr/local (now subst'ed in do-configure) ajacoutot@ ok pirofti
30 lines
734 B
Plaintext
30 lines
734 B
Plaintext
$OpenBSD: patch-Makefile,v 1.1.1.1 2012/05/07 12:07:07 sthen Exp $
|
|
--- Makefile.orig Mon May 7 09:04:29 2012
|
|
+++ Makefile Mon May 7 09:06:36 2012
|
|
@@ -195,6 +195,16 @@ endif
|
|
endif
|
|
endif
|
|
|
|
+ifndef OS
|
|
+ifeq (OpenBSD, $(shell uname -s))
|
|
+ OS = openbsd
|
|
+ifdef ENABLE_NLS
|
|
+ CFLAGS_OS = -I/usr/local/include
|
|
+ LDFLAGS_EXTRA = -liconv -lintl -L/usr/local/lib
|
|
+endif
|
|
+endif
|
|
+endif
|
|
+
|
|
ifeq (Darwin, $(shell uname -s))
|
|
OS = Darwin
|
|
ifdef ENABLE_NLS
|
|
@@ -240,7 +250,7 @@ EO_NOTATION = -x
|
|
endif
|
|
|
|
CFLAGS_USER =
|
|
-CFLAGS = -O2 -Wall $(RPM_OPT_FLAGS) $(CPPFLAGS) $(CFLAGS_USER)
|
|
+CFLAGS += -Wall $(RPM_OPT_FLAGS) $(CPPFLAGS) $(CFLAGS_USER)
|
|
|
|
EXTRA_CFLAGS = -DVER_REVISION=\"$(DOS2UNIX_VERSION)\" \
|
|
-DVER_DATE=\"$(DOS2UNIX_DATE)\" \
|