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 2015 Alexander Pyhalov
17 include ..
/..
/..
/make-rules
/shared-macros.mk
19 COMPONENT_NAME
= libvisual
20 COMPONENT_VERSION
= 0.4.2
22 COMPONENT_SUMMARY
= Libvisual provides a convenient API for writing visualization plugins
23 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
24 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.bz2
25 COMPONENT_ARCHIVE_HASH
= sha256
:2aa5967c5c9522c8d7ab9bd9246c77a582c1aaf4f2b3f06493dbe3066f00380a
26 COMPONENT_ARCHIVE_URL
= https
://github.com
/Libvisual
/libvisual
/releases
/download
/libvisual-
$(COMPONENT_VERSION
)/$(COMPONENT_ARCHIVE
)
27 COMPONENT_PROJECT_URL
= http
://libvisual.org
/
28 COMPONENT_FMRI
= library
/desktop
/libvisual
29 COMPONENT_CLASSIFICATION
= Desktop
(GNOME
)/Libraries
30 COMPONENT_LICENSE
= LGPL-2.1
-only
31 COMPONENT_LICENSE_FILE
= COPYING
33 TEST_TARGET
= $(NO_TESTS
)
34 include $(WS_MAKE_RULES
)/common.mk
36 LDFLAGS
+= -Wl
,-M
$(COMPONENT_DIR
)/files
/map.remove_all
38 COMPONENT_PREP_ACTION
= ( \
40 PATH
="$(PATH)" libtoolize
--copy
--force && \
45 CONFIGURE_OPTIONS
+= --sysconfdir
=$(ETCDIR
)
46 CONFIGURE_OPTIONS
+= --enable-shared
=yes
47 CONFIGURE_OPTIONS
+= --enable-static
=no
49 # Use bitness specific lvconfig.h
50 COMPONENT_POST_INSTALL_ACTION
+= \
51 $(MV
) $(PROTOUSRDIR
)/include/libvisual-0.4
/libvisual
/lvconfig.h
$(PROTOUSRDIR
)/include/libvisual-0.4
/libvisual
/lvconfig-
$(BITS
).h
; \
52 $(INSTALL
) $(COMPONENT_DIR
)/files
/lvconfig.h
$(PROTOUSRDIR
)/include/libvisual-0.4
/libvisual
;
54 # Drop 32-bit binaries
55 COMPONENT_POST_INSTALL_ACTION
+= $(RM
) -r
$(PROTOUSRBINDIR32
) ;
58 REQUIRED_PACKAGES
+= library
/glib2
60 # Auto-generated dependencies
61 REQUIRED_PACKAGES
+= $(GCC_RUNTIME_PKG
)
62 REQUIRED_PACKAGES
+= $(GXX_RUNTIME_PKG
)
63 REQUIRED_PACKAGES
+= library
/sdl
64 REQUIRED_PACKAGES
+= system
/library
65 REQUIRED_PACKAGES
+= system
/library
/math