diff --git a/dports/textproc/dos2unix/Portfile b/dports/textproc/dos2unix/Portfile
index cd66b9d..2b94c43 100644
a
|
b
|
|
3 | 3 | PortSystem 1.0 |
4 | 4 | |
5 | 5 | name dos2unix |
6 | | version 3.1 |
7 | | revision 1 |
| 6 | version 4.1 |
| 7 | license BSD |
8 | 8 | categories textproc |
9 | 9 | platforms darwin |
10 | 10 | maintainers waqar |
11 | 11 | description Convert text between dos, unix, and mac formats |
12 | 12 | long_description ${description} |
13 | | master_sites http://fresh.t-systems-sfr.com/linux/src/ |
14 | | homepage ${master_sites} |
15 | | checksums md5 25ff56bab202de63ea6f6c211c416e96 |
| 13 | master_sites http://www.sfr-fresh.com/linux/misc/ |
| 14 | homepage http://www.xs4all.nl/~waterlan/#DOS2UNIX |
| 15 | |
| 16 | checksums md5 11a52e01342e588584a92588291e7dae \ |
| 17 | sha1 db9b0434521c2348faab6d948f1f7938adba500a \ |
| 18 | rmd160 21ce3916ec698587d1b11ea4c3d8ce74f17f7f2a |
| 19 | |
| 20 | depends_lib port:gettext |
| 21 | |
16 | 22 | use_configure no |
17 | | build { |
18 | | system "cd ${worksrcpath} && ${configure.cc} ${configure.cflags} dos2unix.c -o dos2unix" } |
19 | 23 | |
20 | | destroot { |
21 | | system "install -m 755 -cs ${worksrcpath}/dos2unix ${destroot}${prefix}/bin" |
22 | | system "install -m 644 ${worksrcpath}/dos2unix.1 ${destroot}${prefix}/share/man/man1" |
23 | | system "ln -sf dos2unix ${destroot}${prefix}/bin/mac2unix" } |
| 24 | build.args prefix=${prefix} |
| 25 | |
| 26 | set CFLAGS_OS "${configure.cflags} ${configure.cppflags}" |
| 27 | set LDFLAGS_EXTRA "${configure.ldflags} -lintl" |
| 28 | |
| 29 | pre-build { |
| 30 | build.args-append \ |
| 31 | CFLAGS_OS="${CFLAGS_OS}" \ |
| 32 | LDFLAGS_EXTRA="${LDFLAGS_EXTRA}" |
| 33 | } |
| 34 | |
| 35 | destroot.args prefix=${prefix} \ |
| 36 | DOCDIR=${destroot}${prefix}/share/doc/${name} |
| 37 | |
| 38 | variant universal { |
| 39 | append CFLAGS_OS " ${configure.universal_cflags}" |
| 40 | append LDFLAGS_EXTRA " ${configure.universal_ldflags}" |
| 41 | } |