Edit

IABSD.fr/ports/converters/dos2unix/patches

Branch :

  • Show log

    Commit

  • Author : sthen
    Date : 2012-09-06 22:35:31
    Hash : 571bc17b
    Message : update to dos2unix 6.0.2

  • patch-Makefile
  • $OpenBSD: patch-Makefile,v 1.2 2012/09/06 22:35:31 sthen Exp $
    --- Makefile.orig	Thu Sep  6 20:17:00 2012
    +++ Makefile	Thu Sep  6 23:33:34 2012
    @@ -219,6 +219,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))
     	D2U_OS = Darwin
     ifdef ENABLE_NLS
    @@ -264,7 +274,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)\" \