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 2021 Jake Goerzen
15 USE_PARALLEL_BUILD
= yes
16 include ..
/..
/..
/make-rules
/shared-macros.mk
18 COMPONENT_NAME
= freeciv
19 COMPONENT_VERSION
= 3.1.3
20 COMPONENT_SUMMARY
= Free and Open Source empire-building strategy game inspired by the history of human civilization.
21 COMPONENT_PROJECT_URL
= https
://www.freeciv.org
22 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
23 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.xz
24 COMPONENT_ARCHIVE_HASH
= sha256
:741086fa94574374c7c27480f77ee68e5b538bfb2eff85004fa8c87b312c7f2f
25 COMPONENT_ARCHIVE_URL
= https
://prdownloads.sourceforge.net
/freeciv
/$(COMPONENT_SRC
).
tar.xz?download
26 COMPONENT_FMRI
= games
/freeciv
27 COMPONENT_CLASSIFICATION
= Applications
/Games
28 COMPONENT_LICENSE
= GPLv2.0
29 COMPONENT_LICENSE_FILE
= COPYING
31 TEST_TARGET
= $(NO_TESTS
)
32 include $(WS_MAKE_RULES
)/common.mk
34 CONFIGURE_OPTIONS
+= --sysconfdir
=$(ETCDIR
)
35 CONFIGURE_OPTIONS
+= --disable-sdl-mixer
36 CONFIGURE_OPTIONS
+= --disable-dependency-tracking
37 CONFIGURE_OPTIONS
+= --enable-ipv6
=test
39 # Auto-generated dependencies
40 REQUIRED_PACKAGES
+= $(ICU_LIBRARY_PKG
)
41 REQUIRED_PACKAGES
+= $(READLINE_PKG
)
42 REQUIRED_PACKAGES
+= compress
/bzip2
43 REQUIRED_PACKAGES
+= compress
/xz
44 REQUIRED_PACKAGES
+= compress
/zstd
45 REQUIRED_PACKAGES
+= database
/sqlite-3
46 REQUIRED_PACKAGES
+= image
/imagemagick
47 REQUIRED_PACKAGES
+= library
/desktop
/cairo
48 REQUIRED_PACKAGES
+= library
/desktop
/gdk-pixbuf
49 REQUIRED_PACKAGES
+= library
/desktop
/gtk3
50 REQUIRED_PACKAGES
+= library
/desktop
/pango
51 REQUIRED_PACKAGES
+= library
/glib2
52 REQUIRED_PACKAGES
+= library
/zlib
53 REQUIRED_PACKAGES
+= runtime
/lua-54
54 REQUIRED_PACKAGES
+= system
/library
55 REQUIRED_PACKAGES
+= system
/library
/math
56 REQUIRED_PACKAGES
+= web
/curl