openbsd-ports/converters/dos2unix/Makefile
sthen 65893c67b5 import ports/converters/dos2unix
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
2012-05-07 12:07:07 +00:00

39 lines
762 B
Makefile

# $OpenBSD: Makefile,v 1.1.1.1 2012/05/07 12:07:07 sthen Exp $
COMMENT= convert DOS/MAC files to UNIX (line-endings/charset)
DISTNAME= dos2unix-6.0
CATEGORIES= converters
HOMEPAGE= http://waterlan.home.xs4all.nl/dos2unix.html
# BSD
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB += c
MASTER_SITES= http://waterlan.home.xs4all.nl/dos2unix/
MODULES= devel/gettext
MAKE_FLAGS= CC="${CC}"
FAKE_FLAGS= prefix="${PREFIX}" \
docsubdir=dos2unix \
man1dir="${PREFIX}/man/man1"
USE_GMAKE= Yes
NO_REGRESS= Yes
do-configure:
perl -pi -e 's,/usr/local,${LOCALBASE},g' ${WRKSRC}/Makefile
post-install:
mv ${PREFIX}/share/man/* ${PREFIX}/man/
rmdir ${PREFIX}/share/man
.include <bsd.port.mk>