Commit 00394035 authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

remove giflib, nasm, libogg

parent e91c5e3f
Pipeline #36224 failed with stage
in 7 minutes and 9 seconds
#!/bin/bash
./configure --prefix=${PREFIX} --build=$BUILD --host=$HOST
make
if [[ $(uname) == Linux ]]; then
make check
fi
make install
{% set version = "5.1.4" %}
package:
name: giflib
version: {{ version }}
source:
fn: giflib-{{ version }}.tar.gz
url: http://downloads.sourceforge.net/project/giflib/giflib-{{ version }}.tar.gz
md5: 8985c9411fdb2178b89d3348da9a06b0
build:
number: 4
skip: True # [win]
run_exports:
# SONAME changes at minor revs.
# https://abi-laboratory.pro/tracker/timeline/giflib/
- {{ pin_subpackage('giflib', max_pin='x.x') }}
requirements:
build:
- {{ compiler('c') }}
test:
commands:
- gif2rgb -h
- gifbuild -h
- gifclrmp -h
- gifecho -h
- giffix -h
- gifinto -h
- giftext -h
# - conda inspect linkages giflib --prefix ${CONDA_DEFAULT_ENV} # [linux]
about:
home: http://giflib.sourceforge.net
license: MIT
summary: Library for reading and writing gif images
extra:
recipe-maintainers:
- ocefpaf
- 183amir
- msarahan
cmake_minimum_required(VERSION 2.8.7)
project(libogg)
# Required modules
include(GNUInstallDirs)
include(CheckIncludeFiles)
# Build options
option(BUILD_SHARED_LIBS "Build shared library" OFF)
if(APPLE)
option(BUILD_FRAMEWORK "Build Framework bundle for OSX" OFF)
endif()
# Extract project version from configure.ac
file(READ configure.in CONFIGURE_AC_CONTENTS)
string(REGEX MATCH "AC_INIT\\(\\[libogg\\],\\[([0-9]*).([0-9]*).([0-9]*)" DUMMY ${CONFIGURE_AC_CONTENTS})
set(PROJECT_VERSION_MAJOR ${CMAKE_MATCH_1})
set(PROJECT_VERSION_MINOR ${CMAKE_MATCH_2})
set(PROJECT_VERSION_PATCH ${CMAKE_MATCH_3})
set(PROJECT_VERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH})
# Helper function to get version-info
function(get_version_info result current_var_name age_var_name revision_var_name)
string(REGEX MATCH "${current_var_name}=([0-9]*)" DUMMY ${CONFIGURE_AC_CONTENTS})
set(VERSION_INFO_CURRENT ${CMAKE_MATCH_1})
string(REGEX MATCH "${age_var_name}=([0-9]*)" DUMMY ${CONFIGURE_AC_CONTENTS})
set(VERSION_INFO_AGE ${CMAKE_MATCH_1})
string(REGEX MATCH "${revision_var_name}=([0-9]*)" DUMMY ${CONFIGURE_AC_CONTENTS})
set(VERSION_INFO_REVISION ${CMAKE_MATCH_1})
math(EXPR VERSION_INFO_CURRENT_MINUS_AGE "${VERSION_INFO_CURRENT} - ${VERSION_INFO_AGE}")
set(${result} "${VERSION_INFO_CURRENT_MINUS_AGE}.${VERSION_INFO_AGE}.${VERSION_INFO_REVISION}" PARENT_SCOPE)
endfunction()
# Helper function to configure pkg-config files
function(configure_pkg_config_file pkg_config_file_in)
set(prefix ${CMAKE_INSTALL_PREFIX})
set(exec_prefix ${CMAKE_INSTALL_FULL_BINDIR})
set(libdir ${CMAKE_INSTALL_FULL_LIBDIR})
set(includedir ${CMAKE_INSTALL_FULL_INCLUDEDIR})
set(VERSION ${PROJECT_VERSION})
string(REPLACE ".in" "" pkg_config_file ${pkg_config_file_in})
configure_file(${pkg_config_file_in} ${CMAKE_CURRENT_SOURCE_DIR}/${pkg_config_file} @ONLY)
endfunction()
message(STATUS "Configuring ${PROJECT_NAME} ${PROJECT_VERSION}")
# Configure config_type.h
check_include_files(inttypes.h INCLUDE_INTTYPES_H)
check_include_files(stdint.h INCLUDE_STDINT_H)
check_include_files(sys/types.h INCLUDE_SYS_TYPES_H)
set(SIZE16 int16_t)
set(USIZE16 uint16_t)
set(SIZE32 int32_t)
set(USIZE32 uint32_t)
set(SIZE64 int64_t)
configure_file(include/ogg/config_types.h.in ${CMAKE_CURRENT_SOURCE_DIR}/include/ogg/config_types.h @ONLY)
set(OGG_HEADERS
include/ogg/config_types.h
include/ogg/ogg.h
include/ogg/os_types.h
)
set(OGG_SOURCES
src/bitwise.c
src/framing.c
)
if(MSVC)
list(APPEND OGG_SOURCES win32/ogg.def)
endif()
if(BUILD_FRAMEWORK)
set(BUILD_SHARED_LIBS TRUE)
endif()
include_directories(include)
add_library(ogg ${OGG_HEADERS} ${OGG_SOURCES})
get_version_info(OGG_VERSION_INFO "LIB_CURRENT" "LIB_AGE" "LIB_REVISION")
set_target_properties(
ogg PROPERTIES
SOVERSION ${OGG_VERSION_INFO}
PUBLIC_HEADER "${OGG_HEADERS}"
)
if(BUILD_FRAMEWORK)
set_target_properties(ogg PROPERTIES
FRAMEWORK TRUE
FRAMEWORK_VERSION ${PROJECT_VERSION}
MACOSX_FRAMEWORK_IDENTIFIER org.xiph.ogg
MACOSX_FRAMEWORK_SHORT_VERSION_STRING ${PROJECT_VERSION}
MACOSX_FRAMEWORK_BUNDLE_VERSION ${PROJECT_VERSION}
XCODE_ATTRIBUTE_INSTALL_PATH "@rpath"
OUTPUT_NAME Ogg
)
endif()
configure_pkg_config_file(ogg.pc.in)
install(TARGETS ogg
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
FRAMEWORK DESTINATION ${CMAKE_INSTALL_PREFIX}
PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/ogg
)
install(FILES ogg.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
setlocal EnableDelayedExpansion
copy %RECIPE_DIR%\CMakeLists.txt .\CMakeLists.txt
:: Make a build folder and change to it.
mkdir build
cd build
:: Configure using the CMakeFiles
%LIBRARY_BIN%\cmake -G "NMake Makefiles" -DCMAKE_INSTALL_PREFIX:PATH="%LIBRARY_PREFIX%" -DCMAKE_BUILD_TYPE:STRING=Release -DBUILD_SHARED_LIBS=1 ..
if errorlevel 1 exit 1
:: Build!
nmake
if errorlevel 1 exit 1
nmake install
if errorlevel 1 exit 1
#!/bin/bash
./configure --prefix=${PREFIX}
make
make check
make install
{% set name = "libogg" %}
{% set version = "1.3.2" %}
{% set sha256 = "e19ee34711d7af328cb26287f4137e70630e7261b17cbe3cd41011d73a654692" %}
package:
name: {{ name }}
version: {{ version }}
source:
fn: {{ name }}-{{ version }}.tar.gz
url: http://downloads.xiph.org/releases/ogg/{{ name }}-{{ version }}.tar.gz
sha256: {{ sha256 }}
build:
number: 2
features:
- vc9 # [win and py27]
- vc10 # [win and py34]
- vc14 # [win and py35]
run_exports:
# https://abi-laboratory.pro/tracker/timeline/libogg/
- {{ pin_subpackage(name, max_pin='x.x') }}
requirements:
build:
- automake
- {{ compiler('c') }}
- {{ compiler('cxx') }}
- cmake # [win]
- vc 9 # [win and py27]
- vc 10 # [win and py34]
- vc 14 # [win and py35]
- pkg-config # [unix]
host:
- python # [win]
run:
- vc 9 # [win and py27]
- vc 10 # [win and py34]
- vc 14 # [win and py35]
test:
requires:
- python {{ environ['PY_VER'] + '*' }} # [win]
commands:
- test -f $PREFIX/lib/libogg.a # [unix]
- test -f $PREFIX/lib/libogg.dylib # [osx]
- test -f $PREFIX/lib/libogg.so # [linux]
- test -f $PREFIX/include/ogg/ogg.h # [unix]
- test -f $PREFIX/include/ogg/config_types.h # [unix]
- test -f $PREFIX/include/ogg/os_types.h # [unix]
- if not exist %LIBRARY_LIB%\\ogg.lib exit 1 # [win]
- if not exist %LIBRARY_BIN%\\ogg.dll exit 1 # [win]
- if not exist %LIBRARY_INC%\\ogg\\config_types.h exit 1 # [win]
- if not exist %LIBRARY_INC%\\ogg\\ogg.h exit 1 # [win]
- if not exist %LIBRARY_INC%\\ogg\\os_types.h exit 1 # [win]
- conda inspect linkages -p $PREFIX {{ name }} # [not win]
- conda inspect objects -p $PREFIX {{ name }} # [osx]
about:
home: https://www.xiph.org/
license: BSD3
license_file: COPYING
summary: "OGG media container"
description: |
OGG media container. This is the native format and the recommended
container for Xiph codecs.
doc_url: https://wiki.xiph.org/
extra:
recipe-maintainers:
- amohammadi
BSD 3-clause license
Copyright (c) 2015-2017, conda-forge
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#!/bin/bash
./configure --prefix="${PREFIX}"
make
make install
{% set name = "nasm" %}
{% set version = "2.13.02" %}
package:
name: {{ name }}
version: {{ version }}
source:
fn: {{ name }}-{{ version }}.tar.gz
url: http://www.nasm.us/pub/nasm/releasebuilds/{{ version }}/nasm-{{ version }}.tar.gz
sha256: 4749fd76a8a26dc7d8871bc97cc2c16cfa0c933f984a13128e94f464f417531a
build:
number: 1
requirements:
build:
- {{ compiler('c') }}
- {{ compiler('cxx') }}
test:
commands:
- nasm -h
- nasm -version
- ndisasm -h
- conda inspect linkages -p $PREFIX {{ name }} # [not win]
- conda inspect objects -p $PREFIX {{ name }} # [osx]
about:
home: http://www.nasm.us
license: BSD 2-Clause
license_file: LICENSE
summary: "Netwide Assembler: an assembler targetting the Intel x86 series of processors."
extra:
recipe-maintainers:
- amohammadi
conda/vlfeat
conda/giflib
conda/libblitz
conda/libmatio
conda/nasm
conda/openh264
conda/ffmpeg
conda/libsvm
conda/openfst
conda/sox
conda/libogg
conda/speexdsp
conda/speex
conda/kaldi
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment