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
15 include ..
/..
/make-rules
/shared-macros.mk
17 COMPONENT_NAME
= stardict
18 COMPONENT_VERSION
= 3.0.3
20 COMPONENT_PROJECT_URL
= http
://www.stardict.org
/
21 COMPONENT_SUMMARY
= A powerful dictionary platform written in GTK
+2
22 COMPONENT_FMRI
= system
/desktop
/stardict
23 COMPONENT_CLASSIFICATION
= Applications
/Accessories
24 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
25 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.bz2
26 COMPONENT_ARCHIVE_HASH
= \
27 sha256
:9ba10a5b3dcdd02b81c7a138dac15903a6bc2355856f60338f3775e371472b73
28 COMPONENT_ARCHIVE_URL
= ftp
://tux.rainside.sk
/gentoo
/distfiles
/$(COMPONENT_ARCHIVE
)
30 include $(WS_TOP
)/make-rules
/prep.mk
31 include $(WS_TOP
)/make-rules
/configure.mk
32 include $(WS_TOP
)/make-rules
/ips.mk
34 PATH
=/usr
/mariadb
/5.5/bin
:/usr
/gnu
/bin
:/usr
/bin
36 COMPONENT_PREP_ACTION
= ( cd
$(@D
) && \
39 CONFIGURE_OPTIONS
+= --sysconfdir
=/etc
40 CONFIGURE_OPTIONS
+= --enable-deprecations
41 CONFIGURE_OPTIONS
+= --disable-festival
42 CONFIGURE_OPTIONS
+= --disable-advertisement
43 CONFIGURE_OPTIONS
+= --disable-gucharmap
45 CPPFLAGS
+= -I
/usr
/mariadb
/5.5/include
46 LDFLAGS
.32 += -L
/usr
/mariadb
/5.5/lib
-R
/usr
/mariadb
/5.5/lib
47 LDFLAGS
+= $(LDFLAGS.
$(BITS
))
49 LDFLAGS
+= -lnsl
-lsocket
51 CONFIGURE_ENV
+= CPPFLAGS
=$(CPPFLAGS
)
56 install: $(INSTALL_32
)
60 BUILD_PKG_DEPENDENCIES
= $(BUILD_TOOLS
)
62 include $(WS_TOP
)/make-rules
/depend.mk