Created
November 23, 2013 16:22
-
-
Save krofna/7616623 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PKG := sfemovie | |
$(PKG)_IGNORE := | |
$(PKG)_VERSION := 1.0-fgre | |
$(PKG)_CHECKSUM := 1b8adf88799be72ef666892c835326d05fb9e096 | |
$(PKG)_SUBDIR := sfeMovie-$($(PKG)_VERSION) | |
$(PKG)_FILE := sfeMovie-$($(PKG)_VERSION)-sources.zip | |
$(PKG)_URL := https://github.com/FGRE/sfeMovie/archive/v1.0-fgre.zip | |
$(PKG)_DEPS := sfml ffmpeg | |
define $(PKG)_BUILD | |
mkdir '$(1)/build' | |
cd '$(1)/build' && cmake .. \ | |
-DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' | |
$(MAKE) -C '$(1)/build' install VERBOSE=1 | |
# create pkg-config file | |
$(INSTALL) -d '$(PREFIX)/$(TARGET)/lib/pkgconfig' | |
(echo 'Name: sfemovie'; \ | |
echo 'Version: 0'; \ | |
echo 'Description: sfemovie'; \ | |
echo 'Requires: sfml ffmpeg'; \ | |
echo 'Libs: -lsfemovie'; \ | |
echo 'Libs.private: -lavcodec -lavformat -lavutil -lsfml-graphics-s -lsfml-audio-s';) \ | |
> '$(PREFIX)/$(TARGET)/lib/pkgconfig/sfemovie.pc' | |
endef |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment