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
1.1 KiB
33 lines
1.1 KiB
NAME = emgu-cv
|
|
VERSION = 1.2.2.0
|
|
PKG_NAME = ${NAME}-${VERSION}
|
|
LIB_NAME = Emgu.CV.dll
|
|
MCS_FLAG= -d:LINUX -d:NET_2_0 -pkg:olive -r:System.Xml -r:System.Drawing -r:System.Windows.Forms -r:System.Data -target:library
|
|
MCS=gmcs ${MCS_FLAG}
|
|
SRC= *.cs Properties/*.cs PInvoke/*.cs PInvoke/CvType/*.cs Shape/*.cs PointAndLine/*.cs Capture/*.cs Color/*.cs UI/*.cs
|
|
INSTALL_DIR = var/lib
|
|
EMGU_DIR = ${INSTALL_DIR}/emgu
|
|
PKG_DIR = ${EMGU_DIR}/bin
|
|
|
|
bin: ${SRC}
|
|
install -d bin
|
|
${MCS} -r:../lib/zlib.net.dll -r:../bin/Emgu.Utils.dll $(SRC) -out:bin/${LIB_NAME}
|
|
|
|
rpmbin:
|
|
install -d ${PKG_DIR}
|
|
$(MCS) -r:lib/zlib.net.dll -r:lib/Emgu.Utils.dll $(SRC) -out:${PKG_DIR}/${LIB_NAME}
|
|
|
|
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 CV.key makefile ${SRC} README | tar -x -C ${PKG_NAME}
|
|
echo VERSION: ${VERSION} > ${PKG_NAME}/${PKG_NAME}.spec
|
|
cat ${NAME}.spec >> ${PKG_NAME}/${PKG_NAME}.spec
|
|
install -d ${PKG_NAME}/lib
|
|
install ../bin/Emgu.Utils.dll ../lib/zlib.net.dll ${PKG_NAME}/lib
|
|
tar -czf ${PKG_NAME}.tar.gz ${PKG_NAME}
|
|
rm -rf ${PKG_NAME}
|