mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-02-03 21:23:48 +00:00
[PR #715] [CLOSED] [IMPROVEMENT] Add Autoconf scripts to make CCExtractor more linux standard compliant #1541
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/CCExtractor/ccextractor/pull/715
Author: @fandango96
Created: 3/13/2017
Status: ❌ Closed
Base:
master← Head:linux_standard📝 Commits (10+)
594122aUse the directory in which script is located as base for pre-build.sh; this allows relative paths to work even if the script is called from a different directorya9600a6Initial autotools scripts commit24c3fd6Add AC_CONFIG_SRCDIR to configure.ac9ede921Add AC_CONFIG_HEADERS macro1277fcbRemove original Makefile; Add lib, header and function checking to configure.ac5d4acd8Add files required for proper building using configure/make/make install1d77c18Rename all target in Makefile.am to all-local04102a7Add local targets for install, uninstallc16af07Reverse the condition for AVFLAGS_ARE_EMPTY0d57923Move libav* checks to configure.ac📊 Changes
5 files changed (+164 additions, -59 deletions)
View changed files
📝
.gitignore(+15 -0)📝
linux/Makefile.am(+40 -54)➕
linux/bootstrap(+14 -0)➕
linux/configure.ac(+89 -0)📝
linux/pre-build.sh(+6 -5)📄 Description
Please prefix your pull request with one of the following: [FEATURE] [FIX] [IMPROVEMENT].
In raising this pull request, I confirm the following (please check boxes):
My familiarity with the project is as follows (check one):
This PR add autoconf scripts (mainly configure.ac and Makefile.am) to allow the standard configure / make / make install process for building and installing CCExtractor on Linux systems.
Makefile.am is mostly derived from the existing Makefile (removed in this PR as it is no longer required) with target renaming as appropriate.
All the lib checking (tesseract, leptonica, etc.) and option parsing (--enable-ocr, --enable-ffmpeg, etc.) is now moved to the configure step after the addition of relevant macros in configure.ac
The other files added (Makefile.in, config.h.in, etc.) allow the building and installation to take place on systems where autotools is not installed.
pre-build.sh was modified to use relative paths with respect to the directory in which the shell script exists and not the current build directory.
Tested on
Kernel : Linux 4.4.48-1-MANJARO (x86_64)
C Library : GNU C Library version 2.24 (stable)
Default C Compiler : GNU C Compiler version 6.3.1 20170109 (GCC)
Distribution : Manjaro Linux
Part 1 of 3 to resolve Issue #678
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.