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 2015 Alexander Pyhalov
13 # Copyright 2022 Niklas Poslovski
18 include ..
/..
/..
/make-rules
/shared-macros.mk
20 COMPONENT_NAME
= libcdio
21 COMPONENT_VERSION
= 2.1.0
22 #COMPONENT_REVISION= 1
23 COMPONENT_PROJECT_URL
= https
://www.gnu.org
/software
/libcdio
/
24 COMPONENT_SUMMARY
= GNU Compact Disc Input and Control Library
25 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
26 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.bz2
27 COMPONENT_ARCHIVE_HASH
= \
28 sha256
:8550e9589dbd594bfac93b81ecf129b1dc9d0d51e90f9696f1b2f9b2af32712b
29 COMPONENT_ARCHIVE_URL
= https
://ftp.gnu.org
/gnu
/libcdio
/$(COMPONENT_ARCHIVE
)
30 COMPONENT_LICENSE
= GPLv3
31 COMPONENT_LICENSE_FILE
= COPYING
32 COMPONENT_CLASSIFICATION
=System
/Libraries
33 COMPONENT_FMRI
= library
/audio
/libcdio
35 TEST_TARGET
=$(NO_TESTS
)
36 include $(WS_MAKE_RULES
)/common.mk
38 PATH
=/usr
/gnu
/bin
:/usr
/bin
40 CPPFLAGS
+= -I
/usr
/include/dbus-1.0
-I
/usr
/lib
/dbus-1.0
/include -I
/usr
/include/ncurses
-DDBUS_API_SUBJECT_TO_CHANGE
41 CPPFLAGS
+= -D_FILE_OFFSET_BITS
=64
43 LDFLAGS
+= -lhal
-ldbus-1
45 CONFIGURE_OPTIONS
+= --sysconfdir
=/etc
46 CONFIGURE_OPTIONS
+= --disable-cpp-progs
47 CONFIGURE_OPTIONS
+= --disable-cxx
48 CONFIGURE_OPTIONS
+= --disable-static
50 CONFIGURE_ENV
+= CPPFLAGS
="$(CPPFLAGS)"
51 CONFIGURE_ENV
+= am_cv_lib_iconv
=no
53 COMPONENT_POST_INSTALL_ACTION
= \
54 (cd
$(PROTOUSRDIR
) ; $(MV
) include/cdio
/cdio_config.h
include/cdio
/cdio_config-
$(BITS
).h
)
58 # Manually added dependencies
59 REQUIRED_PACKAGES
+= library
/audio
/libcddb
60 REQUIRED_PACKAGES
+= service
/hal
61 REQUIRED_PACKAGES
+= system
/library
62 REQUIRED_PACKAGES
+= system
/library
/libdbus
63 REQUIRED_PACKAGES
+= library
/ncurses