2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"). You may
4 # only use this file in accordance with the terms of the CDDL.
6 # A full copy of the text of the CDDL should have accompanied this
7 # source. A copy of the CDDL is also available via the Internet at
8 # http://www.illumos.org/license/CDDL.
12 # Copyright 2022 Friedrich Kink
15 include ..
/..
/..
/make-rules
/shared-macros.mk
17 COMPONENT_NAME
= hylafax
18 COMPONENT_VERSION
= 6.0.7
20 COMPONENT_FMRI
= network
/hylafax
21 COMPONENT_SUMMARY
= HylaFAX Open Source is an enterprise-class system for sending and \
22 receiving facsimiles
as well
as for sending alpha-numeric pages.
23 COMPONENT_CLASSIFICATION
=Applications
/Internet
24 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
25 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.gz
26 COMPONENT_ARCHIVE_HASH
= sha256
:a3dcb1a7fd8794bd33cea9a9414c32da100119dd2131bd08ab3ab3749fc30315
27 COMPONENT_PROJECT_URL
= https
://www.hylafax.org
28 COMPONENT_ARCHIVE_URL
= ftp
://ftp.hylafax.org
/source
/$(COMPONENT_ARCHIVE
)
29 COMPONENT_LICENSE
= HylaFAX
30 COMPONENT_LICENSE_FILE
= COPYRIGHT
32 TEST_TARGET
=$(NO_TESTS
)
34 include $(WS_MAKE_RULES
)/common.mk
37 # this not real configure from autotools but is is working
38 # with a few workarounds as seen in COMPONENT_POST_CONFIGURE_ACTION
41 CFLAGS
+= $(JPEG_CPPFLAGS
) $(JPEG_CFLAGS
)
42 CFLAGS
+= $(CPP_LARGEFILES
)
43 CXXFLAGS
+= $(JPEG_CPPFLAGS
) $(JPEG_CXXFLAGS
)
44 LDFLAGS
+= $(JPEG_LDFLAGS
)
46 COMPONENT_PRE_CONFIGURE_ACTION
+= ($(CLONEY
) $(SOURCE_DIR
) $(@D
));
48 COMPONENT_POST_CONFIGURE_ACTION
+= ( \
49 $(GSED
) -i
-e
"s:$(PROTO_DIR)::" $(@D
)/config.h
; \
50 $(GSED
) -i
-e
"s:/usr/local/share/locale:$(PROTO_DIR)/usr/share/locale:" $(@D
)/defs
; \
51 $(GSED
) -i
-e
's:-L/usr/local/lib -R/usr/local/lib::' $(@D
)/defs
; \
52 $(GSED
) -i
-e
's:-R$${LIBDIR} -lstdc++:-lstdc++:' $(@D
)/defs
; \
53 $(MKDIR
) -p
$(PROTO_DIR
)$(USRLIBDIR64
); \
56 # this is to avoid a conflict to usr/share/man/man1/notify.1
58 COMPONENT_POST_INSTALL_ACTION
+= ( \
59 $(MV
) $(PROTO_DIR
)/usr
/share
/man
/man1
/notify
.1 $(PROTO_DIR
)$(USRSHAREMAN1DIR
)/faxnotify
.1; \
60 $(GSED
) -i
-e
"s:$(PROTO_DIR)::" $(PROTO_DIR
)$(USRSHAREMAN1DIR
)/*; \
61 $(GSED
) -i
-e
"s:$(PROTO_DIR)::" $(PROTO_DIR
)$(USRSHAREMAN4DIR
)/*; \
65 CONFIGURE_OPTIONS
+= --srcdir=.
66 CONFIGURE_OPTIONS
+= --with-DIR_BIN
=$(PROTO_DIR
)$(USRBINDIR
)
67 CONFIGURE_OPTIONS
+= --with-DIR_MAN
=$(PROTO_DIR
)$(USRSHAREMANDIR
)
68 CONFIGURE_OPTIONS
+= --with-DIR_SBIN
=$(PROTO_DIR
)$(USRSBINDIR
)
69 CONFIGURE_OPTIONS
+= --with-DIR_LIB
=$(PROTO_DIR
)$(USRLIBDIR64
)
70 CONFIGURE_OPTIONS
+= --with-DIR_LIBEXEC
=$(PROTO_DIR
)$(USRSBINDIR
)
71 CONFIGURE_OPTIONS
+= --with-DIR_LIBDATA
=$(PROTO_DIR
)/etc
/hylafax
72 CONFIGURE_OPTIONS
+= --with-DIR_SPOOL
=$(PROTO_DIR
)/var
/spool
/hylafax
73 CONFIGURE_OPTIONS
+= --with-DIR_LOCALEDIR
=$(PROTO_DIR
)$(USRSHAREDIR
)/locale
74 CONFIGURE_OPTIONS
+= --with-DIR_LOCKS
=$(PROTO_DIR
)/var
/lock
75 CONFIGURE_OPTIONS
+= --with-LIBDIR
=$(USRLIBDIR64
)
76 CONFIGURE_OPTIONS
+= --with-TIFFBIN
=$(USRBINDIR
)
77 CONFIGURE_OPTIONS
+= --with-LIBINTL
=-lintl
78 CONFIGURE_OPTIONS
+= --with-PATH_GSRIP
=/usr
/bin
/gs
79 CONFIGURE_OPTIONS
+= --with-DBLIBINC
=$(USRINCDIR
)
80 CONFIGURE_OPTIONS
+= --with-AFM
=no
81 CONFIGURE_OPTIONS
+= --with-MKDIR
="/bin/mkdir -p"
82 CONFIGURE_OPTIONS
+= --with-AWK
=/usr
/bin
/gawk
83 CONFIGURE_OPTIONS
+= --with-PATH_VGETTY
=""
84 CONFIGURE_OPTIONS
+= --with-PATH_GETTY
=""
85 CONFIGURE_OPTIONS
+= --with-PAGESIZE
=A4
86 CONFIGURE_OPTIONS
+= --with-LLDOPTS
=-lstdc
++
87 CONFIGURE_OPTIONS
+= --with-PATH_DPSRIP
=/var
/spool
/hylafax
/bin
/ps2fax
88 CONFIGURE_OPTIONS
+= --with-PATH_IMPRIP
=""
89 CONFIGURE_OPTIONS
+= --with-SYSVINIT
=/etc
/init.d
/hylafax
90 CONFIGURE_OPTIONS
+= --with-INTERACTIVE
=no
93 REQUIRED_PACKAGES
+= print/filter/ghostscript
95 # Auto-generated dependencies
96 REQUIRED_PACKAGES
+= $(GCC_RUNTIME_PKG
)
97 REQUIRED_PACKAGES
+= $(GXX_RUNTIME_PKG
)
98 REQUIRED_PACKAGES
+= image
/library
/libtiff
99 REQUIRED_PACKAGES
+= library
/zlib
100 REQUIRED_PACKAGES
+= shell/bash
101 REQUIRED_PACKAGES
+= shell/ksh93
102 REQUIRED_PACKAGES
+= SUNWcs
103 REQUIRED_PACKAGES
+= system
/extended-system-utilities
104 REQUIRED_PACKAGES
+= system
/library