Commit Graph

28 Commits

Author SHA1 Message Date
Mark Brand fa3b687f85 fix some more update macros for sourceforge packages 2018-03-25 17:02:16 +02:00
Tony Theodore 01e2a64d00 cross packages: replace dependency gcc with cc 2017-12-23 08:19:00 +11:00
Viktor Szakats 45d34aaac7 more URL updates 2017-03-10 13:59:00 +00:00
Viktor Szakats e961e447fb URL updates 2017-03-04 10:33:47 +00:00
Boris Nagaev 74163f1794 add _WEBSITE and _DESCR fields to core packages
See https://github.com/mxe/mxe/issues/1422

Automation (Python 2 code): https://gist.github.com/9f5c315e5d0cf113d41dc454b7a0eb41
2016-12-22 22:25:48 +01:00
Boris Nagaev 6adb5ade12 Copyright headers: point to LICENSE.md and shorten
The following script was applied:

    sed ':a;/part of MXE.$/{N;s/\n//;ba}' -i $(git grep -l 'part of MXE')

    sed 's/\(part of MXE\).*\(See index.html\)/\1. \2/' -i \
        $(git grep -l 'part of MXE.*See index.html')

    before='This file is part of MXE. See index.html for further information.'
    after='This file is part of MXE. See LICENSE.md for licensing information.'
    sed "s/$before/$after/" -i $(git grep -l 'part of MXE')

Then git grep 'index.html for further information' revealed two other files.
One of them was patched manually (patch.mk). Makefile has text
"See index.html for further information" unrelated to licensing.

See https://github.com/mxe/mxe/issues/1500#issuecomment-241340792
2016-08-27 12:31:29 +03:00
Boris Nagaev 17e40d3884 use $(TEST_FILE) instead of $(2).c and other
The following script was applied:

    set -xue

    find src/ plugins/ -name '*.mk' -type f > mks

    # special cases for test file:
    # ls -d src/*-test* | sed 's@-test.*@@' | sort | uniq --repeated
    sed 's@$(2).c@$(PWD)/src/$(PKG)-test.c@g' -i \
        src/{boost,freeimage,hdf5,lapack,sdl,sdl_image,sdl_sound}.mk
    sed 's@$(2).f@$(PWD)/src/$(PKG)-test.f@g' -i src/lapack.mk
    sed 's@$(PWD)/$(2).pro@$(PWD)/src/$(PKG)-test.pro@g' -i \
        src/qt.mk plugins/examples/custom-qt-min/overrides.mk
    sed 's@$(2)-CMakeLists.txt@$(PWD)/src/$(PKG)-test-CMakeLists.txt@g' \
        -i src/{sdl_image,sdl_sound}.mk

    # check
    for base in $(ls -d src/*-test* | sed 's@-test.*@@' | sort | uniq --repeated); do
        ! grep -q '$(2)' "${base}.mk"
    done

    # other $(2)
    sed 's@$(2).cpp@$(TEST_FILE)@g' -i $(cat mks)
    sed 's@$(2).cxx@$(TEST_FILE)@g' -i $(cat mks)
    sed 's@$(2).c@$(TEST_FILE)@g' -i $(cat mks)
    sed 's@$(2).ml@$(TEST_FILE)@g' -i $(cat mks)
    sed 's@$(2).f@$(TEST_FILE)@g' -i $(cat mks)

    # check
    ! grep '$(2)' $(cat mks)

See https://github.com/mxe/mxe/issues/1452
2016-07-30 22:38:45 +03:00
Tony Theodore 05380b49b7 gcc pthreads: build pthreads and mingw-w64 headers inline and enable libgomp
* fixes "~winpthreads changes ~pthread_signal.h" etc. reported by build-pkg
  mingw-w64 installs dummy headers if winpthreads isn't built
* enables libgomp to avoid double-build (see #331)
* no change in openmp-validation (still 20 failures - taken with a grain of
  salt as the batch file test runner isn't a reliable perl substitute)
* pthreads virtual package kept for future testing
2015-10-31 20:18:21 +11:00
Tony Theodore fc0ed34fb9 all packages: really use sha256 checksums 2015-09-23 18:32:58 +10:00
Tony Theodore ac7344aaef many packages: cleanup deps ordering 2015-09-23 17:41:16 +10:00
Tony Theodore a228c0488f all packages: switch to sha256 checksums
closes #871
2015-09-23 17:27:16 +10:00
Timothy Gu 13bcb7732a sox: Fix building 2015-06-18 20:24:35 -07:00
Timothy Gu 686d0d8aaf sox: Update 2015-06-18 19:38:47 -07:00
Tony Theodore 8de0584a23 many packages: explicitly disable shared builds
closes #369
2014-04-06 23:18:24 +10:00
Tony Theodore 44a8595688 packages graphicsmagick guile imagemagick sox: change libtool --> libltdl 2013-08-25 19:26:53 +10:00
Volker Grabsch e412eb642d Move package versions from index.html back into the src/*.mk files
Most of the automatic conversion was done using the following Python script:

import os
import re
pkgs = sorted(mkfile[:-len('.mk')] for mkfile in os.listdir('src') if mkfile.endswith('.mk'))
with open('index.html', 'rb') as f:
    index = f.read()
pkgs_index = re.findall('<td class="package">([^<]*)</td>', index)
assert pkgs_index == pkgs
versions = dict(re.findall('<td id="([^"]*)-version">([^<]*)</td>', index))
assert sorted(versions.keys()) == pkgs
for pkg in pkgs:
    version = versions[pkg]
    with open('src/' + pkg + '.mk', 'rb') as f:
        mk = f.read()
    checksumpos = mk.index('\n$(PKG)_CHECKSUM ')
    versionline = '\n$(PKG)_VERSION  := %(version)s' % {'version': version}
    newmk = mk[:checksumpos] + versionline + mk[checksumpos:]
    with open('src/' + pkg + '.mk', 'wb') as f:
        f.write(newmk)
2013-07-22 01:41:31 +02:00
Volker Grabsch a34ea233b1 Fix initial comments of all src/*.mk files 2013-07-21 18:47:20 +02:00
Ulrich Klauer d51295150e Enable use of optional libmagic for sox
Make sox use libmagic (package "file") for file type detection.
Requires two ugly hacks.
2013-03-10 09:27:06 +01:00
Ulrich Klauer e447c58a7c Enable most optional libraries for sox
Enable most remaining optional libraries for package sox. Still
disabled are file/magic (needs a patch), ffmpeg (doesn't compile, will
be removed from next upstream version) and id3tag (not yet in MXE), as
well as the audio drivers for platforms other than Windows.
2013-03-10 09:27:06 +01:00
Ulrich Klauer cf278cd59a Build sox with twolame support 2013-03-06 13:14:20 +01:00
Tony Theodore 0bec7387ab package sox: reformat configure options 2013-03-04 19:42:17 +11:00
Ulrich Klauer 287aafafa3 Build sox with wavpack support 2013-03-03 19:27:20 +01:00
Ulrich Klauer 70cacbb5c9 Explicitly enable/disable dependencies for sox
Explicitly enable or disable all optional features of the sox package,
as recommended in the "Guidelines for Creating Packages". This ensures
a consistent build result.

FFmpeg is removed because libsox doesn't build against its current API
anyway, whether told so or not; cf. http://bugs.debian.org/693642
2013-03-03 19:25:59 +01:00
Mark Brand b22d755446 update package sox 2013-02-02 12:31:37 +01:00
Tony Theodore 4ed13a9f30 all packages: use $(WGET) portability variable 2012-05-16 17:49:40 +10:00
Tony Theodore 1ca4d90c7a various packages: fix references to mingw-cross-env and doc/index.html 2012-05-02 21:36:59 +10:00
Tony Theodore 225212c5e1 package sox: update and fix pkg-config and test program build 2012-05-02 21:13:49 +10:00
Robert Chéramy d3aa8cfff8 new package: sox 2012-05-02 19:59:51 +10:00