commit | author | age
|
c7000c
|
1 |
# |
F |
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. |
|
5 |
# |
|
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. |
|
9 |
# |
|
10 |
|
|
11 |
# |
|
12 |
# Copyright 2022 Friedrich Kink |
|
13 |
# |
|
14 |
|
|
15 |
include ../../../make-rules/shared-macros.mk |
|
16 |
|
|
17 |
COMPONENT_NAME= hylafax |
|
18 |
COMPONENT_VERSION= 6.0.7 |
c0c38a
|
19 |
COMPONENT_REVISION= 4 |
c7000c
|
20 |
COMPONENT_FMRI= network/hylafax |
F |
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 |
|
31 |
|
|
32 |
TEST_TARGET=$(NO_TESTS) |
|
33 |
|
|
34 |
include $(WS_MAKE_RULES)/common.mk |
|
35 |
|
|
36 |
# |
|
37 |
# this not real configure from autotools but is is working |
|
38 |
# with a few workarounds as seen in COMPONENT_POST_CONFIGURE_ACTION |
|
39 |
# |
|
40 |
|
|
41 |
CFLAGS+= $(JPEG_CPPFLAGS) $(JPEG_CFLAGS) |
|
42 |
CFLAGS+= $(CPP_LARGEFILES) |
|
43 |
CXXFLAGS+= $(JPEG_CPPFLAGS) $(JPEG_CXXFLAGS) |
|
44 |
LDFLAGS+= $(JPEG_LDFLAGS) |
|
45 |
|
|
46 |
COMPONENT_PRE_CONFIGURE_ACTION += ($(CLONEY) $(SOURCE_DIR) $(@D)); |
|
47 |
|
|
48 |
COMPONENT_POST_CONFIGURE_ACTION += ( \ |
c59bd7
|
49 |
$(GSED) -i -e "s:$(PROTO_DIR)::" $(@D)/config.h; \ |
c7000c
|
50 |
$(GSED) -i -e "s:/usr/local/share/locale:$(PROTO_DIR)/usr/share/locale:" $(@D)/defs; \ |
F |
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; \ |
c59bd7
|
53 |
$(MKDIR) -p $(PROTO_DIR)$(USRLIBDIR64); \ |
c7000c
|
54 |
); |
F |
55 |
|
dd2d8c
|
56 |
# this is to avoid a conflict to usr/share/man/man1/notify.1 |
F |
57 |
# delivered by SUNWcs |
617df1
|
58 |
COMPONENT_POST_INSTALL_ACTION += ( \ |
c59bd7
|
59 |
$(MV) $(PROTO_DIR)/usr/share/man/man1/notify.1 $(PROTO_DIR)$(USRSHAREMAN1DIR)/faxnotify.1; \ |
F |
60 |
$(GSED) -i -e "s:$(PROTO_DIR)::" $(PROTO_DIR)$(USRSHAREMAN1DIR)/*; \ |
|
61 |
$(GSED) -i -e "s:$(PROTO_DIR)::" $(PROTO_DIR)$(USRSHAREMAN4DIR)/*; \ |
617df1
|
62 |
); |
dd2d8c
|
63 |
|
c7000c
|
64 |
CONFIGURE_OPTIONS = |
F |
65 |
CONFIGURE_OPTIONS += --srcdir=. |
c59bd7
|
66 |
CONFIGURE_OPTIONS += --with-DIR_BIN=$(PROTO_DIR)$(USRBINDIR) |
F |
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) |
c7000c
|
71 |
CONFIGURE_OPTIONS += --with-DIR_LIBDATA=$(PROTO_DIR)/etc/hylafax |
F |
72 |
CONFIGURE_OPTIONS += --with-DIR_SPOOL=$(PROTO_DIR)/var/spool/hylafax |
c59bd7
|
73 |
CONFIGURE_OPTIONS += --with-DIR_LOCALEDIR=$(PROTO_DIR)$(USRSHAREDIR)/locale |
c7000c
|
74 |
CONFIGURE_OPTIONS += --with-DIR_LOCKS=$(PROTO_DIR)/var/lock |
c59bd7
|
75 |
CONFIGURE_OPTIONS += --with-LIBDIR=$(USRLIBDIR64) |
F |
76 |
CONFIGURE_OPTIONS += --with-TIFFBIN=$(USRBINDIR) |
c7000c
|
77 |
CONFIGURE_OPTIONS += --with-LIBINTL=-lintl |
F |
78 |
CONFIGURE_OPTIONS += --with-PATH_GSRIP=/usr/bin/gs |
c59bd7
|
79 |
CONFIGURE_OPTIONS += --with-DBLIBINC=$(USRINCDIR) |
c7000c
|
80 |
CONFIGURE_OPTIONS += --with-AFM=no |
F |
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 |
|
91 |
|
|
92 |
# manually added |
|
93 |
REQUIRED_PACKAGES += print/filter/ghostscript |
|
94 |
|
|
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 |
46f31b
|
102 |
REQUIRED_PACKAGES += SUNWcs |
c7000c
|
103 |
REQUIRED_PACKAGES += system/extended-system-utilities |
F |
104 |
REQUIRED_PACKAGES += system/library |