Ticket #12039: Portfile.diff
File Portfile.diff, 2.0 KB (added by markd@…, 17 years ago) |
---|
-
Portfile
old new 3 3 PortSystem 1.0 4 4 5 5 name samba3 6 version 3.0.2 0b6 version 3.0.25a 7 7 categories net 8 8 platforms darwin 9 9 maintainers nomaintainer@macports.org … … 18 18 ftp://us4.samba.org/pub/samba/stable/ \ 19 19 ftp://ru.samba.org/pub/samba/stable/ 20 20 distname samba-${version} 21 checksums md5 39c0cae08fe0224cb003aa0af97d305021 checksums md5 cbd33bb5d904ccd8a294a4019743745d 22 22 depends_build port:cups-headers 23 23 depends_lib port:libiconv \ 24 24 port:openssl \ … … 26 26 27 27 worksrcdir ${worksrcdir}/source 28 28 29 patchfiles patch-configure patch-libsmb_clikrb5.c 30 31 configure.env CFLAGS=-I${prefix}/include \ 29 configure.env CFLAGS="-I${prefix}/include -fno-common" \ 32 30 CPPFLAGS="-I${prefix}/include -DHAVE_STRUCT_TIMESPEC" \ 33 31 LDFLAGS=-L${prefix}/lib 34 32 configure.args --with-mandir=${prefix}/share/man \ … … 42 40 --without-readline \ 43 41 --enable-cups 44 42 43 post-patch { 44 reinplace "s|-bundle|-dynamiclib|g" ${worksrcpath}/configure 45 46 ### BAND-AID: libs in subdirectories of ${prefix}/lib/samba3 will 47 ### still have unresolved symbols since the makefile doesn't contain 48 ### any information about install location at link time... 49 reinplace "s|@\$\(SHLD\) \$\(LDSHFLAGS\)|@\$\(SHLD\) \$\(LDSHFLAGS\) -install_name @libdir@/`basename \$@`|g" \ 50 ${worksrcpath}/Makefile.in 51 } 52 45 53 platform darwin 8 { 46 patchfiles-append patch-darwin8-lib-system.c47 54 configure.env-append CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0 48 55 } 49 56 50 57 post-destroot { 51 58 xinstall -m 755 -d ${destroot}${prefix}/etc/samba3/ \ 52 59 ${destroot}${prefix}/var/db/smb/ 53 xinstall -m 644 ${worksrcpath}/../ packaging/Fedora/smb.conf\60 xinstall -m 644 ${worksrcpath}/../examples/smb.conf.default \ 54 61 ${destroot}${prefix}/etc/samba3/smb.conf.sample 55 62 system "touch ${destroot}${prefix}/etc/samba3/lmhosts.sample" 56 63 system "touch ${destroot}${prefix}/var/db/smb/secrets.tdb.sample"