Info2: <<
Package: sockets-oct%type_pkg[oct]
Version: 1.0.8
Type: oct (3.8.2), forge (sockets), gcc (4.9)
Revision: 4

Maintainer: Alexander Hansen <alexkhansen@users.sourceforge.net>
Homepage: http://octave.sourceforge.net/sockets/index.html 

Description: Socket functions for Octave
DescDetail: <<
Socket functions for networking from within Octave.

This package provides the following functions:

Sockets:
        socket
        bind
        connect
        disconnect
        accept
        send
        recv
        gethostbyname
        listen
Socket constants:
        AF_LOCAL
        AF_UNIX
        AF_INET
        AF_APPLETALK
        SOCK_STREAM
        SOCK_DGRAM
        SOCK_SEQPACKET
        SOCK_RAW
        SOCK_RDM
        MSG_PEEK
        MSG_DONTWAIT
        MSG_WAITALL
        load_socket_constants
<<

License: GPL3+

BuildDepends: <<
  liboctave%type_pkg[oct]-dev,
  fink-octave-scripts (>= 0.3.0-1),
  fftw3,
  hdf5.9 
<<
Depends: <<
  octave%type_pkg[oct]-interpreter
<<
Conflicts: octave-forge

Source: mirror:sourceforge:octave/%type_raw[forge]-%v.tar.gz
Source-Checksum: SHA256(31411a11e0a31adb98e2e21343b858c8d5862eb5cc0eb0a56017a75dcefac4a6)
SourceDirectory: %type_raw[forge]

NoSetCPPFLAGS: true
NoSetLDFLAGS: true
UseMaxBuildJobs: false
BuildAsNobody: false

CompileScript: <<
#!/bin/sh -ev
pkgsrc=%type_raw[forge]

##### Invariant stuff begins here #####
%p/share/fink-octave-scripts/octave-forge-patch.sh %type_raw[forge] %v %type_raw[oct] %b %i $pkgsrc
./octave-forge-compile.sh
<<

InstallScript: ./octave-forge-install.sh
PostInstScript:  %p/share/octave/%type_raw[oct]/%type_raw[forge]/octave-forge-postinst.sh
PreRmScript: %p/share/octave/%type_raw[oct]/%type_raw[forge]/octave-forge-prerm.sh

DescPackaging: <<
Common for all octave-forge packages:
Preinst and postinst scripts are dynamically set up via
%p/share/fink-octave-scripts/octave-forge-patch.sh because Octave's package manager can't 
cope with non-literal arguments.

The Type: forge (pkgname) is used to minimize what needs to be changed when
using this .info file as a template.
<<
<<