Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Opusfile
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ralph Giles
Opusfile
Commits
ab7bb974
Commit
ab7bb974
authored
11 years ago
by
Ralph Giles
Browse files
Options
Downloads
Patches
Plain Diff
Build downloaded dependencies and link against them.
parent
2b39811f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
mingw/Makefile
+30
-5
30 additions, 5 deletions
mingw/Makefile
with
30 additions
and
5 deletions
mingw/Makefile
+
30
−
5
View file @
ab7bb974
# Cross-compiling opus file under mingw
TOOL_PREFIX
?=
i686-w64-mingw32
-
TOOL_PREFIX
?=
i686-w64-mingw32
# To build opusfile under mingw, you need to first build:
DEPS
=
ogg opus ssl
...
...
@@ -14,20 +14,26 @@ opus_URL := http://downloads.xiph.org/releases/opus/opus-1.1-beta.tar.gz
opus_SHA
:=
ec1784287f385aef994b64734aaecae04860e61aa50fc6eef6643fa7e40dd193
ssl_URL
:=
http://www.openssl.org/source/openssl-1.0.1e.tar.gz
ssl_SHA
:=
f74f15e8c8ff11aa3d5bb5f276d202ec18d7246e95f961db76054199c69c1ae3
h
ssl_SHA
:=
f74f15e8c8ff11aa3d5bb5f276d202ec18d7246e95f961db76054199c69c1ae3
libopusfile-0.dll
:
../unix/Makefile $(DEPS)
CC
=
$(
TOOL_PREFIX
)
gcc
\
RANLIB
=
$(
TOOL_PREFIX
)
ranlib
\
CC
=
$(
TOOL_PREFIX
)
-
gcc
\
RANLIB
=
$(
TOOL_PREFIX
)
-
ranlib
\
PKG_CONFIG_PATH
=
${
PWD
}
/lib/pkgconfig
\
$(
MAKE
)
-f
$<
opusfile
:
$(DEPS)
../configure
--host
=
$(
TOOL_PREFIX
)
--prefix
=
${
PWD
}
\
PKG_CONFIG_PATH
=
${
PWD
}
/lib/pkgconfig
$(
MAKE
)
clean
:
$(
RM
)
-r
objs
# Generate rules to download and verify each dependency.
define
WGET_template =
$(1)
:
$$(notdir $$($(1)_URL))
$(1)_DIR
:=
$$(
basename
$$(
basename
$$(
notdir
$$($(
1
)
_URL
))))
$(1)_DIR
:
$$(notdir $$($(1)_URL))
@
if
test
"
$$($(
1
)
_SHA
)
"
=
"
$$
$$(
sha256sum
$$
< | cut -f 1 -d ' '
)
"
;
\
then
\
echo
"+
$$
@ checksum verified."
;
\
...
...
@@ -38,9 +44,28 @@ define WGET_template =
tar
xf
$$
<
$$(notdir $$($(1)_URL))
:
wget
$$($(
1
)
_URL
)
$(1)
:
$(1)_BUILD
endef
$(
foreach
dep,
$(
DEPS
)
,
$(
eval
$(
call WGET_template,
$(
dep
))))
ogg_BUILD
:
$(ogg_DIR)
cd
$<
&&
./configure
--host
=
$(
TOOL_PREFIX
)
--prefix
=
${
PWD
}
$(
MAKE
)
-C
$<
check
$(
MAKE
)
-C
$<
install
opus_BUILD
:
$(opus_DIR)
cd
$<
&&
./configure
--host
=
$(
TOOL_PREFIX
)
--prefix
=
${
PWD
}
$(
MAKE
)
-C
$<
check
$(
MAKE
)
-C
$<
install
ssl_BUILD
:
$(ssl_DIR)
cd
$<
&&
./Configure shared mingw64 no-asm
\
--prefix
=
${
PWD
}
\
--cross-compile-prefix
=
$(
TOOL_PREFIX
)
-
$(
MAKE
)
-C
$<
depend
$(
MAKE
)
-C
$<
$(
MAKE
)
-C
$<
install
# CROSS_COMPILE="i686-w64-mingw32-" ./Configure mingw no-asm no-shared --prefix=$PWD/mingw && make depend && make -j8 && make install
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment