Ticket #43498: samba3-patch-pkgconfig-files.diff

File samba3-patch-pkgconfig-files.diff, 1.9 KB (added by Ionic (Mihai Moldovan), 10 years ago)

Also patch the pc.in files, so that other software can actually make use of those pkgconfig files... (libdir hasn't been used, although the libraries were put in a non-system library directory.)

  • Portfile

    old new  
    4747                    --without-ldap \
    4848                    --without-krb5
    4949
     50patchfiles          patch-source_pkgconfig_all_pc_in.diff
     51
    5052variant kerberos description "Enable Kerberos support" {
    5153    configure.args-delete --without-krb5
    5254    depends_lib-append port:kerberos5
  • new file files/patch-source_pkgconfig_all_pc_in.diff

    - +  
     1--- pkgconfig/netapi.pc.in.old  2014-04-26 00:02:20.000000000 +0200
     2+++ pkgconfig/netapi.pc.in      2014-04-26 00:03:55.000000000 +0200
     3@@ -8,7 +8,7 @@
     4 Version: 0
     5 URL: http://www.samba.org/
     6 #Libs: -L@libdir@ -lnetapi
     7-Libs: -lnetapi
     8+Libs: -L${libdir} -lnetapi
     9 Libs.private: -lnetapi @KRB5_LIBS@ @LDAP_LIBS@ @LIBS@
     10 Cflags: -I@includedir@
     11 
     12--- pkgconfig/smbclient.pc.in.old       2014-04-26 00:02:20.000000000 +0200
     13+++ pkgconfig/smbclient.pc.in   2014-04-26 00:03:36.000000000 +0200
     14@@ -8,7 +8,7 @@
     15 Version: 0
     16 URL: http://www.samba.org/
     17 #Libs: -L@libdir@ -lsmbclient
     18-Libs: -lsmbclient
     19+Libs: -L${libdir} -lsmbclient
     20 Libs.private: -lsmbclient @KRB5_LIBS@ @LDAP_LIBS@ @LIBS@
     21 Cflags: -I@includedir@
     22 
     23--- pkgconfig/smbsharemodes.pc.in.old   2014-04-26 00:02:20.000000000 +0200
     24+++ pkgconfig/smbsharemodes.pc.in       2014-04-26 00:04:09.000000000 +0200
     25@@ -8,7 +8,7 @@
     26 Version: 0
     27 URL: http://www.samba.org/
     28 #Libs: -L@libdir@ -lsmbsharemodes
     29-Libs: -lsmbsharemodes
     30+Libs: -L${libdir} -lsmbsharemodes
     31 Libs.private: -lsmbsharemodes @LIBS@
     32 Cflags: -I@includedir@
     33 
     34--- pkgconfig/wbclient.pc.in.old        2014-04-26 00:02:20.000000000 +0200
     35+++ pkgconfig/wbclient.pc.in    2014-04-26 00:04:25.000000000 +0200
     36@@ -8,6 +8,6 @@
     37 Version: 0
     38 URL: http://www.samba.org/
     39 #Libs: -L@libdir@ -lwbclient
     40-Libs: -lwbclient
     41+Libs: -L${libdir} -lwbclient
     42 Libs.private: -lwbclient
     43 Cflags: -I@includedir@