Marcel Telka
2023-09-20 63e728e37aa598f03c6ea802961d9ee58b3ca2ef
commit | author | age
4565ce 1 #
AP 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
5 # 1.0 of the CDDL.
6 #
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.
10 #
11
12 #
13 # Copyright 2015 Alexander Pyhalov
14 #
15
63e728 16 BUILD_BITS= 64_and_32
4565ce 17 include ../../../make-rules/shared-macros.mk
AP 18
19 COMPONENT_NAME= twolame
63e728 20 COMPONENT_VERSION= 0.4.0
MT 21 COMPONENT_SUMMARY= Optimised MPEG Audio Layer 2 (MP2) encoder
4565ce 22 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
AP 23 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
24 COMPONENT_ARCHIVE_HASH= \
63e728 25   sha256:cc35424f6019a88c6f52570b63e1baf50f62963a3eac52a03a800bb070d7c87d
4565ce 26 COMPONENT_ARCHIVE_URL= \
AP 27   http://tenet.dl.sourceforge.net/project/twolame/twolame/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
28 COMPONENT_PROJECT_URL = http://www.twolame.org/
63e728 29 COMPONENT_LICENSE = LGPL-2.1-only
4565ce 30 COMPONENT_LICENSE_FILE = COPYING
AP 31 COMPONENT_CLASSIFICATION = System/Multimedia Libraries
32 COMPONENT_FMRI = audio/twolame
33
63e728 34 USE_DEFAULT_TEST_TRANSFORMS = yes
MT 35
36 include $(WS_TOP)/make-rules/common.mk
4565ce 37
AP 38 CONFIGURE_OPTIONS += --sysconfdir=/etc
39 CONFIGURE_OPTIONS += --enable-shared
40 CONFIGURE_OPTIONS += --disable-static
41
63e728 42 # Drop 32-bit binaries
MT 43 COMPONENT_POST_INSTALL_ACTION += $(RM) -r $(PROTOUSRBINDIR32) ;
44 # Install html documentation
45 COMPONENT_POST_INSTALL_ACTION += $(INSTALL) -d $(PROTOUSRSHAREDOCDIR)/twolame/html ;
46 COMPONENT_POST_INSTALL_ACTION += $(INSTALL) $(SOURCE_DIR)/doc/html/* $(PROTOUSRSHAREDOCDIR)/twolame/html ;
47 COMPONENT_POST_INSTALL_ACTION += $(RM) $(PROTOUSRSHAREDOCDIR)/twolame/html/{Doxyfile,Makefile}.* ;
4565ce 48
63e728 49 # We need to run tests in clean environment
MT 50 COMPONENT_TEST_ENV_CMD = $(ENV) -
c1c7f7 51
AP 52 # Auto-generated dependencies
53 REQUIRED_PACKAGES += library/libsndfile
54 REQUIRED_PACKAGES += system/library
55 REQUIRED_PACKAGES += system/library/math