1*4882a593SmuzhiyunSUMMARY = "Convert text file line endings between CRLF and LF" 2*4882a593SmuzhiyunDESCRIPTION = "The Dos2unix package includes utilities dos2unix and \ 3*4882a593Smuzhiyununix2dos to convert plain text files in DOS or Mac format to Unix \ 4*4882a593Smuzhiyunformat and vice versa." 5*4882a593SmuzhiyunHOMEPAGE = "http://waterlan.home.xs4all.nl/dos2unix.html" 6*4882a593SmuzhiyunSECTION = "support" 7*4882a593Smuzhiyun 8*4882a593SmuzhiyunLICENSE = "BSD-2-Clause" 9*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://COPYING.txt;md5=8a7c3499a1142df819e727253cd53a12" 10*4882a593Smuzhiyun 11*4882a593SmuzhiyunSRC_URI = "git://git.code.sf.net/p/dos2unix/dos2unix;branch=master" 12*4882a593SmuzhiyunUPSTREAM_CHECK_GITTAGREGEX = "dos2unix-(?P<pver>(\d+(\.\d+)+))" 13*4882a593Smuzhiyun 14*4882a593SmuzhiyunSRCREV = "72596f0ae21faa25a07a872d4843bc885475115d" 15*4882a593Smuzhiyun 16*4882a593SmuzhiyunS = "${WORKDIR}/git/dos2unix" 17*4882a593Smuzhiyun 18*4882a593Smuzhiyuninherit gettext perlnative 19*4882a593Smuzhiyun 20*4882a593Smuzhiyun# The dos2unix NLS relies on po4a-native, while po4a recipe is 21*4882a593Smuzhiyun# provided by meta-perl layer, so make it optional here, you 22*4882a593Smuzhiyun# need have meta-perl in bblayers.conf before enabling nls in 23*4882a593Smuzhiyun# PACKAGECONFIG. 24*4882a593SmuzhiyunPACKAGECONFIG ??= "" 25*4882a593SmuzhiyunPACKAGECONFIG[nls] = "ENABLE_NLS=1,ENABLE_NLS=,po4a-native" 26*4882a593Smuzhiyun 27*4882a593SmuzhiyunEXTRA_OEMAKE = "${PACKAGECONFIG_CONFARGS} LDFLAGS_USER='${LDFLAGS}'" 28*4882a593SmuzhiyunEXTRA_OEMAKE:class-native = "ENABLE_NLS=" 29*4882a593Smuzhiyun 30*4882a593Smuzhiyundo_install () { 31*4882a593Smuzhiyun oe_runmake DESTDIR="${D}${base_prefix}" install 32*4882a593Smuzhiyun} 33*4882a593Smuzhiyun 34*4882a593SmuzhiyunBBCLASSEXTEND = "native nativesdk" 35