mirror of https://git.wownero.com/dsc/mxe.git
Merge pull request #1830 from tonytheodore/doc-opts
add more MXE_DISABLE_DOC_OPTS and fix related packages
This commit is contained in:
commit
10e652c19c
1
Makefile
1
Makefile
|
@ -78,6 +78,7 @@ repeat = $(subst x,$(1),$(subst $(space),,$(call int_encode,$(2))))
|
|||
|
||||
MXE_DISABLE_DOC_OPTS = \
|
||||
ac_cv_prog_HAVE_DOXYGEN="false" \
|
||||
--{docdir,infodir,mandir,with-html-dir}='$(BUILD_DIR).sink' \
|
||||
--disable-doxygen
|
||||
|
||||
MXE_CONFIGURE_OPTS = \
|
||||
|
|
|
@ -4,8 +4,8 @@ PKG := ccfits
|
|||
$(PKG)_WEBSITE := https://heasarc.gsfc.nasa.gov/fitsio/ccfits
|
||||
$(PKG)_DESCR := CCfits
|
||||
$(PKG)_IGNORE :=
|
||||
$(PKG)_VERSION := 2.4
|
||||
$(PKG)_CHECKSUM := ba6c5012b260adf7633f92581279ea582e331343d8c973981aa7de07242bd7f8
|
||||
$(PKG)_VERSION := 2.5
|
||||
$(PKG)_CHECKSUM := 938ecd25239e65f519b8d2b50702416edc723de5f0a5387cceea8c4004a44740
|
||||
$(PKG)_SUBDIR := CCfits
|
||||
$(PKG)_FILE := CCfits-$($(PKG)_VERSION).tar.gz
|
||||
$(PKG)_URL := https://heasarc.gsfc.nasa.gov/fitsio/CCfits/$($(PKG)_FILE)
|
||||
|
@ -19,12 +19,9 @@ define $(PKG)_UPDATE
|
|||
endef
|
||||
|
||||
define $(PKG)_BUILD
|
||||
cd '$(1)' && ./configure \
|
||||
$(MXE_CONFIGURE_OPTS) \
|
||||
--with-cfitsio='$(PREFIX)/$(TARGET)'
|
||||
|
||||
$(MAKE) -C '$(1)' -j '$(JOBS)'
|
||||
$(MAKE) -C '$(1)' -j 1 install
|
||||
cd '$(BUILD_DIR)' && $(TARGET)-cmake '$(SOURCE_DIR)'
|
||||
$(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)'
|
||||
$(MAKE) -C '$(BUILD_DIR)' -j 1 install
|
||||
endef
|
||||
|
||||
$(PKG)_BUILD_SHARED =
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
PKG := cfitsio
|
||||
$(PKG)_WEBSITE := https://heasarc.gsfc.nasa.gov/fitsio/
|
||||
$(PKG)_IGNORE :=
|
||||
$(PKG)_VERSION := 3370
|
||||
$(PKG)_CHECKSUM := 092897c6dae4dfe42d91d35a738e45e8236aa3d8f9b3ffc7f0e6545b8319c63a
|
||||
$(PKG)_VERSION := 3410
|
||||
$(PKG)_CHECKSUM := a556ac7ea1965545dcb4d41cfef8e4915eeb8c0faa1b52f7ff70870f8bb5734c
|
||||
$(PKG)_SUBDIR := cfitsio
|
||||
$(PKG)_FILE := cfitsio$($(PKG)_VERSION).tar.gz
|
||||
$(PKG)_URL := https://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/$($(PKG)_FILE)
|
||||
|
@ -18,12 +18,9 @@ define $(PKG)_UPDATE
|
|||
endef
|
||||
|
||||
define $(PKG)_BUILD
|
||||
cd '$(1)' && ./configure \
|
||||
--host='$(TARGET)' \
|
||||
--prefix='$(PREFIX)/$(TARGET)' \
|
||||
FC='$(TARGET)-gfortran'
|
||||
$(MAKE) -C '$(1)' -j '$(JOBS)'
|
||||
$(MAKE) -C '$(1)' -j 1 install
|
||||
cd '$(BUILD_DIR)' && $(TARGET)-cmake '$(SOURCE_DIR)'
|
||||
$(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)'
|
||||
$(MAKE) -C '$(BUILD_DIR)' -j 1 install
|
||||
|
||||
'$(TARGET)-gcc' \
|
||||
-W -Wall -Werror -ansi \
|
||||
|
|
|
@ -0,0 +1,99 @@
|
|||
This file is part of MXE. See LICENSE.md for licensing information.
|
||||
|
||||
Contains ad hoc patches for cross building.
|
||||
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Christian Weigel <christian.weigel@idmt.fraunhofer.de>
|
||||
Date: Fri, 17 Feb 2017 10:07:48 +0100
|
||||
Subject: [PATCH] fix static build of ilu and ilut
|
||||
|
||||
taken from https://github.com/DentonW/DevIL/pull/59
|
||||
|
||||
diff --git a/DevIL/src-ILU/CMakeLists.txt b/DevIL/src-ILU/CMakeLists.txt
|
||||
index 1111111..2222222 100644
|
||||
--- a/DevIL/src-ILU/CMakeLists.txt
|
||||
+++ b/DevIL/src-ILU/CMakeLists.txt
|
||||
@@ -42,9 +42,13 @@ source_group("Source Files" FILES src/*.cpp)
|
||||
source_group("Header Files" FILES ${ILU_INC} )
|
||||
source_group("Resource Files" FILES ${ILU_RSRC} )
|
||||
|
||||
-# Remove SHARED to create a static library
|
||||
-add_library(ILU SHARED ${ILU_SRCS} ${ILU_INC} ${ILU_RSRC})
|
||||
-set_target_properties(ILU PROPERTIES SOVERSION 1)
|
||||
+if(BUILD_SHARED_LIBS)
|
||||
+ add_library(ILU SHARED ${ILU_SRCS} ${ILU_INC} ${ILU_RSRC})
|
||||
+ set_target_properties(ILU PROPERTIES SOVERSION 1)
|
||||
+else(BUILD_SHARED_LIBS)
|
||||
+ add_library(ILU ${ILU_SRCS} ${ILU_INC} ${ILU_RSRC})
|
||||
+endif(BUILD_SHARED_LIBS)
|
||||
+
|
||||
|
||||
|
||||
## ILU requires IL
|
||||
diff --git a/DevIL/src-ILUT/CMakeLists.txt b/DevIL/src-ILUT/CMakeLists.txt
|
||||
index 1111111..2222222 100644
|
||||
--- a/DevIL/src-ILUT/CMakeLists.txt
|
||||
+++ b/DevIL/src-ILUT/CMakeLists.txt
|
||||
@@ -62,9 +62,13 @@ source_group("Source Files" FILES src/*.cpp)
|
||||
source_group("Header Files" FILES ${ILUT_INC} )
|
||||
source_group("Resource Files" FILES ${ILUT_RSRC} )
|
||||
|
||||
-# Remove SHARED to create a static library
|
||||
-add_library(ILUT SHARED ${ILUT_SRCS} ${ILUT_INC} ${ILUT_RSRC})
|
||||
-set_target_properties(ILUT PROPERTIES SOVERSION 1)
|
||||
+if(BUILD_SHARED_LIBS)
|
||||
+ add_library(ILUT SHARED ${ILUT_SRCS} ${ILUT_INC} ${ILUT_RSRC})
|
||||
+ set_target_properties(ILUT PROPERTIES SOVERSION 1)
|
||||
+else(BUILD_SHARED_LIBS)
|
||||
+ add_library(ILUT ${ILUT_SRCS} ${ILUT_INC} ${ILUT_RSRC})
|
||||
+endif(BUILD_SHARED_LIBS)
|
||||
+
|
||||
|
||||
## add link sub library info
|
||||
target_link_libraries(ILUT
|
||||
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Tony Theodore <tonyt@logyst.com>
|
||||
Date: Thu, 20 Jul 2017 16:34:51 +1000
|
||||
Subject: [PATCH] fix resource paths
|
||||
|
||||
|
||||
diff --git a/DevIL/src-IL/msvc/IL.rc b/DevIL/src-IL/msvc/IL.rc
|
||||
index 1111111..2222222 100644
|
||||
--- a/DevIL/src-IL/msvc/IL.rc
|
||||
+++ b/DevIL/src-IL/msvc/IL.rc
|
||||
@@ -69,7 +69,7 @@ END
|
||||
|
||||
// Icon with lowest ID value placed first to ensure application icon
|
||||
// remains consistent on all systems.
|
||||
-IDI_ICON1 ICON "resources\\IL Logo.ico"
|
||||
+IDI_ICON1 ICON "./resources/IL Logo.ico"
|
||||
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
diff --git a/DevIL/src-ILU/msvc/ILU.rc b/DevIL/src-ILU/msvc/ILU.rc
|
||||
index 1111111..2222222 100644
|
||||
--- a/DevIL/src-ILU/msvc/ILU.rc
|
||||
+++ b/DevIL/src-ILU/msvc/ILU.rc
|
||||
@@ -101,7 +101,7 @@ END
|
||||
|
||||
// Icon with lowest ID value placed first to ensure application icon
|
||||
// remains consistent on all systems.
|
||||
-IDI_ICON1 ICON "resources\\IL Logo.ico"
|
||||
+IDI_ICON1 ICON "./resources/IL Logo.ico"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
diff --git a/DevIL/src-ILUT/msvc/ILUT.rc b/DevIL/src-ILUT/msvc/ILUT.rc
|
||||
index 1111111..2222222 100644
|
||||
--- a/DevIL/src-ILUT/msvc/ILUT.rc
|
||||
+++ b/DevIL/src-ILUT/msvc/ILUT.rc
|
||||
@@ -101,7 +101,7 @@ END
|
||||
|
||||
// Icon with lowest ID value placed first to ensure application icon
|
||||
// remains consistent on all systems.
|
||||
-IDI_ICON1 ICON "resources\\IL Logo.ico"
|
||||
+IDI_ICON1 ICON "./resources/IL Logo.ico"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
|
@ -1,35 +0,0 @@
|
|||
This file is part of MXE. See LICENSE.md for licensing information.
|
||||
|
||||
diff -urN devil-1.7.8.orig/src-IL/src/il_icon.c devil-1.7.8/src-IL/src/il_icon.c
|
||||
--- devil-1.7.8.orig/src-IL/src/il_icon.c 2009-03-08 08:10:09.000000000 +0100
|
||||
+++ devil-1.7.8/src-IL/src/il_icon.c 2010-02-01 16:01:37.000000000 +0100
|
||||
@@ -525,7 +525,7 @@
|
||||
|
||||
// Expand low-bit-depth grayscale images to 8 bits
|
||||
if (ico_color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8) {
|
||||
- png_set_gray_1_2_4_to_8(ico_png_ptr);
|
||||
+ png_set_expand_gray_1_2_4_to_8(ico_png_ptr);
|
||||
}
|
||||
|
||||
// Expand RGB images with transparency to full alpha channels
|
||||
diff -urN devil-1.7.8.orig/src-IL/src/il_png.c devil-1.7.8/src-IL/src/il_png.c
|
||||
--- devil-1.7.8.orig/src-IL/src/il_png.c 2009-03-08 08:10:09.000000000 +0100
|
||||
+++ devil-1.7.8/src-IL/src/il_png.c 2010-02-01 15:58:41.000000000 +0100
|
||||
@@ -105,7 +105,7 @@
|
||||
Read = iread(Signature, 1, 8);
|
||||
iseek(-Read, IL_SEEK_CUR);
|
||||
|
||||
- return png_check_sig(Signature, 8);
|
||||
+ return !png_sig_cmp(Signature, 0, 8);
|
||||
}
|
||||
|
||||
|
||||
@@ -278,7 +278,7 @@
|
||||
|
||||
// Expand low-bit-depth grayscale images to 8 bits
|
||||
if (png_color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8) {
|
||||
- png_set_gray_1_2_4_to_8(png_ptr);
|
||||
+ png_set_expand_gray_1_2_4_to_8(png_ptr);
|
||||
}
|
||||
|
||||
// Expand RGB images with transparency to full alpha channels
|
|
@ -1,27 +0,0 @@
|
|||
This file is part of MXE. See LICENSE.md for licensing information.
|
||||
|
||||
Contains ad hoc patches for cross building.
|
||||
|
||||
From ba27492b5ffea8c7cdbd54b2337ca9537576ec18 Mon Sep 17 00:00:00 2001
|
||||
From: MXE
|
||||
Date: Tue, 19 May 2015 12:38:30 +0300
|
||||
Subject: [PATCH] fix Devil compilation, see:
|
||||
http://lists.nongnu.org/archive/html/mingw-cross-env-list/2015-04/msg00028.html
|
||||
|
||||
|
||||
diff --git a/include/IL/il.h b/include/IL/il.h
|
||||
index 540a56e..21fd6b2 100644
|
||||
--- a/include/IL/il.h
|
||||
+++ b/include/IL/il.h
|
||||
@@ -63,7 +63,7 @@ extern "C" {
|
||||
#endif
|
||||
#endif
|
||||
|
||||
-#ifdef RESTRICT_KEYWORD
|
||||
+#if defined(RESTRICT_KEYWORD) && !defined(__cplusplus)
|
||||
#define RESTRICT restrict
|
||||
#define CONST_RESTRICT const restrict
|
||||
#else
|
||||
--
|
||||
1.9.1
|
||||
|
41
src/devil.mk
41
src/devil.mk
|
@ -4,40 +4,15 @@ PKG := devil
|
|||
$(PKG)_WEBSITE := https://openil.sourceforge.io/
|
||||
$(PKG)_DESCR := DevIL
|
||||
$(PKG)_IGNORE :=
|
||||
$(PKG)_VERSION := 1.7.8
|
||||
$(PKG)_CHECKSUM := 682ffa3fc894686156337b8ce473c954bf3f4fb0f3ecac159c73db632d28a8fd
|
||||
$(PKG)_SUBDIR := devil-$($(PKG)_VERSION)
|
||||
$(PKG)_FILE := DevIL-$($(PKG)_VERSION).tar.gz
|
||||
$(PKG)_URL := https://$(SOURCEFORGE_MIRROR)/project/openil/DevIL/$($(PKG)_VERSION)/$($(PKG)_FILE)
|
||||
$(PKG)_VERSION := cba359b
|
||||
$(PKG)_CHECKSUM := 18323d6ac0a9e5109b0f461c628e24fc2666eee5bd476aaca8cbcdb2dae9e211
|
||||
$(PKG)_GH_CONF := DentonW/DevIL/master
|
||||
$(PKG)_DEPS := gcc freeglut jasper jpeg lcms libmng libpng openexr sdl tiff zlib
|
||||
|
||||
define $(PKG)_UPDATE
|
||||
$(WGET) -q -O- 'https://sourceforge.net/p/openil/svn/HEAD/tree/tags/' | \
|
||||
grep '<a href="' | \
|
||||
$(SED) -n 's,.*<a href="release-\([0-9][^"]*\)".*,\1,p' | \
|
||||
tail -1
|
||||
endef
|
||||
|
||||
define $(PKG)_BUILD
|
||||
# autotools files in tarball are ancient (2009) so regenerate
|
||||
$(if $(BUILD_STATIC), \
|
||||
$(SED) -i 's/__declspec(dllimport)//' '$(1)/include/IL/il.h', \
|
||||
cd '$(1)' && $(LIBTOOLIZE) && autoreconf -fi)
|
||||
cd '$(1)' && ./configure \
|
||||
$(MXE_CONFIGURE_OPTS) \
|
||||
--enable-ILU \
|
||||
--enable-ILUT \
|
||||
--disable-allegro \
|
||||
--disable-directx8 \
|
||||
--enable-directx9 \
|
||||
--enable-opengl \
|
||||
--enable-sdl \
|
||||
--disable-sdltest \
|
||||
--disable-wdp \
|
||||
--with-zlib \
|
||||
--without-squish \
|
||||
--without-nvtt \
|
||||
--without-x \
|
||||
--without-examples
|
||||
$(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= INFO_DEPS=
|
||||
cd '$(BUILD_DIR)' && $(TARGET)-cmake '$(SOURCE_DIR)/DevIL' \
|
||||
-DIL_TESTS=OFF \
|
||||
-DCMAKE_CXX_FLAGS="-D__STDC_LIMIT_MACROS"
|
||||
$(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)'
|
||||
$(MAKE) -C '$(BUILD_DIR)' -j 1 install
|
||||
endef
|
||||
|
|
|
@ -20,10 +20,7 @@ define $(PKG)_BUILD
|
|||
$(MXE_CONFIGURE_OPTS) \
|
||||
--disable-debug \
|
||||
--disable-examples \
|
||||
--disable-opengl \
|
||||
--mandir='$(BUILD_DIR)/sink' \
|
||||
--docdir='$(BUILD_DIR)/sink' \
|
||||
--with-html-dir='$(BUILD_DIR)/sink'
|
||||
--disable-opengl
|
||||
$(MAKE) -C '$(BUILD_DIR)' -j $(JOBS)
|
||||
$(MAKE) -C '$(BUILD_DIR)' -j 1 install
|
||||
|
||||
|
|
|
@ -17,10 +17,7 @@ define $(PKG)_BUILD
|
|||
$(MXE_CONFIGURE_OPTS) \
|
||||
--disable-debug \
|
||||
--disable-examples \
|
||||
--disable-x \
|
||||
--mandir='$(BUILD_DIR)/sink' \
|
||||
--docdir='$(BUILD_DIR)/sink' \
|
||||
--with-html-dir='$(BUILD_DIR)/sink'
|
||||
--disable-x
|
||||
$(MAKE) -C '$(BUILD_DIR)' -j $(JOBS)
|
||||
$(MAKE) -C '$(BUILD_DIR)' -j 1 install
|
||||
|
||||
|
|
|
@ -23,10 +23,7 @@ define $(PKG)_BUILD
|
|||
--disable-examples \
|
||||
--disable-aalib \
|
||||
$(if $(BUILD_SHARED), --disable-shout2) \
|
||||
--disable-x \
|
||||
--mandir='$(BUILD_DIR)/sink' \
|
||||
--docdir='$(BUILD_DIR)/sink' \
|
||||
--with-html-dir='$(BUILD_DIR)/sink'
|
||||
--disable-x
|
||||
$(MAKE) -C '$(BUILD_DIR)' -j $(JOBS) CFLAGS='-DWAVE_FORMAT_DOLBY_AC3_SPDIF=0x0092'
|
||||
$(MAKE) -C '$(BUILD_DIR)' -j 1 install CFLAGS='-DWAVE_FORMAT_DOLBY_AC3_SPDIF=0x0092'
|
||||
|
||||
|
|
|
@ -18,10 +18,7 @@ define $(PKG)_BUILD
|
|||
$(MXE_CONFIGURE_OPTS) \
|
||||
--disable-debug \
|
||||
--disable-examples \
|
||||
--disable-opengl \
|
||||
--mandir='$(BUILD_DIR)/sink' \
|
||||
--docdir='$(BUILD_DIR)/sink' \
|
||||
--with-html-dir='$(BUILD_DIR)/sink'
|
||||
--disable-opengl
|
||||
$(MAKE) -C '$(BUILD_DIR)' -j $(JOBS)
|
||||
$(MAKE) -C '$(BUILD_DIR)' -j 1 install
|
||||
|
||||
|
|
|
@ -23,10 +23,7 @@ define $(PKG)_BUILD
|
|||
--disable-debug \
|
||||
--disable-check \
|
||||
--disable-tests \
|
||||
--disable-examples \
|
||||
--mandir='$(BUILD_DIR)/sink' \
|
||||
--docdir='$(BUILD_DIR)/sink' \
|
||||
--with-html-dir='$(BUILD_DIR)/sink'
|
||||
--disable-examples
|
||||
$(MAKE) -C '$(BUILD_DIR)' -j $(JOBS)
|
||||
$(MAKE) -C '$(BUILD_DIR)' -j 1 install
|
||||
|
||||
|
|
|
@ -0,0 +1,34 @@
|
|||
This file is part of MXE. See LICENSE.md for licensing information.
|
||||
|
||||
Contains ad hoc patches for cross building.
|
||||
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Tony Theodore <tonyt@logyst.com>
|
||||
Date: Thu, 20 Jul 2017 12:28:06 +1000
|
||||
Subject: [PATCH] add option to disable programs
|
||||
|
||||
taken from: https://github.com/mdadams/jasper/pull/144
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 1111111..2222222 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -91,6 +91,7 @@ option(JAS_ENABLE_STRICT "Enable pedantic error checking" false)
|
||||
option(JAS_ENABLE_AUTOMATIC_DEPENDENCIES "Enable automatic dependencies" true)
|
||||
option(JAS_LOCAL "Enable local hacks for developers (do not enable)" false)
|
||||
option(JAS_ENABLE_DOC "Enable building of the documentation" true)
|
||||
+option(JAS_ENABLE_PROGRAMS "Enable building of the programs" true)
|
||||
|
||||
################################################################################
|
||||
#
|
||||
@@ -368,7 +369,9 @@ endif()
|
||||
################################################################################
|
||||
|
||||
add_subdirectory(src/libjasper)
|
||||
-add_subdirectory(src/appl)
|
||||
+if (JAS_ENABLE_PROGRAMS)
|
||||
+ add_subdirectory(src/appl)
|
||||
+endif ()
|
||||
if (JAS_ENABLE_DOC)
|
||||
add_subdirectory(doc)
|
||||
endif ()
|
|
@ -4,25 +4,19 @@ PKG := jasper
|
|||
$(PKG)_WEBSITE := https://www.ece.uvic.ca/~mdadams/jasper/
|
||||
$(PKG)_DESCR := JasPer
|
||||
$(PKG)_IGNORE :=
|
||||
$(PKG)_VERSION := 1.900.1
|
||||
$(PKG)_CHECKSUM := 6b905a9c2aca2e275544212666eefc4eb44d95d0a57e4305457b407fe63f9494
|
||||
$(PKG)_SUBDIR := jasper-$($(PKG)_VERSION)
|
||||
$(PKG)_FILE := jasper-$($(PKG)_VERSION).zip
|
||||
$(PKG)_URL := https://www.ece.uvic.ca/~mdadams/jasper/software/$($(PKG)_FILE)
|
||||
$(PKG)_VERSION := 2.0.13
|
||||
$(PKG)_CHECKSUM := b50413b41bfc82ae419298b41eadcde1aa31f362fb9dc2ac089e5cbc19f60c24
|
||||
$(PKG)_GH_CONF := mdadams/jasper, version-
|
||||
$(PKG)_DEPS := gcc jpeg
|
||||
|
||||
define $(PKG)_UPDATE
|
||||
$(WGET) -q -O- 'https://www.ece.uvic.ca/~mdadams/jasper/' | \
|
||||
grep 'jasper-' | \
|
||||
$(SED) -n 's,.*jasper-\([0-9][^>]*\)\.zip.*,\1,p' | \
|
||||
head -1
|
||||
endef
|
||||
|
||||
define $(PKG)_BUILD
|
||||
cd '$(1)' && ./configure \
|
||||
$(MXE_CONFIGURE_OPTS) \
|
||||
--enable-libjpeg \
|
||||
--disable-opengl \
|
||||
--without-x
|
||||
$(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= LDFLAGS="-no-undefined"
|
||||
cd '$(BUILD_DIR)' && $(TARGET)-cmake '$(SOURCE_DIR)' \
|
||||
-DJAS_ENABLE_SHARED=$(CMAKE_SHARED_BOOL) \
|
||||
-DJAS_ENABLE_LIBJPEG=ON \
|
||||
-DJAS_ENABLE_OPENGL=OFF \
|
||||
-DJAS_ENABLE_AUTOMATIC_DEPENDENCIES=OFF \
|
||||
-DJAS_ENABLE_DOC=OFF \
|
||||
-DJAS_ENABLE_PROGRAMS=OFF
|
||||
$(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)'
|
||||
$(MAKE) -C '$(BUILD_DIR)' -j 1 install
|
||||
endef
|
||||
|
|
|
@ -17,13 +17,11 @@ define $(PKG)_UPDATE
|
|||
endef
|
||||
|
||||
define $(PKG)_BUILD
|
||||
cd '$(1)' && ./configure \
|
||||
# configure script is ancient so regenerate
|
||||
touch '$(SOURCE_DIR)'/{NEWS,AUTHORS,ChangeLog}
|
||||
cd '$(SOURCE_DIR)' && autoreconf -fi
|
||||
cd '$(BUILD_DIR)' && '$(SOURCE_DIR)/configure' \
|
||||
$(MXE_CONFIGURE_OPTS)
|
||||
|
||||
# libtool misses some dependency libs and there's no lt_cv* etc. options
|
||||
# can be removed after 0.15.1b if recent libtool et al. is used
|
||||
$(if $(BUILD_SHARED),\
|
||||
$(SED) -i 's#^postdeps=""#postdeps="-lz"#g' '$(1)/libtool')
|
||||
|
||||
$(MAKE) -C '$(1)' -j '$(JOBS)' install LDFLAGS='-no-undefined'
|
||||
$(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)' LDFLAGS='-no-undefined'
|
||||
$(MAKE) -C '$(BUILD_DIR)' -j 1 install
|
||||
endef
|
||||
|
|
|
@ -17,8 +17,12 @@ define $(PKG)_UPDATE
|
|||
endef
|
||||
|
||||
define $(PKG)_BUILD
|
||||
$(SED) -i '/-fforce-mem/d' '$(1)'/configure
|
||||
cd '$(1)' && ./configure \
|
||||
$(SED) -i '/-fforce-mem/d' '$(SOURCE_DIR)'/configure.ac
|
||||
# configure script is ancient so regenerate
|
||||
touch '$(SOURCE_DIR)'/{NEWS,AUTHORS,ChangeLog}
|
||||
cd '$(SOURCE_DIR)' && autoreconf -fi
|
||||
cd '$(BUILD_DIR)' && '$(SOURCE_DIR)/configure' \
|
||||
$(MXE_CONFIGURE_OPTS)
|
||||
$(MAKE) -C '$(1)' -j '$(JOBS)' install LDFLAGS='-no-undefined'
|
||||
$(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)' LDFLAGS='-no-undefined'
|
||||
$(MAKE) -C '$(BUILD_DIR)' -j 1 install
|
||||
endef
|
||||
|
|
|
@ -23,13 +23,11 @@ endef
|
|||
# `as_cv_unaligned_access` so set it manually
|
||||
|
||||
define $(PKG)_BUILD
|
||||
cd '$(1)' && ./configure \
|
||||
cd '$(BUILD_DIR)' && '$(SOURCE_DIR)/configure' \
|
||||
$(MXE_CONFIGURE_OPTS) \
|
||||
--disable-debug \
|
||||
--disable-examples \
|
||||
--mandir='$(1)/sink' \
|
||||
--docdir='$(1)/sink' \
|
||||
--with-html-dir='$(1)/sink' \
|
||||
as_cv_unaligned_access=yes
|
||||
$(MAKE) -C '$(1)' -j '$(JOBS)' install
|
||||
$(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)'
|
||||
$(MAKE) -C '$(BUILD_DIR)' -j 1 install
|
||||
endef
|
||||
|
|
|
@ -17,13 +17,13 @@ define $(PKG)_UPDATE
|
|||
endef
|
||||
|
||||
define $(PKG)_BUILD
|
||||
cd '$(1)' && ./configure \
|
||||
# doesn't support out-of-tree builds
|
||||
cd '$(SOURCE_DIR)' && ./configure \
|
||||
$(MXE_CONFIGURE_OPTS) \
|
||||
ac_cv_prog_PKGCONFIG='$(PREFIX)/bin/$(TARGET)-pkg-config' \
|
||||
--disable-thread \
|
||||
--infodir='$(1)/sink' \
|
||||
--mandir='$(1)/sink'
|
||||
$(MAKE) -C '$(1)' -j '$(JOBS)' install
|
||||
--disable-thread
|
||||
$(MAKE) -C '$(SOURCE_DIR)' -j '$(JOBS)'
|
||||
$(MAKE) -C '$(SOURCE_DIR)' -j 1 install
|
||||
endef
|
||||
|
||||
$(PKG)_BUILD_SHARED =
|
||||
|
|
|
@ -18,13 +18,18 @@ define $(PKG)_UPDATE
|
|||
endef
|
||||
|
||||
define $(PKG)_BUILD
|
||||
cd '$(1)' && ./configure \
|
||||
$(MXE_CONFIGURE_OPTS) \
|
||||
# configure script is ancient and isn't easy to regenerate
|
||||
# filter out invalid options
|
||||
cd '$(BUILD_DIR)' && '$(SOURCE_DIR)/configure' \
|
||||
$(subst docdir$(comma),,$(MXE_CONFIGURE_OPTS)) \
|
||||
--with-apr='$(PREFIX)/$(TARGET)' \
|
||||
--with-apr-util='$(PREFIX)/$(TARGET)' \
|
||||
CFLAGS=-D_WIN32_WINNT=0x0500 \
|
||||
CXXFLAGS=-D_WIN32_WINNT=0x0500
|
||||
$(MAKE) -C '$(1)' -j 1 install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= man_MANS=
|
||||
|
||||
$(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)' $(MXE_DISABLE_PROGRAMS)
|
||||
$(MAKE) -C '$(BUILD_DIR)' -j 1 install $(MXE_DISABLE_PROGRAMS)
|
||||
|
||||
mkdir -p '$(PREFIX)/$(TARGET)/share/cmake/log4cxx'
|
||||
cp '$(1)/log4cxx-config.cmake' '$(PREFIX)/$(TARGET)/share/cmake/log4cxx/log4cxx-config.cmake'
|
||||
|
||||
|
|
|
@ -20,8 +20,7 @@ endef
|
|||
|
||||
define $(PKG)_BUILD
|
||||
# build
|
||||
mkdir '$(1).build'
|
||||
cd '$(1).build' && '$(TARGET)-cmake' \
|
||||
cd '$(BUILD_DIR)' && '$(TARGET)-cmake' '$(SOURCE_DIR)' \
|
||||
-DWITH_QT=OFF \
|
||||
-DWITH_OPENGL=ON \
|
||||
-DWITH_GSTREAMER=OFF \
|
||||
|
@ -43,19 +42,19 @@ define $(PKG)_BUILD
|
|||
-DBUILD_PNG=OFF \
|
||||
-DBUILD_OPENEXR=OFF \
|
||||
-DCMAKE_VERBOSE=ON \
|
||||
-DCMAKE_CXX_FLAGS='-D_WIN32_WINNT=0x0500' \
|
||||
'$(1)'
|
||||
-DCMAKE_CXX_FLAGS='-D_WIN32_WINNT=0x0500 -D__STDC_LIMIT_MACROS'
|
||||
|
||||
# install
|
||||
$(MAKE) -C '$(1).build' -j '$(JOBS)' install VERBOSE=1
|
||||
$(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)' VERBOSE=1
|
||||
$(MAKE) -C '$(BUILD_DIR)' -j 1 install VERBOSE=1
|
||||
|
||||
# fixup and install pkg-config file
|
||||
# openexr isn't available on x86_64-w64-mingw32
|
||||
# opencv builds it's own libIlmImf.a
|
||||
$(if $(findstring x86_64-w64-mingw32,$(TARGET)),\
|
||||
$(SED) -i 's/OpenEXR//' '$(1).build/unix-install/opencv.pc')
|
||||
$(SED) -i 's,share/OpenCV/3rdparty/,,g' '$(1).build/unix-install/opencv.pc'
|
||||
$(INSTALL) -m755 '$(1).build/unix-install/opencv.pc' '$(PREFIX)/$(TARGET)/lib/pkgconfig'
|
||||
$(SED) -i 's/OpenEXR//' '$(BUILD_DIR)/unix-install/opencv.pc')
|
||||
$(SED) -i 's,share/OpenCV/3rdparty/,,g' '$(BUILD_DIR)/unix-install/opencv.pc'
|
||||
$(INSTALL) -m755 '$(BUILD_DIR)/unix-install/opencv.pc' '$(PREFIX)/$(TARGET)/lib/pkgconfig'
|
||||
|
||||
'$(TARGET)-g++' \
|
||||
-W -Wall -Werror -ansi -pedantic \
|
||||
|
|
|
@ -22,9 +22,8 @@ define $(PKG)_UPDATE
|
|||
endef
|
||||
|
||||
define $(PKG)_BUILD
|
||||
mkdir '$(1).build'
|
||||
cd '$(1).build' && '$(TARGET)-cmake' '$(1)' \
|
||||
-DCMAKE_CXX_FLAGS='-D__STDC_CONSTANT_MACROS' \
|
||||
cd '$(BUILD_DIR)' && '$(TARGET)-cmake' '$(SOURCE_DIR)' \
|
||||
-DCMAKE_CXX_FLAGS='-D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS' \
|
||||
-DCMAKE_HAVE_PTHREAD_H=OFF \
|
||||
-DPKG_CONFIG_EXECUTABLE='$(PREFIX)/bin/$(TARGET)-pkg-config' \
|
||||
-DDYNAMIC_OPENTHREADS=$(CMAKE_SHARED_BOOL) \
|
||||
|
@ -36,5 +35,6 @@ define $(PKG)_BUILD
|
|||
$(if $(filter qtbase,$($(PKG)_DEPS)), \
|
||||
-DDESIRED_QT_VERSION=5, \
|
||||
-DDESIRED_QT_VERSION=4)
|
||||
$(MAKE) -C '$(1).build' -j '$(JOBS)' install VERBOSE=1
|
||||
$(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)' VERBOSE=1
|
||||
$(MAKE) -C '$(BUILD_DIR)' -j 1 install VERBOSE=1
|
||||
endef
|
||||
|
|
11
src/ucl.mk
11
src/ucl.mk
|
@ -20,10 +20,11 @@ define $(PKG)_UPDATE
|
|||
endef
|
||||
|
||||
define $(PKG)_BUILD
|
||||
cd '$(1)' && \
|
||||
./configure \
|
||||
$(MXE_CONFIGURE_OPTS) \
|
||||
# configure script is ancient and isn't easy to regenerate
|
||||
# filter out invalid options
|
||||
cd '$(BUILD_DIR)' && '$(SOURCE_DIR)/configure' \
|
||||
$(subst docdir$(comma),,$(MXE_CONFIGURE_OPTS)) \
|
||||
CFLAGS='-std=gnu90 -fPIC'
|
||||
$(MAKE) -C '$(1)' -j '$(JOBS)' LDFLAGS=-no-undefined
|
||||
$(MAKE) -C '$(1)' -j 1 install
|
||||
$(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)' LDFLAGS='-no-undefined'
|
||||
$(MAKE) -C '$(BUILD_DIR)' -j 1 install
|
||||
endef
|
||||
|
|
Loading…
Reference in New Issue