4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
23 # Copyright (c) 2023-2024, Jonathan Schleifer. All rights reserved.
27 USE_PARALLEL_BUILD
= yes
29 include ..
/..
/..
/make-rules
/shared-macros.mk
31 COMPONENT_NAME
= objfw
32 COMPONENT_VERSION
= 1.2.3
33 COMPONENT_REVISION
= 1
34 COMPONENT_SUMMARY
= A portable
, lightweight framework for the Objective-C language
35 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
36 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.gz
37 COMPONENT_ARCHIVE_HASH
= sha256
:8324d3b352121544f817f40f71c21005457ee0255104c7e0d5aedbd6d968bced
38 COMPONENT_ARCHIVE_URL
= https
://objfw.nil.im
/downloads
/$(COMPONENT_ARCHIVE
)
39 COMPONENT_PROJECT_URL
= https
://objfw.nil.im
/
40 COMPONENT_FMRI
= library
/objfw
41 COMPONENT_CLASSIFICATION
= Development
/Objective C
42 COMPONENT_LICENSE
= LGPLv3
43 COMPONENT_LICENSE_FILE
= COPYING
45 include $(WS_MAKE_RULES
)/common.mk
47 # The build system does not support building out of tree.
48 COMPONENT_PRE_CONFIGURE_ACTION
= ($(CLONEY
) $(SOURCE_DIR
) $(@D
))
50 CONFIGURE_OPTIONS
+= --disable-rpath
51 CONFIGURE_OPTIONS
+= --with-tls
=gnutls
52 CONFIGURE_OPTIONS
+= OBJC
="$(CLANG_PREFIX)/bin/clang -m$(BITS)"
53 CONFIGURE_OPTIONS
+= LDFLAGS
="-Wl,-rpath,$$(realpath $$(dirname $$(gcc -m$(BITS) --print-file-name=libgcc_s.so)))"
55 # Auto-generated dependencies
56 REQUIRED_PACKAGES
+= $(GCC_RUNTIME_PKG
)
57 REQUIRED_PACKAGES
+= library
/gnutls-3
58 REQUIRED_PACKAGES
+= shell/ksh93
59 REQUIRED_PACKAGES
+= system
/library
60 REQUIRED_PACKAGES
+= system
/library
/math