mxe/src/xvidcore.mk

35 lines
1.2 KiB
Makefile
Raw Normal View History

2012-03-28 14:46:58 +01:00
# This file is part of MXE.
2012-03-29 11:14:15 +01:00
# See index.html for further information.
2010-05-31 15:26:25 +01:00
PKG := xvidcore
$(PKG)_IGNORE :=
$(PKG)_VERSION := 1.3.2
$(PKG)_CHECKSUM := 56e065d331545ade04c63c91153b9624b51d6e1b
2010-05-31 15:26:25 +01:00
$(PKG)_SUBDIR := xvidcore/build/generic
$(PKG)_FILE := xvidcore-$($(PKG)_VERSION).tar.gz
$(PKG)_URL := http://downloads.xvid.org/downloads/$($(PKG)_FILE)
$(PKG)_DEPS := gcc pthreads yasm
2010-05-31 15:26:25 +01:00
define $(PKG)_UPDATE
$(WGET) -q -O- 'http://www.xvid.org/' | \
2010-05-31 15:26:25 +01:00
$(SED) -n 's,.*Xvid \([0-9][^ ]*\) .*,\1,p' | \
head -1
endef
define $(PKG)_BUILD
cd '$(1)' && autoconf
cd '$(1)' && ./configure \
2014-02-10 05:33:26 +00:00
$(MXE_CONFIGURE_OPTS)
$(MAKE) -C '$(1)' -j 1 BUILD_DIR='build' $(if $(BUILD_STATIC),SHARED,STATIC)_LIB=
2010-05-31 15:26:25 +01:00
$(INSTALL) -d '$(PREFIX)/$(TARGET)/include'
$(INSTALL) -m644 '$(1)/../../src/xvid.h' '$(PREFIX)/$(TARGET)/include/'
$(INSTALL) -d '$(PREFIX)/$(TARGET)/lib'
2014-02-10 05:33:26 +00:00
$(INSTALL) -m644 '$(1)/build/xvidcore.$(LIB_SUFFIX)' '$(PREFIX)/$(TARGET)/lib/'
ln -sf '$(PREFIX)/$(TARGET)/lib/xvidcore.$(LIB_SUFFIX)' '$(PREFIX)/$(TARGET)/lib/libxvidcore.$(LIB_SUFFIX)'
2010-05-31 15:26:25 +01:00
endef
define $(PKG)_BUILD_x86_64-w64-mingw32
$(SED) -i 's,yasm_prog="yasm",yasm_prog="$(TARGET)-yasm -DNO_PREFIX",' '$(1)/configure.in'
$($(PKG)_BUILD)
endef