Ticket #1432: libpng.diff
File libpng.diff, 1.3 KB (added by blb@…, 21 years ago) |
---|
-
Portfile
old new 15 15 attempts were made to make it as complete as possible, while \ 16 16 keeping the code easy to understand. Currently, this library \ 17 17 only supports C. Support for other languages is being considered. 18 platforms darwin openbsd freebsd 18 platforms darwin openbsd freebsd sunos 19 19 homepage http://www.libpng.org/pub/png/ 20 20 use_bzip2 yes 21 21 master_sites sourceforge … … 24 24 variant darwin { 25 25 patchfiles patch-makefile.darwin 26 26 configure { 27 cd ${work path}/${worksrcdir}27 cd ${worksrcpath} 28 28 file copy scripts/makefile.darwin Makefile 29 reinplace s|/usr/local|${prefix}| Makefile30 reinplace s|(prefix)/man|(prefix)/share/man| Makefile31 29 } 32 30 } 33 31 34 32 variant openbsd { 35 33 configure { 36 cd ${work path}/${worksrcdir}34 cd ${worksrcpath} 37 35 file copy scripts/makefile.openbsd Makefile 38 reinplace s|/usr/local|${prefix}| Makefile39 reinplace s|(prefix)/man|(prefix)/share/man| Makefile40 36 } 41 37 } 42 38 43 39 variant freebsd { 44 40 configure { 45 cd ${work path}/${worksrcdir}41 cd ${worksrcpath} 46 42 file copy scripts/makefile.freebsd Makefile 43 } 44 } 45 46 variant sunos { 47 configure { 48 cd ${worksrcpath} 49 file copy scripts/makefile.solaris Makefile 50 } 51 } 52 53 post-configure { 47 54 reinplace s|/usr/local|${prefix}| Makefile 48 55 reinplace s|(prefix)/man|(prefix)/share/man| Makefile 49 56 } 50 } 57