libpgeasy stable port information

Package: libpgeasy
Version: 3.0.4
Revision: 1022
Description: Easy-to-use C interface to PostgreSQL
License: BSD
Maintainer: Benjamin Reed

Depends: %N-shlibs (= %v-%r)
BuildDepends: <<
postgresql82-dev,
system-openssl-dev
<<
Replaces: <<
postgresql73-dev,
postgresql73-ssl-dev,
postgresql73-unified-dev,
postgresql74-dev,
postgresql74-ssl-dev,
postgresql74-unified-dev,
postgresql80-dev,
postgresql80-ssl-dev,
postgresql80-unified-dev,
postgresql81-dev
<<
GCC: 4.0

Source: ftp://gborg.postgresql.org/pub/pgeasy/stable/%n-%v.tar.gz
Source-MD5: 5aaf078d069c8878588cd2bc7c3a5bc5

ConfigureParams: --with-pqinclude=%p/include/postgresql --with-pqlib=%p/lib
CompileScript: <<
#!/bin/sh -ev

export lt_cv_sys_max_cmd_len=65536
export CPPFLAGS="-I%p/lib/system-openssl/include -I%p/include/postgresql -I%p/include -DHAVE_OPTRESET -fno-common"
export LDFLAGS="-L%p/lib/system-openssl/lib -L%p/lib"

./configure %c
make
<<

InstallScript: <<
#!/bin/sh -ev

make -j1 install DESTDIR="%d"
install -d -m 755 %i/share/doc/%N
mv docs/*.html examples %i/share/doc/%N/
find %i/share/doc/%N -type d -name CVS -exec rm -rf {} \; || :
<<
DocFiles: CHANGES README
SplitOff: <<
Package: %N-shlibs
Description: Shared libraries for the PostgreSQL easy interface
Depends: postgresql82-shlibs
Replaces: <<
postgresql73-shlibs,
postgresql73-ssl-shlibs,
postgresql73-unified-shlibs,
postgresql74-shlibs,
postgresql74-ssl-shlibs,
postgresql74-unified-shlibs,
postgresql80-shlibs,
postgresql80-ssl-shlibs,
postgresql80-unified-shlibs,
postgresql81-shlibs
<<
Files: lib/libpgeasy.*.dylib
Shlibs: %p/lib/libpgeasy.3.dylib 4.0.0 %n (>= 3.0.4-1)
<<

Homepage: http://gborg.postgresql.org/project/pgeasy/
DescDetail: <<
Pgeasy is a PostgreSQL API that is a cleaner interface to the libpq
library, more like an SQL 4GL interface.
<<

libpgeasy stable port .patch


--- pgeasy-3.0.1/Makefile Tue Nov 26 23:40:19 2002
+++ pgeasy-3.0.1-patched/Makefile Mon Dec 30 21:28:41 2002
@@ -9,29 +9,32 @@
SO_MAJOR_VERSION= 3
SO_MINOR_VERSION= 0

-POSTGRES_HOME=/usr/local/pgsql
+POSTGRES_HOME=@INSTPREFIX@

TARGET= libpgeasy
-CFLAGS= -O -Wall
+CFLAGS= -O -Wall -Wmissing-prototypes -Wmissing-declarations -fno-common
LIBS=pq
OBJS= libpgeasy.o halt.o

-SHARED= -fpic -shared -Wl,-x,-soname,$(TARGET).so.$(SO_MAJOR_VERSION) -Wl,-rpath,$(POSTGRES_HOME)/lib
-soname=$(TARGET).so.$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
+SHARED= -install_name $(POSTGRES_HOME)/lib/$(TARGET).$(SO_MAJOR_VERSION).dylib -compatibility_version $(SO_MAJOR_VERSION) -current_version $(SO_MAJOR_VERSION).$(SO_MINOR_VERSION) -dynamiclib -multiply_defined suppress
+
+soname=$(TARGET).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION).dylib

all: $(soname)

$(soname) : $(OBJS)
- $(CC) $(OBJS) -L$(POSTGRES_HOME)/lib -l$(LIBS) $(SHARED) -o $(soname)
+ $(CC) $(OBJS) -L$(POSTGRES_HOME)/lib -l$(LIBS) $(SHARED) -o $(soname)

%.o : %.c
- $(CC) -c $(CFLAGS) -I$(POSTGRES_HOME)/include $<
+ $(CC) -c $(CFLAGS) -I$(POSTGRES_HOME)/include/postgresql -I$(POSTGRES_HOME)/include $<

clean:
rm -f $(OBJS) $(soname)

install:
- install $(soname) $(POSTGRES_HOME)/lib
- rm -f $(POSTGRES_HOME)/lib/$(TARGET).so
- ln -s $(POSTGRES_HOME)/lib/$(soname) $(POSTGRES_HOME)/lib/$(TARGET).so
- install -c $(TARGET).h $(POSTGRES_HOME)/include
+ install -d -m 755 $(DESTDIR)$(POSTGRES_HOME)/lib
+ install -c -m 755 $(soname) $(DESTDIR)$(POSTGRES_HOME)/lib
+ rm -f $(DESTDIR)$(POSTGRES_HOME)/lib/$(TARGET).dylib
+ ln -sf $(soname) $(DESTDIR)$(POSTGRES_HOME)/lib/$(TARGET).dylib
+ ln -sf $(soname) $(DESTDIR)$(POSTGRES_HOME)/lib/$(TARGET).$(SO_MAJOR_VERSION).dylib
+ install -c $(TARGET).h $(DESTDIR)$(POSTGRES_HOME)/include/postgresql

libpgeasy _unstable_ port information

Package: libpgeasy
Version: 3.0.4
Revision: 1022
Description: Easy-to-use C interface to PostgreSQL
License: BSD
Maintainer: Benjamin Reed

Depends: %N-shlibs (= %v-%r)
BuildDepends: <<
postgresql82-dev,
system-openssl-dev
<<
Replaces: <<
postgresql73-dev,
postgresql73-ssl-dev,
postgresql73-unified-dev,
postgresql74-dev,
postgresql74-ssl-dev,
postgresql74-unified-dev,
postgresql80-dev,
postgresql80-ssl-dev,
postgresql80-unified-dev,
postgresql81-dev
<<
GCC: 4.0

Source: ftp://gborg.postgresql.org/pub/pgeasy/stable/%n-%v.tar.gz
Source-MD5: 5aaf078d069c8878588cd2bc7c3a5bc5

ConfigureParams: --with-pqinclude=%p/include/postgresql --with-pqlib=%p/lib
CompileScript: <<
#!/bin/sh -ev

export lt_cv_sys_max_cmd_len=65536
export CPPFLAGS="-I%p/lib/system-openssl/include -I%p/include/postgresql -I%p/include -DHAVE_OPTRESET -fno-common"
export LDFLAGS="-L%p/lib/system-openssl/lib -L%p/lib"

./configure %c
make
<<

InstallScript: <<
#!/bin/sh -ev

make -j1 install DESTDIR="%d"
install -d -m 755 %i/share/doc/%N
mv docs/*.html examples %i/share/doc/%N/
find %i/share/doc/%N -type d -name CVS -exec rm -rf {} \; || :
<<
DocFiles: CHANGES README
SplitOff: <<
Package: %N-shlibs
Description: Shared libraries for the PostgreSQL easy interface
Depends: postgresql82-shlibs
Replaces: <<
postgresql73-shlibs,
postgresql73-ssl-shlibs,
postgresql73-unified-shlibs,
postgresql74-shlibs,
postgresql74-ssl-shlibs,
postgresql74-unified-shlibs,
postgresql80-shlibs,
postgresql80-ssl-shlibs,
postgresql80-unified-shlibs,
postgresql81-shlibs
<<
Files: lib/libpgeasy.*.dylib
Shlibs: %p/lib/libpgeasy.3.dylib 4.0.0 %n (>= 3.0.4-1)
<<

Homepage: http://gborg.postgresql.org/project/pgeasy/
DescDetail: <<
Pgeasy is a PostgreSQL API that is a cleaner interface to the libpq
library, more like an SQL 4GL interface.
<<

libpgeasy _unstable_ port .patch


--- pgeasy-3.0.1/Makefile Tue Nov 26 23:40:19 2002
+++ pgeasy-3.0.1-patched/Makefile Mon Dec 30 21:28:41 2002
@@ -9,29 +9,32 @@
SO_MAJOR_VERSION= 3
SO_MINOR_VERSION= 0

-POSTGRES_HOME=/usr/local/pgsql
+POSTGRES_HOME=@INSTPREFIX@

TARGET= libpgeasy
-CFLAGS= -O -Wall
+CFLAGS= -O -Wall -Wmissing-prototypes -Wmissing-declarations -fno-common
LIBS=pq
OBJS= libpgeasy.o halt.o

-SHARED= -fpic -shared -Wl,-x,-soname,$(TARGET).so.$(SO_MAJOR_VERSION) -Wl,-rpath,$(POSTGRES_HOME)/lib
-soname=$(TARGET).so.$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
+SHARED= -install_name $(POSTGRES_HOME)/lib/$(TARGET).$(SO_MAJOR_VERSION).dylib -compatibility_version $(SO_MAJOR_VERSION) -current_version $(SO_MAJOR_VERSION).$(SO_MINOR_VERSION) -dynamiclib -multiply_defined suppress
+
+soname=$(TARGET).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION).dylib

all: $(soname)

$(soname) : $(OBJS)
- $(CC) $(OBJS) -L$(POSTGRES_HOME)/lib -l$(LIBS) $(SHARED) -o $(soname)
+ $(CC) $(OBJS) -L$(POSTGRES_HOME)/lib -l$(LIBS) $(SHARED) -o $(soname)

%.o : %.c
- $(CC) -c $(CFLAGS) -I$(POSTGRES_HOME)/include $<
+ $(CC) -c $(CFLAGS) -I$(POSTGRES_HOME)/include/postgresql -I$(POSTGRES_HOME)/include $<

clean:
rm -f $(OBJS) $(soname)

install:
- install $(soname) $(POSTGRES_HOME)/lib
- rm -f $(POSTGRES_HOME)/lib/$(TARGET).so
- ln -s $(POSTGRES_HOME)/lib/$(soname) $(POSTGRES_HOME)/lib/$(TARGET).so
- install -c $(TARGET).h $(POSTGRES_HOME)/include
+ install -d -m 755 $(DESTDIR)$(POSTGRES_HOME)/lib
+ install -c -m 755 $(soname) $(DESTDIR)$(POSTGRES_HOME)/lib
+ rm -f $(DESTDIR)$(POSTGRES_HOME)/lib/$(TARGET).dylib
+ ln -sf $(soname) $(DESTDIR)$(POSTGRES_HOME)/lib/$(TARGET).dylib
+ ln -sf $(soname) $(DESTDIR)$(POSTGRES_HOME)/lib/$(TARGET).$(SO_MAJOR_VERSION).dylib
+ install -c $(TARGET).h $(DESTDIR)$(POSTGRES_HOME)/include/postgresql