Hello, people!

  It seems that I succeeded in compiling the last version
of HylaFAX. I didn't try to run it yet. Here are the patches I used:

3 patches from ports tree in comms/hylafax/patches:
patch-config_skel
patch-faxd_Getty_c++
patch-faxd_UUCPLock_c++

and 2 extra patches (other patches in comms/hylafax/patches unnecessary):


--- config.site.orig    Thu Jan 19 18:05:37 2006
+++ config.site Thu Jan 19 18:08:52 2006
@@ -141,7 +141,7 @@
 #LIBSUN="auto"                               # yes|no|auto configure -lsun use
 #LLDOPTS=""                          # extra link line options
 #MACHDEPLIBS=""                              # extra libraries for linking
-#OPTIMIZER="-O"                              # optimizer flags
+OPTIMIZER=""                         # optimizer flags
 #PORTFUNCS=""                                # non-standard functions to 
emulate
#PROTOTYPES="-prototypes" # C compiler options for checking function prototypes
 #RANLIB=":"                          # pathname of suitable ranlib program



--- configure.orig      Sat Dec 17 01:40:30 2005
+++ configure   Thu Dec 22 12:53:44 2005
@@ -37,10 +37,10 @@
 #
 # Setup general configuration parameters.
 #
-DIR_BIN=/usr/local/bin
-DIR_SBIN=/usr/local/sbin
-DIR_LIBDATA=/usr/local/lib/fax
-DIR_LIB=/usr/local/lib
+DIR_BIN=${PREFIX}/bin
+DIR_SBIN=${PREFIX}/sbin
+DIR_LIBDATA=${PREFIX}/lib/fax
+DIR_LIB=${PREFIX}/lib
 DIR_LIBEXEC=$DIR_SBIN
 DIR_SPOOL=/var/spool/hylafax
 DIR_HTML=/var/httpd/htdocs/hylafax
@@ -73,8 +73,8 @@
 IMP=no
 UTMP=auto
 OPTIMIZER="-O"
-LIBTIFF="-L/usr/local/lib -ltiff"
-TIFFINC=/usr/local/include
+LIBTIFF="-L${LOCALBASE}/lib -ltiff -ljpeg -lz"
+TIFFINC=${LOCALBASE}/include
 TIFFBIN=
 LIBZ=
 ZLIBINC=
@@ -82,8 +82,8 @@
 LIBREGEX='-L${DEPTH}/regex -lregex'
 REGEXINC='${DEPTH}/${TOPSRCDIR}/regex'
 DBLIB=no
-LIBDB="-L/usr/local/lib -ldb"
-DBLIBINC=/usr/local/include
+LIBDB="-L${LOCALBASE}/lib -ldb"
+DBLIBINC=${LOCALBASE}/include
 FAXD=
 LIBFAXSERVER='libfaxserver.${DSO}'
 LIBUTIL='${UTIL}/libfaxutil.${DSO}'
@@ -2072,7 +2072,7 @@
 #
 CheckForFunc()
 {
-    echo "extern int $1(); main(){$1();exit(0);}" >t.c
+    echo "extern int $1(); main(){$1($2);exit(0);}" >t.c
     capture cat t.c
     runMake t "t:; \${CC} t.c ${MACHDEPLIBS}"
 }
@@ -3092,7 +3092,6 @@
     strcasecmp
     strtod
     strtoul
-    vsnprintf
     writev
 "

@@ -3102,6 +3101,15 @@
 PORTFUNCS="$PORTFUNCS $i.c"
     }
 done
+
+#
+# Now for those functions that need args.
+#
+CheckForFunc vsnprintf "(void*)0, 0, (void*)0, (void*)0" || {
+    Note "... emulate vsnprintf"
+    PORTFUNCS="$PORTFUNCS vsnprintf.c"
+}
+
 #
 # SCO OS 5 #defines syslog as another function
 # so it is necessary to include syslog.h when

Reply via email to