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 (c) 2014 Alexander Pyhalov
16 include ..
/..
/..
/make-rules
/shared-macros.mk
18 COMPONENT_NAME
= stardict
19 COMPONENT_MJR_VERSION
= 3.0.7
20 COMPONENT_VERSION
= $(COMPONENT_MJR_VERSION
).2
21 HUMAN_VERSION
= 3.0.7-2
22 COMPONENT_SUMMARY
= International dictionary software
23 COMPONENT_PROJECT_URL
= https
://stardict-4.sourceforge.net
/
24 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_MJR_VERSION
)
25 COMPONENT_ARCHIVE
= $(COMPONENT_NAME
)-$(HUMAN_VERSION
)-src
.7z
26 COMPONENT_ARCHIVE_HASH
= sha256
:d766f4efb1ae868855a47f39b2def66dd7a3232ca54c651c9cb3327b1bec50ea
27 COMPONENT_ARCHIVE_URL
= https
://sourceforge.net
/projects
/stardict-4
/files
/$(COMPONENT_MJR_VERSION
)/$(COMPONENT_ARCHIVE
)/download
28 COMPONENT_FMRI
= system
/desktop
/stardict
29 COMPONENT_CLASSIFICATION
= Applications
/Accessories
30 COMPONENT_LICENSE
= GPLv3
31 COMPONENT_LICENSE_FILE
= COPYING
33 TEST_TARGET
= $(NO_TESTS
)
34 include $(WS_MAKE_RULES
)/common.mk
36 PATH
=$(MYSQL_BINDIR
):$(PATH.gnu
)
38 COMPONENT_PREP_ACTION
= ( cd
$(@D
) && PATH
="$(PATH)" autoreconf
-fiv
)
40 CONFIGURE_OPTIONS
+= --sysconfdir
=/etc
41 CONFIGURE_OPTIONS
+= --enable-deprecations
42 CONFIGURE_OPTIONS
+= --disable-festival
43 CONFIGURE_OPTIONS
+= --disable-advertisement
44 CONFIGURE_OPTIONS
+= --disable-gucharmap
45 CONFIGURE_OPTIONS
+= --disable-gnome-support
46 CONFIGURE_OPTIONS
+= --disable-flite
47 CONFIGURE_OPTIONS
+= --disable-espeak-ng
49 CPPFLAGS
+= -I
$(MYSQL_INCDIR
)
50 LDFLAGS
+= -L
$(MYSQL_LIBDIR
) -R
$(MYSQL_LIBDIR
)
51 LDFLAGS
+= -lnsl
-lsocket
53 CPPFLAGS
+= $(XPG6MODE
)
55 CONFIGURE_ENV
+= CPPFLAGS
="$(CPPFLAGS)"
57 # Manually added build dependencies
58 REQUIRED_PACKAGES
+= developer
/gnome
/gnome-doc-utils
59 REQUIRED_PACKAGES
+= $(MYSQL_LIBRARY_PKG
)
61 # Auto-generated dependencies
62 REQUIRED_PACKAGES
+= $(GCC_RUNTIME_PKG
)
63 REQUIRED_PACKAGES
+= $(GXX_RUNTIME_PKG
)
64 REQUIRED_PACKAGES
+= library
/c
++/sigcpp
65 REQUIRED_PACKAGES
+= library
/desktop
/gdk-pixbuf
66 REQUIRED_PACKAGES
+= library
/desktop
/gtk3
67 REQUIRED_PACKAGES
+= library
/desktop
/json-glib
68 REQUIRED_PACKAGES
+= library
/desktop
/pango
69 REQUIRED_PACKAGES
+= library
/desktop
/xdg
/libcanberra
70 REQUIRED_PACKAGES
+= library
/glib2
71 REQUIRED_PACKAGES
+= library
/speech
/espeak
72 REQUIRED_PACKAGES
+= library
/spell-checking
/enchant
73 REQUIRED_PACKAGES
+= library
/zlib
74 REQUIRED_PACKAGES
+= system
/library
75 REQUIRED_PACKAGES
+= system
/library
/math
76 REQUIRED_PACKAGES
+= x11
/library
/libx11