mirror of https://github.com/emgucv/emgucv.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
819 B
33 lines
819 B
NAME = emgu-utils
|
|
VERSION = 0.0.0.1
|
|
PKG_NAME = ${NAME}-${VERSION}
|
|
MCS_FLAG = -target:library -r:System.Windows.Forms -d:LINUX
|
|
MCS=gmcs ${MCS_FLAG}
|
|
UTILS_SRC= *.cs Properties/AssemblyInfo.cs
|
|
INSTALL_DIR = var/lib
|
|
EMGU_DIR = ${INSTALL_DIR}/emgu
|
|
PKG_DIR = ${EMGU_DIR}/bin
|
|
|
|
bin: ${UTILS_SRC}
|
|
install -d bin
|
|
$(MCS) $(UTILS_SRC) -out:bin/Emgu.Utils.dll
|
|
|
|
rpmbin:
|
|
install -d ${PKG_DIR}
|
|
$(MCS) $(UTILS_SRC) -out:${PKG_DIR}/Emgu.Utils.dll
|
|
|
|
rpm: tar
|
|
rpmbuild -tb ${PKG_NAME}.tar.gz
|
|
cp ~/rpm/RPMS/i386/${PKG_NAME}*.rpm ./
|
|
rm ${PKG_NAME}.tar.gz
|
|
|
|
tar:
|
|
install -d ${PKG_NAME}
|
|
tar -c Utils.key makefile ${UTILS_SRC} README | tar -x -C ${PKG_NAME}
|
|
echo VERSION: ${VERSION} > ${PKG_NAME}/${PKG_NAME}.spec
|
|
cat ${NAME}.spec >> ${PKG_NAME}/${PKG_NAME}.spec
|
|
tar -czf ${PKG_NAME}.tar.gz ${PKG_NAME}
|
|
rm -rf ${PKG_NAME}
|
|
|
|
|
|
|