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.
 
 
 
 
 

29 lines
798 B

NAME = emgu-util
VERSION = 1.1.0.0
PKG_NAME = ${NAME}-${VERSION}
MCS_FLAG = -target:library -d:LINUX
MCS=gmcs ${MCS_FLAG}
UTIL_SRC= *.cs Properties/AssemblyInfo.cs
INSTALL_DIR = var/lib
EMGU_DIR = ${INSTALL_DIR}/emgu
PKG_DIR = ${EMGU_DIR}/bin
bin: ${UTIL_SRC}
$(MCS) $(UTIL_SRC) -out:../bin/Emgu.Util.dll
rpmbin:
install -d ${PKG_DIR}
$(MCS) $(UTIL_SRC) -out:${PKG_DIR}/Emgu.Util.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 Util.key makefile ${UTIL_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}