forked from mirrors/linphone-iphone
It’s not perfect at all, and there’s about 1/3 of the SDK that will trigger « unsupported compiler option », but that’s a start.
49 lines
2.1 KiB
Makefile
49 lines
2.1 KiB
Makefile
############################################################################
|
|
# msx264.mk
|
|
# Copyright (C) 2011 Belledonne Communications,Grenoble France
|
|
#
|
|
############################################################################
|
|
#
|
|
# This program is free software; you can redistribute it and/or
|
|
# modify it under the terms of the GNU General Public License
|
|
# as published by the Free Software Foundation; either version 2
|
|
# of the License, or (at your option) any later version.
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with this program; if not, write to the Free Software
|
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
#
|
|
############################################################################
|
|
msx264_dir?=msx264
|
|
|
|
configure-options=
|
|
ifeq ($(LINPHONE_CCACHE), ccache)
|
|
configure-options+= --disable-strict
|
|
endif
|
|
|
|
$(BUILDER_SRC_DIR)/$(msx264_dir)/configure:
|
|
cd $(BUILDER_SRC_DIR)/$(msx264_dir) && ./autogen.sh
|
|
|
|
$(BUILDER_BUILD_DIR)/$(msx264_dir)/Makefile: $(BUILDER_SRC_DIR)/$(msx264_dir)/configure
|
|
mkdir -p $(BUILDER_BUILD_DIR)/$(msx264_dir)
|
|
cd $(BUILDER_BUILD_DIR)/$(msx264_dir)/ \
|
|
&& PKG_CONFIG_LIBDIR=$(prefix)/lib/pkgconfig CONFIG_SITE=$(BUILDER_SRC_DIR)/build/$(config_site) \
|
|
$(BUILDER_SRC_DIR)/$(msx264_dir)/configure -prefix=$(prefix) --host=$(host) ${library_mode} ${configure-options}
|
|
|
|
build-msx264: build-x264 $(BUILDER_BUILD_DIR)/$(msx264_dir)/Makefile
|
|
cd $(BUILDER_BUILD_DIR)/$(msx264_dir) && PKG_CONFIG_LIBDIR=$(prefix)/lib/pkgconfig CONFIG_SITE=$(BUILDER_SRC_DIR)/build/$(config_site) make && make install
|
|
|
|
clean-msx264: clean-x264
|
|
cd $(BUILDER_BUILD_DIR)/$(msx264_dir) && make clean
|
|
|
|
veryclean-msx264: veryclean-x264
|
|
-cd $(BUILDER_BUILD_DIR)/$(msx264_dir) && make distclean
|
|
-cd $(BUILDER_SRC_DIR)/$(msx264_dir) && rm -f configure
|
|
|
|
clean-makefile-msx264: clean-makefile-x264
|
|
cd $(BUILDER_BUILD_DIR)/$(msx264_dir) && rm -f Makefile
|