add msx264.mk

This commit is contained in:
Jehan Monnier 2011-07-22 10:00:46 +02:00
parent 4dcafb0500
commit 2d04319a31

View file

@ -0,0 +1,43 @@
############################################################################
# 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
$(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_PATH=$(prefix)/lib/pkgconfig CONFIG_SITE=$(BUILDER_SRC_DIR)/build/$(config_site) \
$(BUILDER_SRC_DIR)/$(msx264_dir)/configure -prefix=$(prefix) --host=$(host) ${library_mode}
build-msx264: build-x264 $(BUILDER_BUILD_DIR)/$(msx264_dir)/Makefile
cd $(BUILDER_BUILD_DIR)/$(msx264_dir) && PKG_CONFIG_PATH=$(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