Changeset 11621


Ignore:
Timestamp:
Apr 5, 2005, 8:54:48 AM (15 years ago)
Author:
mww
Message:

make this a nice framework build, inc. revision

Location:
trunk/dports/databases/sqlite3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/databases/sqlite3/Portfile

    r11421 r11621  
    1 # $Id: Portfile,v 1.7 2005/03/23 18:13:15 mww Exp $
     1# $Id: Portfile,v 1.8 2005/04/08 15:50:08 mww Exp $
    22
    33PortSystem 1.0
     4PortGroup framework 1.0
    45
    56name                    sqlite3
    67version                 3.2.0
     8revision                1
    79categories              databases
    810platforms               darwin
     
    2527depends_lib             lib:XXX:readline
    2628
     29framework.setup SQLite3 3.2.0
     30
     31configure.args-append   --disable-tcl
     32
    2733build.type              gnu
     34build.env               CFLAGS=-I${prefix}/include/ \
     35                                LDFLAGS=-L${prefix}/lib
    2836
    2937test.run                yes
     
    3139
    3240post-destroot {
    33         file delete -force ${destroot}/System
     41        file delete -force ${destroot}${f_prefix}/Libraries/pkgconfig
    3442}
    3543
     
    3745        configure.args-append   --enable-threadsafe
    3846}
    39 
    40 set pre /Library/OpenDarwin/Frameworks/${name}.framework/Versions/${version}
    41 variant framework {
    42         configure.args --includedir=${pre}/Headers --libdir=${pre}/Libraries
    43         post-patch {
    44                 cd ${worksrcpath}
    45                 reinplace "s|\$(prefix)/include|${pre}/Headers|g" Makefile.in
    46         }
    47         post-destroot {
    48                 system "cd ${destroot}${pre}/.. && ln -s ${version} Current"
    49                 system "cd ${destroot}${pre}/../.. && \
    50                         ln -s Versions/Current/Headers && \
    51                         ln -s Versions/Current/Libraries"
    52                 file delete -force ${destroot}${prefix}/lib
    53         }
    54 }
  • trunk/dports/databases/sqlite3/files/patch-Makefile.in

    r11015 r11621  
    1 --- Makefile.in Sat Feb  5 08:33:34 2005
    2 +++ ../../Makefile.in   Wed Feb 16 22:39:35 2005
     1--- Makefile.in Fri Mar 11 18:50:32 2005
     2+++ ../../Makefile.in   Thu Mar 31 15:59:26 2005
    33@@ -44,11 +44,11 @@
    44 
     
    66 #
    77-READLINE_FLAGS = -DHAVE_READLINE=@TARGET_HAVE_READLINE@ @TARGET_READLINE_INC@
    8 +READLINE_FLAGS = -DHAVE_READLINE=1 -I${prefix}/include/readline -I${prefix}/include
     8+READLINE_FLAGS = -DHAVE_READLINE=1 $(CFLAGS)
    99 
    1010 # The library that programs using readline() must link against.
    1111 #
    1212-LIBREADLINE = @TARGET_READLINE_LIBS@
    13 +LIBREADLINE = -L${prefix}/lib -lreadline
     13+LIBREADLINE = $(LDFLAGS) -lreadline
    1414 
    1515 # Should the database engine be compiled threadsafe
    1616 #
     17@@ -94,7 +94,9 @@
     18 #
     19 prefix = @prefix@
     20 exec_prefix = @exec_prefix@
     21+bindir = @bindir@
     22 libdir = @libdir@
     23+incdir = @includedir@
     24 INSTALL = @INSTALL@
     25 LIBTOOL = ./libtool
     26 ALLOWRELEASE = @ALLOWRELEASE@
     27@@ -607,10 +609,10 @@
     28 install:       sqlite3 libsqlite3.la sqlite3.h ${HAVE_TCL:1=tcl_install}
     29        $(INSTALL) -d $(DESTDIR)$(libdir)
     30        $(LTINSTALL) libsqlite3.la $(DESTDIR)$(libdir)
     31-       $(INSTALL) -d $(DESTDIR)$(exec_prefix)/bin
     32-       $(LTINSTALL) sqlite3 $(DESTDIR)$(exec_prefix)/bin
     33-       $(INSTALL) -d $(DESTDIR)$(prefix)/include
     34-       $(INSTALL) -m 0644 sqlite3.h $(DESTDIR)$(prefix)/include
     35+       $(INSTALL) -d $(DESTDIR)$(bindir)
     36+       $(LTINSTALL) sqlite3 $(DESTDIR)$(bindir)
     37+       $(INSTALL) -d $(DESTDIR)$(incdir)
     38+       $(INSTALL) -m 0644 sqlite3.h $(DESTDIR)$(incdir)
     39        $(INSTALL) -d $(DESTDIR)$(libdir)/pkgconfig;
     40        $(INSTALL) -m 0644 sqlite3.pc $(DESTDIR)$(libdir)/pkgconfig;
     41 
Note: See TracChangeset for help on using the changeset viewer.