Browse Source

Fix building under Solaris. Submitted by: Vinod Kutty <vinod+openpkg@kutty.cc>

Ralf S. Engelschall 23 years ago
parent
commit
214ff92b54
1 changed files with 5 additions and 1 deletions
  1. 5 1
      netpbm/netpbm.spec

+ 5 - 1
netpbm/netpbm.spec

@@ -33,7 +33,7 @@ Distribution: OpenPKG [EVAL]
 Group:        Graphics
 License:      MIT-style
 Version:      10.11.4
-Release:      20030104
+Release:      20030112
 
 #   list of sources
 Source0:      http://osdn.dl.sourceforge.net/sourceforge/netpbm/netpbm-%{version}.tgz
@@ -57,6 +57,7 @@ AutoReqProv:  no
 
 %build
     ( cat Makefile.config.in
+      echo ""
       echo "DEFAULT_TARGET = nonmerge"
       echo "NETPBMLIBTYPE=unixstatic"
       echo "NETPBMLIBSUFFIX=a"
@@ -72,6 +73,9 @@ AutoReqProv:  no
       echo "PNGLIB = libpng.a"
       echo "ZHDR_DIR = %{l_prefix}/include"
       echo "ZLIB = libz.a"
+      case "%{l_target}" in
+          *-solaris* ) echo "NETWORKLD = -lsocket -lnsl" ;;
+      esac
     ) >Makefile.config
     %{l_make} %{l_mflags} -f GNUmakefile