2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
13 # Copyright 2016 Alexander Pyhalov
14 # Copyright 2022 Niklas Poslovski
17 USE_DEFAULT_TEST_TRANSFORMS
= yes
18 include ..
/..
/..
/make-rules
/shared-macros.mk
20 COMPONENT_NAME
= libupnp
21 COMPONENT_VERSION
= 1.14.20
22 COMPONENT_SUMMARY
= Portable C library for UPnP
23 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
24 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.bz2
25 COMPONENT_ARCHIVE_HASH
= sha256
:ee4b4f85aa00ce38b782cf480fa569a90c7ccb23b0a9a076073a2d0bd6227335
26 COMPONENT_ARCHIVE_URL
= https
://sourceforge.net
/projects
/pupnp
/files
/release-
$(COMPONENT_VERSION
)/$(COMPONENT_ARCHIVE
)
27 COMPONENT_PROJECT_URL
= https
://pupnp.sourceforge.io
/
28 COMPONENT_FMRI
= system
/library
/libupnp
29 COMPONENT_CLASSIFICATION
= System
/Libraries
30 COMPONENT_LICENSE
= BSD
31 COMPONENT_LICENSE_FILE
= COPYING
33 include $(WS_MAKE_RULES
)/common.mk
35 # Missing files in build dir for configure without this.
36 COMPONENT_PRE_CONFIGURE_ACTION
= ($(CLONEY
) $(SOURCE_DIR
) $(@D
))
38 CONFIGURE_SCRIPT
= $(@D
)/configure
40 LDLFAGS
+= -lsocket
-lnsl
42 CPPFLAGS
+= -DSOLARIS
-D_POSIX_PTHREAD_SEMANTICS
43 CFLAGS
+= $(CFLAGS.
$(BITS
))
45 CONFIGURE_OPTIONS
+= --enable-shared
46 CONFIGURE_OPTIONS
+= --disable-static
48 CONFIGURE_ENV
+= CPPFLAGS
="$(CPPFLAGS)"
50 # Auto-generated dependencies
51 REQUIRED_PACKAGES
+= system
/library